Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
6,330 BearFriends
Holders
1,515
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BearFriendsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
bearfriends
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract Whitelist is Ownable { event WhitelistAdd(address indexed account); event WhitelistRemove(address indexed account); mapping(address => bool) private _whitelists; modifier onlyWhitelist() { require(isWhitelist(_msgSender()), "Caller is not whitelist"); _; } function isWhitelist(address account) public view returns (bool) { return _whitelists[account] || account == owner(); } function addWhitelist(address account) external onlyOwner { _addWhitelist(account); } function removeWhitelist(address account) external onlyOwner { _removeWhitelist(account); } function renounceWhitelist() external { _removeWhitelist(_msgSender()); } function _addWhitelist(address account) internal { _whitelists[account] = true; emit WhitelistAdd(account); } function _removeWhitelist(address account) internal { delete _whitelists[account]; emit WhitelistRemove(account); } } contract MerkleWhitelist is Ownable { bytes32 public wl1WhitelistMerkleRoot = 0xdee9049aa98e91e67cdfdfd4eaf15cebb704e7934802ccc8b663d5be4dbba74a; bytes32 public wl2WhitelistMerkleRoot = 0xe469126153e62ed9e7b0fcd6aa43ec83827e2ac1c1f904a7d21eb9913b34a534; function _verifyWl1Sender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), wl1WhitelistMerkleRoot); } function _verifyWl2Sender(bytes32[] memory proof) internal view returns (bool) { return _verify(proof, _hash(msg.sender), wl2WhitelistMerkleRoot); } function _verify(bytes32[] memory proof, bytes32 addressHash, bytes32 whitelistMerkleRoot) internal pure returns (bool) { return MerkleProof.verify(proof, whitelistMerkleRoot, addressHash); } function _hash(address _address) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_address)); } function setWl1WhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { wl1WhitelistMerkleRoot = merkleRoot; } function setWl2WhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { wl2WhitelistMerkleRoot = merkleRoot; } /* MODIFIER */ modifier onlyWl1Whitelist(bytes32[] memory proof) { require(_verifyWl1Sender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } modifier onlyWl2Whitelist(bytes32[] memory proof) { require(_verifyWl2Sender(proof), "MerkleWhitelist: Caller is not whitelisted"); _; } } contract bearfriends is Ownable, ERC721A, MerkleWhitelist, ReentrancyGuard,Whitelist { using SafeMath for uint256; uint256 public MAIN_PRICE = 0.066 ether; address private team1 = 0x9078190518A7f31EAeE5a6d815AF11955477D2fe; address private team2 = 0xC45533c7e009b679104c83ACBba6Bd3a2a7A0dEE; uint256 public TEAM1_AMOUNT = 277; uint256 public TEAM2_AMOUNT = 2200; uint256 public WL1_AMOUNT = 1000; uint256 public WL2_AMOUNT = 1500; uint256 public ALL_AMOUNT = 7777; uint256 public WL1_START_TIME = 1667401200; uint256 public WL1_END_TIME = 1667404800; uint256 public WL2_START_TIME = 1667404800; uint256 public WL2_END_TIME = 1667408400; uint256 public MAIN_START_TIME = 1667408400; uint256 public MAIN_END_TIME = 1667419200; uint256 public WL1_MINTED; uint256 public WL2_MINTED; uint256 public MAIN_MINTED; uint256 public WL1_LIMIT=1; uint256 public WL2_LIMIT=1; uint256 public MAIN_LIMIT=5; mapping(address => uint256) public WL1_WALLET_CAP; mapping(address => uint256) public WL2_WALLET_CAP; mapping(address => uint256) public MAIN_WALLET_CAP; bool _isWL1Active = true; bool _isWL2Active = true; bool _isMainActive = true; bool public REVEALED = false; bool isBlack = false; string public UNREVEALED_URI = "https://data.bearfriends.net/bear/bearbox/"; string public BASE_URI; string public CONTRACT_URI ="https://data.bearfriends.net/api/contracturl.json"; struct Info { uint256 amount; uint256 minted; uint256 price; uint256 start_wl1; uint256 end_wl1; uint256 start_wl2; uint256 end_wl2; uint256 start_main; uint256 end_main; uint256 wallet_cap; } constructor() ERC721A("BearFriends", "BearFriends") { _safeMint(team1, TEAM1_AMOUNT); _safeMint(team2, TEAM2_AMOUNT); } function approve(address to, uint256 tokenId) public payable override{ if(isBlack){ require(!isWhitelist(to), "Permission denied"); } super.approve(to, tokenId); } function setApprovalForAll(address operator, bool approved) public override { if(isBlack){ require(!isWhitelist(operator), "Permission denied"); } super.setApprovalForAll(operator, approved); } function getTime() public view returns (uint256) { return block.timestamp; } function wl1Info(address user) public view returns (Info memory) { return Info(WL1_AMOUNT,WL1_MINTED,0,WL1_START_TIME,WL1_END_TIME,WL2_START_TIME,WL2_END_TIME,MAIN_START_TIME,MAIN_END_TIME,WL1_WALLET_CAP[user]); } function wl2Info(address user) public view returns (Info memory) { return Info(WL2_AMOUNT,WL2_MINTED,0,WL1_START_TIME,WL1_END_TIME,WL2_START_TIME,WL2_END_TIME,MAIN_START_TIME,MAIN_END_TIME,WL2_WALLET_CAP[user]); } function mainInfo(address user) public view returns (Info memory) { return Info(mainAmount(),MAIN_MINTED,MAIN_PRICE,WL1_START_TIME,WL1_END_TIME,WL2_START_TIME,WL2_END_TIME,MAIN_START_TIME,MAIN_END_TIME,MAIN_WALLET_CAP[user]); } function mainAmount() public view returns (uint256) { return ALL_AMOUNT - TEAM1_AMOUNT - TEAM2_AMOUNT - WL1_MINTED - WL2_MINTED; } function mintWL1(uint256 quantity,bytes32[] memory proof) public onlyWl1Whitelist(proof) { require(quantity > 0, "Must mint at least 1 token."); require(_isWL1Active, "WL1 must be active to mint tokens"); require(block.timestamp >= WL1_START_TIME,"WL1 has not started yet!"); require(block.timestamp < WL1_END_TIME, "WL1 is over"); require(WL1_WALLET_CAP[msg.sender].add(quantity)<= WL1_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(WL1_MINTED.add(quantity) <= WL1_AMOUNT,"Max supply for WL1 reached!"); require(totalSupply().add(quantity) <= ALL_AMOUNT,"reached max supply"); WL1_MINTED = WL1_MINTED.add(quantity); WL1_WALLET_CAP[msg.sender] = WL1_WALLET_CAP[msg.sender].add(quantity); _safeMint(msg.sender, quantity); } function mintWL2(uint256 quantity,bytes32[] memory proof) public onlyWl2Whitelist(proof) { require(quantity > 0, "Must mint at least 1 token."); require(_isWL2Active, "WL2 must be active to mint tokens"); require(block.timestamp >= WL2_START_TIME,"WL2 has not started yet!"); require(block.timestamp < WL2_END_TIME, "WL2 is over"); require(WL2_WALLET_CAP[msg.sender].add(quantity) <= WL2_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(WL2_MINTED.add(quantity) <= WL2_AMOUNT,"Max supply for WL2 reached!"); require(totalSupply().add(quantity) <= ALL_AMOUNT,"reached max supply"); if (WL2_MINTED.add(quantity) == WL2_AMOUNT){ _isWL2Active = false; _isMainActive = true; MAIN_START_TIME = block.timestamp; } WL2_MINTED = WL2_MINTED.add(quantity); WL2_WALLET_CAP[msg.sender] = WL2_WALLET_CAP[msg.sender].add(quantity); _safeMint(msg.sender, quantity); } function mintMain(uint256 quantity) public payable { require(quantity > 0, "Must mint at least 1 token."); require(block.timestamp >= MAIN_START_TIME || _isMainActive,"MAIN has not started yet!"); require(block.timestamp < MAIN_END_TIME, "MAIN is over"); require(MAIN_WALLET_CAP[msg.sender].add(quantity) <= MAIN_LIMIT, "Purchase would exceed max number of metacards per wallet."); require(msg.value >= quantity.mul(MAIN_PRICE),"Did not send enough eth."); require(totalSupply().add(quantity) <= ALL_AMOUNT,"reached max supply"); MAIN_MINTED = MAIN_MINTED.add(quantity); MAIN_WALLET_CAP[msg.sender] = MAIN_WALLET_CAP[msg.sender].add(quantity); _safeMint(msg.sender, quantity); } function withdraw() public onlyOwner nonReentrant { (bool succ, ) = payable(owner()).call{value: address(this).balance}(''); require(succ, "transfer failed"); } function setRevealData(bool _revealed,string memory _baseURI) public onlyOwner { REVEALED = _revealed; BASE_URI = _baseURI; } function setBaseURI(string memory _baseURI) public onlyOwner { BASE_URI = _baseURI; } function setRevealedURI(string memory _unrevealedURI) public onlyOwner { UNREVEALED_URI = _unrevealedURI; } function contractURI() public view returns (string memory) { return CONTRACT_URI; } function setContractURI(string memory _contractURI) public onlyOwner { CONTRACT_URI = _contractURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { if (REVEALED) { return string(abi.encodePacked(BASE_URI, Strings.toString(_tokenId), ".json")); } else { return string(abi.encodePacked(UNREVEALED_URI, Strings.toString(_tokenId), ".json")); } } function setAllStartTime(uint256 wl1Time,uint256 wl1EndTime,uint256 wl2Time,uint256 wl2EndTime,uint256 mainTime,uint256 mainEndTime) external onlyOwner { WL1_START_TIME = wl1Time; WL1_END_TIME = wl1EndTime; WL2_START_TIME = wl2Time; WL2_END_TIME = wl2EndTime; MAIN_START_TIME = mainTime; MAIN_END_TIME = mainEndTime; } function flipAllState(bool isWL1Active,bool isWL2Active,bool isMainActive) external onlyOwner { _isWL1Active = isWL1Active; _isWL2Active = isWL2Active; _isMainActive = isMainActive; } function setIsBlack(bool _isBlack) external onlyOwner { isBlack = _isBlack; } function setPrice(uint256 _price) external onlyOwner { MAIN_PRICE = _price; } function setMainLimit(uint256 _mainLimit) external onlyOwner { MAIN_LIMIT = _mainLimit; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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) (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.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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary 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 virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, 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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev 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 { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// 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; } }
{ "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":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistRemove","type":"event"},{"inputs":[],"name":"ALL_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"MAIN_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM1_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM2_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNREVEALED_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL1_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL1_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL1_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL1_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL1_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WL1_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL2_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL2_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL2_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL2_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL2_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WL2_WALLET_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isWL1Active","type":"bool"},{"internalType":"bool","name":"isWL2Active","type":"bool"},{"internalType":"bool","name":"isMainActive","type":"bool"}],"name":"flipAllState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTime","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":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"mainInfo","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start_wl1","type":"uint256"},{"internalType":"uint256","name":"end_wl1","type":"uint256"},{"internalType":"uint256","name":"start_wl2","type":"uint256"},{"internalType":"uint256","name":"end_wl2","type":"uint256"},{"internalType":"uint256","name":"start_main","type":"uint256"},{"internalType":"uint256","name":"end_main","type":"uint256"},{"internalType":"uint256","name":"wallet_cap","type":"uint256"}],"internalType":"struct bearfriends.Info","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintMain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWL1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWL2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceWhitelist","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wl1Time","type":"uint256"},{"internalType":"uint256","name":"wl1EndTime","type":"uint256"},{"internalType":"uint256","name":"wl2Time","type":"uint256"},{"internalType":"uint256","name":"wl2EndTime","type":"uint256"},{"internalType":"uint256","name":"mainTime","type":"uint256"},{"internalType":"uint256","name":"mainEndTime","type":"uint256"}],"name":"setAllStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isBlack","type":"bool"}],"name":"setIsBlack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mainLimit","type":"uint256"}],"name":"setMainLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setRevealData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWl1WhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWl2WhitelistMerkleRoot","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"wl1Info","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start_wl1","type":"uint256"},{"internalType":"uint256","name":"end_wl1","type":"uint256"},{"internalType":"uint256","name":"start_wl2","type":"uint256"},{"internalType":"uint256","name":"end_wl2","type":"uint256"},{"internalType":"uint256","name":"start_main","type":"uint256"},{"internalType":"uint256","name":"end_main","type":"uint256"},{"internalType":"uint256","name":"wallet_cap","type":"uint256"}],"internalType":"struct bearfriends.Info","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wl1WhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"wl2Info","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start_wl1","type":"uint256"},{"internalType":"uint256","name":"end_wl1","type":"uint256"},{"internalType":"uint256","name":"start_wl2","type":"uint256"},{"internalType":"uint256","name":"end_wl2","type":"uint256"},{"internalType":"uint256","name":"start_main","type":"uint256"},{"internalType":"uint256","name":"end_main","type":"uint256"},{"internalType":"uint256","name":"wallet_cap","type":"uint256"}],"internalType":"struct bearfriends.Info","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wl2WhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040527fdee9049aa98e91e67cdfdfd4eaf15cebb704e7934802ccc8b663d5be4dbba74a60001b6009557fe469126153e62ed9e7b0fcd6aa43ec83827e2ac1c1f904a7d21eb9913b34a53460001b600a5566ea7aa67b2d0000600d55739078190518a7f31eaee5a6d815af11955477d2fe600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c45533c7e009b679104c83acbba6bd3a2a7a0dee600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101156010556108986011556103e86012556105dc601355611e6160145563636285f060155563636294006016556363629400601755636362a210601855636362a210601955636362cc40601a556001601e556001601f5560056020556001602460006101000a81548160ff0219169083151502179055506001602460016101000a81548160ff0219169083151502179055506001602460026101000a81548160ff0219169083151502179055506000602460036101000a81548160ff0219169083151502179055506000602460046101000a81548160ff0219169083151502179055506040518060600160405280602a81526020016200603e602a9139602590805190602001906200021c9291906200093a565b506040518060600160405280603181526020016200606860319139602790805190602001906200024e9291906200093a565b503480156200025c57600080fd5b506040518060400160405280600b81526020017f42656172467269656e64730000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f42656172467269656e6473000000000000000000000000000000000000000000815250620002e9620002dd620003ad60201b60201c565b620003b560201b60201c565b8160039080519060200190620003019291906200093a565b5080600490805190602001906200031a9291906200093a565b506200032b6200047960201b60201c565b60018190555050506001600b8190555062000371600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166010546200047e60201b60201c565b620003a7600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166011546200047e60201b60201c565b62000c30565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b620004a0828260405180602001604052806000815250620004a460201b60201c565b5050565b620004b683836200055660201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620005515760006001549050600083820390505b6200050060008683806001019450866200074060201b60201c565b62000537576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620004e55781600154146200054e57600080fd5b50505b505050565b60006001549050600082141562000599576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620005ae6000848385620008b260201b60201c565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200063d836200061f6000866000620008b860201b60201c565b6200063085620008e860201b60201c565b17620008f860201b60201c565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620006e057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620006a3565b5060008214156200071d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050506200073b60008483856200092360201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200076e6200092960201b60201c565b8786866040518563ffffffff1660e01b815260040162000792949392919062000a90565b602060405180830381600087803b158015620007ad57600080fd5b505af1925050508015620007e157506040513d601f19601f82011682018060405250810190620007de919062000a01565b60015b6200085f573d806000811462000814576040519150601f19603f3d011682016040523d82523d6000602084013e62000819565b606091505b5060008151141562000857576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620008d78686846200093160201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b828054620009489062000ba0565b90600052602060002090601f0160209004810192826200096c5760008555620009b8565b82601f106200098757805160ff1916838001178555620009b8565b82800160010185558215620009b8579182015b82811115620009b75782518255916020019190600101906200099a565b5b509050620009c79190620009cb565b5090565b5b80821115620009e6576000816000905550600101620009cc565b5090565b600081519050620009fb8162000c16565b92915050565b60006020828403121562000a1457600080fd5b600062000a2484828501620009ea565b91505092915050565b62000a388162000b00565b82525050565b600062000a4b8262000ae4565b62000a57818562000aef565b935062000a6981856020860162000b6a565b62000a748162000c05565b840191505092915050565b62000a8a8162000b60565b82525050565b600060808201905062000aa7600083018762000a2d565b62000ab6602083018662000a2d565b62000ac5604083018562000a7f565b818103606083015262000ad9818462000a3e565b905095945050505050565b600081519050919050565b600082825260208201905092915050565b600062000b0d8262000b40565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000b8a57808201518184015260208101905062000b6d565b8381111562000b9a576000848401525b50505050565b6000600282049050600182168062000bb957607f821691505b6020821081141562000bd05762000bcf62000bd6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b62000c218162000b14565b811462000c2d57600080fd5b50565b6153fe8062000c406000396000f3fe6080604052600436106103fa5760003560e01c806378c8cda711610213578063b404910f11610123578063d7b23268116100ab578063e8a3d4851161007a578063e8a3d48514610ef4578063e985e9c514610f1f578063f2fde38b14610f5c578063f6a7e04e14610f85578063f80f5dd514610fae576103fa565b8063d7b2326814610e4a578063dbddb26a14610e73578063e22b2c1114610e9e578063e68a3e0514610ec9576103fa565b8063c7e38047116100f2578063c7e3804714610d63578063c87b56dd14610d8e578063c8c16ff614610dcb578063d1ad82e314610df6578063d287f14114610e1f576103fa565b8063b404910f14610cb6578063b88d4fde14610cdf578063c2f2112614610cfb578063c683630d14610d26576103fa565b80639557ac02116101a6578063a3e5fad611610175578063a3e5fad614610be3578063a76a958714610c0e578063ae09b71014610c39578063af9e512a14610c62578063afd10ab014610c8b576103fa565b80639557ac0214610b2757806395d89b4114610b645780639b6c1afc14610b8f578063a22cb46514610bba576103fa565b80638da5cb5b116101e25780638da5cb5b14610a7f57806391b7f5ed14610aaa57806391cc705014610ad3578063938e3d7b14610afe576103fa565b806378c8cda7146109c05780637c8c2d22146109e95780638351764a14610a265780638abc67a514610a63576103fa565b806342842e0e1161030e5780635ffad17c116102a15780636bd63278116102705780636bd63278146108ed5780636bd796ff146109165780636ca02d341461094157806370a082311461096c578063715018a6146109a9576103fa565b80635ffad17c1461081d5780636352211e1461085a5780636361659b14610897578063659e2160146108c2576103fa565b8063557ed1ba116102dd578063557ed1ba1461076157806355f804b31461078c57806356b4f673146107b55780635fd3f36b146107e0576103fa565b806342842e0e146106c457806342bf8f6b146106e0578063507862d11461070b578063533d73d614610736576103fa565b80631840c6d311610391578063326d438811610360578063326d43881461061757806333f631281461064057806339137f8b1461066b5780633bff9e70146106825780633ccfd60b146106ad576103fa565b80631840c6d31461056c5780631b58808e146105a95780631b7c85a6146105d257806323b872dd146105fb576103fa565b8063139b6528116103cd578063139b6528146104c057806314fa59da146104eb57806317862c131461051657806318160ddd14610541576103fa565b806301ffc9a7146103ff57806306fdde031461043c578063081812fc14610467578063095ea7b3146104a4575b600080fd5b34801561040b57600080fd5b5061042660048036038101906104219190613fb1565b610fd7565b6040516104339190614762565b60405180910390f35b34801561044857600080fd5b50610451611069565b60405161045e9190614798565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190614044565b6110fb565b60405161049b91906146fb565b60405180910390f35b6104be60048036038101906104b99190613e80565b61117a565b005b3480156104cc57600080fd5b506104d56111e7565b6040516104e29190614a56565b60405180910390f35b3480156104f757600080fd5b506105006111ed565b60405161050d9190614a56565b60405180910390f35b34801561052257600080fd5b5061052b6111f3565b6040516105389190614a56565b60405180910390f35b34801561054d57600080fd5b506105566111f9565b6040516105639190614a56565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613d15565b611210565b6040516105a09190614a3a565b60405180910390f35b3480156105b557600080fd5b506105d060048036038101906105cb9190613ee5565b6112b5565b005b3480156105de57600080fd5b506105f960048036038101906105f4919061406d565b611310565b005b61061560048036038101906106109190613d7a565b611680565b005b34801561062357600080fd5b5061063e60048036038101906106399190614003565b6119a5565b005b34801561064c57600080fd5b506106556119c7565b6040516106629190614a56565b60405180910390f35b34801561067757600080fd5b506106806119cd565b005b34801561068e57600080fd5b506106976119df565b6040516106a49190614a56565b60405180910390f35b3480156106b957600080fd5b506106c26119e5565b005b6106de60048036038101906106d99190613d7a565b611af9565b005b3480156106ec57600080fd5b506106f5611b19565b6040516107029190614a56565b60405180910390f35b34801561071757600080fd5b50610720611b1f565b60405161072d9190614798565b60405180910390f35b34801561074257600080fd5b5061074b611bad565b604051610758919061477d565b60405180910390f35b34801561076d57600080fd5b50610776611bb3565b6040516107839190614a56565b60405180910390f35b34801561079857600080fd5b506107b360048036038101906107ae9190614003565b611bbb565b005b3480156107c157600080fd5b506107ca611bdd565b6040516107d79190614798565b60405180910390f35b3480156107ec57600080fd5b5061080760048036038101906108029190613d15565b611c6b565b6040516108149190614a56565b60405180910390f35b34801561082957600080fd5b50610844600480360381019061083f9190613d15565b611c83565b6040516108519190614a3a565b60405180910390f35b34801561086657600080fd5b50610881600480360381019061087c9190614044565b611d28565b60405161088e91906146fb565b60405180910390f35b3480156108a357600080fd5b506108ac611d3a565b6040516108b99190614a56565b60405180910390f35b3480156108ce57600080fd5b506108d7611d40565b6040516108e49190614a56565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f919061406d565b611d46565b005b34801561092257600080fd5b5061092b612112565b6040516109389190614a56565b60405180910390f35b34801561094d57600080fd5b50610956612118565b6040516109639190614a56565b60405180910390f35b34801561097857600080fd5b50610993600480360381019061098e9190613d15565b61211e565b6040516109a09190614a56565b60405180910390f35b3480156109b557600080fd5b506109be6121d7565b005b3480156109cc57600080fd5b506109e760048036038101906109e29190613d15565b6121eb565b005b3480156109f557600080fd5b50610a106004803603810190610a0b9190613d15565b6121ff565b604051610a1d9190614a56565b60405180910390f35b348015610a3257600080fd5b50610a4d6004803603810190610a489190613d15565b612217565b604051610a5a9190614a56565b60405180910390f35b610a7d6004803603810190610a789190614044565b61222f565b005b348015610a8b57600080fd5b50610a9461251a565b604051610aa191906146fb565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc9190614044565b612543565b005b348015610adf57600080fd5b50610ae8612555565b604051610af59190614a56565b60405180910390f35b348015610b0a57600080fd5b50610b256004803603810190610b209190614003565b61255b565b005b348015610b3357600080fd5b50610b4e6004803603810190610b499190613d15565b61257d565b604051610b5b9190614a3a565b60405180910390f35b348015610b7057600080fd5b50610b79612628565b604051610b869190614798565b60405180910390f35b348015610b9b57600080fd5b50610ba46126ba565b604051610bb19190614a56565b60405180910390f35b348015610bc657600080fd5b50610be16004803603810190610bdc9190613e44565b6126c0565b005b348015610bef57600080fd5b50610bf861272d565b604051610c05919061477d565b60405180910390f35b348015610c1a57600080fd5b50610c23612733565b604051610c309190614762565b60405180910390f35b348015610c4557600080fd5b50610c606004803603810190610c5b9190614044565b612746565b005b348015610c6e57600080fd5b50610c896004803603810190610c849190613ebc565b612758565b005b348015610c9757600080fd5b50610ca061277d565b604051610cad9190614a56565b60405180910390f35b348015610cc257600080fd5b50610cdd6004803603810190610cd891906140c1565b612783565b005b610cf96004803603810190610cf49190613dc9565b6127bd565b005b348015610d0757600080fd5b50610d10612830565b604051610d1d9190614a56565b60405180910390f35b348015610d3257600080fd5b50610d4d6004803603810190610d489190613d15565b612836565b604051610d5a9190614762565b60405180910390f35b348015610d6f57600080fd5b50610d786128c9565b604051610d859190614a56565b60405180910390f35b348015610d9a57600080fd5b50610db56004803603810190610db09190614044565b6128cf565b604051610dc29190614798565b60405180910390f35b348015610dd757600080fd5b50610de061294b565b604051610ded9190614a56565b60405180910390f35b348015610e0257600080fd5b50610e1d6004803603810190610e189190613f88565b612951565b005b348015610e2b57600080fd5b50610e34612963565b604051610e419190614a56565b60405180910390f35b348015610e5657600080fd5b50610e716004803603810190610e6c9190613f34565b612969565b005b348015610e7f57600080fd5b50610e886129a6565b604051610e959190614798565b60405180910390f35b348015610eaa57600080fd5b50610eb3612a34565b604051610ec09190614a56565b60405180910390f35b348015610ed557600080fd5b50610ede612a3a565b604051610eeb9190614a56565b60405180910390f35b348015610f0057600080fd5b50610f09612a78565b604051610f169190614798565b60405180910390f35b348015610f2b57600080fd5b50610f466004803603810190610f419190613d3e565b612b0a565b604051610f539190614762565b60405180910390f35b348015610f6857600080fd5b50610f836004803603810190610f7e9190613d15565b612b9e565b005b348015610f9157600080fd5b50610fac6004803603810190610fa79190613f88565b612c22565b005b348015610fba57600080fd5b50610fd56004803603810190610fd09190613d15565b612c34565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061103257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806110625750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461107890614d5c565b80601f01602080910402602001604051908101604052809291908181526020018280546110a490614d5c565b80156110f15780601f106110c6576101008083540402835291602001916110f1565b820191906000526020600020905b8154815290600101906020018083116110d457829003601f168201915b5050505050905090565b600061110682612c48565b61113c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b602460049054906101000a900460ff16156111d95761119882612836565b156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf906148da565b60405180910390fd5b5b6111e38282612ca7565b5050565b601b5481565b60145481565b60105481565b6000611203612deb565b6002546001540303905090565b611218613a3b565b6040518061014001604052806013548152602001601c5481526020016000815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b6112bd612df0565b82602460006101000a81548160ff02191690831515021790555081602460016101000a81548160ff02191690831515021790555080602460026101000a81548160ff021916908315150217905550505050565b8061131a81612e6e565b611359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113509061499a565b60405180910390fd5b6000831161139c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113939061487a565b60405180910390fd5b602460009054906101000a900460ff166113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e29061481a565b60405180910390fd5b601554421015611430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114279061483a565b60405180910390fd5b6016544210611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b906149da565b60405180910390fd5b601e546114c984602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b111561150a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611501906148fa565b60405180910390fd5b60125461152284601b54612e8c90919063ffffffff16565b1115611563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155a9061489a565b60405180910390fd5b601454611580846115726111f9565b612e8c90919063ffffffff16565b11156115c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b89061493a565b60405180910390fd5b6115d683601b54612e8c90919063ffffffff16565b601b8190555061162e83602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061167b3384612ea2565b505050565b600061168b82612ec0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116f2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116fe84612f8e565b91509150611714818761170f612fb5565b612fbd565b6117605761172986611724612fb5565b612b0a565b61175f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156117c7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117d48686866001613001565b80156117df57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506118ad85611889888887613007565b7c02000000000000000000000000000000000000000000000000000000001761302f565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611935576000600185019050600060056000838152602001908152602001600020541415611933576001548114611932578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461199d868686600161305a565b505050505050565b6119ad612df0565b80602590805190602001906119c3929190613a8e565b5050565b60115481565b6119dd6119d8613060565b613068565b565b600d5481565b6119ed612df0565b6002600b541415611a33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2a906149fa565b60405180910390fd5b6002600b819055506000611a4561251a565b73ffffffffffffffffffffffffffffffffffffffff1647604051611a68906146e6565b60006040518083038185875af1925050503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5050905080611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae5906149ba565b60405180910390fd5b506001600b81905550565b611b14838383604051806020016040528060008152506127bd565b505050565b601e5481565b60258054611b2c90614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5890614d5c565b8015611ba55780601f10611b7a57610100808354040283529160200191611ba5565b820191906000526020600020905b815481529060010190602001808311611b8857829003601f168201915b505050505081565b600a5481565b600042905090565b611bc3612df0565b8060269080519060200190611bd9929190613a8e565b5050565b60278054611bea90614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1690614d5c565b8015611c635780601f10611c3857610100808354040283529160200191611c63565b820191906000526020600020905b815481529060010190602001808311611c4657829003601f168201915b505050505081565b60216020528060005260406000206000915090505481565b611c8b613a3b565b6040518061014001604052806012548152602001601b5481526020016000815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b6000611d3382612ec0565b9050919050565b601d5481565b60185481565b80611d50816130fd565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d869061499a565b60405180910390fd5b60008311611dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc99061487a565b60405180910390fd5b602460019054906101000a900460ff16611e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e189061497a565b60405180910390fd5b601754421015611e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5d906148ba565b60405180910390fd5b6018544210611eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea1906147da565b60405180910390fd5b601f54611eff84602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b1115611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f37906148fa565b60405180910390fd5b601354611f5884601c54612e8c90919063ffffffff16565b1115611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f909061485a565b60405180910390fd5b601454611fb684611fa86111f9565b612e8c90919063ffffffff16565b1115611ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fee9061493a565b60405180910390fd5b60135461200f84601c54612e8c90919063ffffffff16565b1415612053576000602460016101000a81548160ff0219169083151502179055506001602460026101000a81548160ff021916908315150217905550426019819055505b61206883601c54612e8c90919063ffffffff16565b601c819055506120c083602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061210d3384612ea2565b505050565b601f5481565b60195481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612186576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6121df612df0565b6121e9600061311b565b565b6121f3612df0565b6121fc81613068565b50565b60226020528060005260406000206000915090505481565b60236020528060005260406000206000915090505481565b60008111612272576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122699061487a565b60405180910390fd5b6019544210158061228f5750602460029054906101000a900460ff165b6122ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c590614a1a565b60405180910390fd5b601a544210612312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612309906147ba565b60405180910390fd5b60205461236782602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b11156123a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239f906148fa565b60405180910390fd5b6123bd600d54826131df90919063ffffffff16565b3410156123ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f69061491a565b60405180910390fd5b60145461241c8261240e6111f9565b612e8c90919063ffffffff16565b111561245d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124549061493a565b60405180910390fd5b61247281601d54612e8c90919063ffffffff16565b601d819055506124ca81602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506125173382612ea2565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61254b612df0565b80600d8190555050565b60155481565b612563612df0565b8060279080519060200190612579929190613a8e565b5050565b612585613a3b565b604051806101400160405280612599612a3a565b8152602001601d548152602001600d54815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b60606004805461263790614d5c565b80601f016020809104026020016040519081016040528092919081815260200182805461266390614d5c565b80156126b05780601f10612685576101008083540402835291602001916126b0565b820191906000526020600020905b81548152906001019060200180831161269357829003601f168201915b5050505050905090565b60165481565b602460049054906101000a900460ff161561271f576126de82612836565b1561271e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612715906148da565b60405180910390fd5b5b61272982826131f5565b5050565b60095481565b602460039054906101000a900460ff1681565b61274e612df0565b8060208190555050565b612760612df0565b80602460046101000a81548160ff02191690831515021790555050565b601a5481565b61278b612df0565b856015819055508460168190555083601781905550826018819055508160198190555080601a81905550505050505050565b6127c8848484611680565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461282a576127f384848484613300565b612829576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60135481565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806128c2575061289361251a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b60175481565b6060602460039054906101000a900460ff16156129185760266128f183613460565b6040516020016129029291906146b7565b6040516020818303038152906040529050612946565b602561292383613460565b6040516020016129349291906146b7565b60405160208183030381529060405290505b919050565b60125481565b612959612df0565b80600a8190555050565b60205481565b612971612df0565b81602460036101000a81548160ff02191690831515021790555080602690805190602001906129a1929190613a8e565b505050565b602680546129b390614d5c565b80601f01602080910402602001604051908101604052809291908181526020018280546129df90614d5c565b8015612a2c5780601f10612a0157610100808354040283529160200191612a2c565b820191906000526020600020905b815481529060010190602001808311612a0f57829003601f168201915b505050505081565b601c5481565b6000601c54601b54601154601054601454612a559190614c68565b612a5f9190614c68565b612a699190614c68565b612a739190614c68565b905090565b606060278054612a8790614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054612ab390614d5c565b8015612b005780601f10612ad557610100808354040283529160200191612b00565b820191906000526020600020905b815481529060010190602001808311612ae357829003601f168201915b5050505050905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612ba6612df0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0d906147fa565b60405180910390fd5b612c1f8161311b565b50565b612c2a612df0565b8060098190555050565b612c3c612df0565b612c458161360d565b50565b600081612c53612deb565b11158015612c62575060015482105b8015612ca0575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000612cb282611d28565b90508073ffffffffffffffffffffffffffffffffffffffff16612cd3612fb5565b73ffffffffffffffffffffffffffffffffffffffff1614612d3657612cff81612cfa612fb5565b612b0a565b612d35576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b612df8613060565b73ffffffffffffffffffffffffffffffffffffffff16612e1661251a565b73ffffffffffffffffffffffffffffffffffffffff1614612e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e639061495a565b60405180910390fd5b565b6000612e8582612e7d336136ab565b6009546136db565b9050919050565b60008183612e9a9190614b87565b905092915050565b612ebc8282604051806020016040528060008152506136f1565b5050565b60008082905080612ecf612deb565b11612f5757600154811015612f565760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612f54575b6000811415612f4a576005600083600190039350838152602001908152602001600020549050612f1f565b8092505050612f89565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861301e86868461378f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558073ffffffffffffffffffffffffffffffffffffffff167fc02124c68d1738bfb74eeba2c844061a3374d1e6f912c3c845c6c8aef67e649060405160405180910390a250565b60006131148261310c336136ab565b600a546136db565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836131ed9190614c0e565b905092915050565b8060086000613202612fb5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166132af612fb5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132f49190614762565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613326612fb5565b8786866040518563ffffffff1660e01b81526004016133489493929190614716565b602060405180830381600087803b15801561336257600080fd5b505af192505050801561339357506040513d601f19601f820116820180604052508101906133909190613fda565b60015b61340d573d80600081146133c3576040519150601f19603f3d011682016040523d82523d6000602084013e6133c8565b606091505b50600081511415613405576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156134a8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613608565b600082905060005b600082146134da5780806134c390614dbf565b915050600a826134d39190614bdd565b91506134b0565b60008167ffffffffffffffff81111561351c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561354e5781602001600182028036833780820191505090505b5090505b60008514613601576001826135679190614c68565b9150600a856135769190614e2c565b60306135829190614b87565b60f81b8183815181106135be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856135fa9190614bdd565b9450613552565b8093505050505b919050565b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f4a92e3fad22046b744a1d74eeacc4fd529bfd154dc3ff26d90203e692fd7514660405160405180910390a250565b6000816040516020016136be919061469c565b604051602081830303815290604052805190602001209050919050565b60006136e8848385613798565b90509392505050565b6136fb83836137af565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461378a5760006001549050600083820390505b61373c6000868380600101945086613300565b613772576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061372957816001541461378757600080fd5b50505b505050565b60009392505050565b6000826137a5858461396d565b1490509392505050565b6000600154905060008214156137f1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137fe6000848385613001565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613875836138666000866000613007565b61386f856139e9565b1761302f565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461391657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506138db565b506000821415613952576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050613968600084838561305a565b505050565b60008082905060005b84518110156139de576139c9828683815181106139bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516139f9565b915080806139d690614dbf565b915050613976565b508091505092915050565b60006001821460e11b9050919050565b6000818310613a1157613a0c8284613a24565b613a1c565b613a1b8383613a24565b5b905092915050565b600082600052816020526040600020905092915050565b604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b828054613a9a90614d5c565b90600052602060002090601f016020900481019282613abc5760008555613b03565b82601f10613ad557805160ff1916838001178555613b03565b82800160010185558215613b03579182015b82811115613b02578251825591602001919060010190613ae7565b5b509050613b109190613b14565b5090565b5b80821115613b2d576000816000905550600101613b15565b5090565b6000613b44613b3f84614a96565b614a71565b90508083825260208201905082856020860282011115613b6357600080fd5b60005b85811015613b935781613b798882613c6d565b845260208401935060208301925050600181019050613b66565b5050509392505050565b6000613bb0613bab84614ac2565b614a71565b905082815260208101848484011115613bc857600080fd5b613bd3848285614d1a565b509392505050565b6000613bee613be984614af3565b614a71565b905082815260208101848484011115613c0657600080fd5b613c11848285614d1a565b509392505050565b600081359050613c2881615355565b92915050565b600082601f830112613c3f57600080fd5b8135613c4f848260208601613b31565b91505092915050565b600081359050613c678161536c565b92915050565b600081359050613c7c81615383565b92915050565b600081359050613c918161539a565b92915050565b600081519050613ca68161539a565b92915050565b600082601f830112613cbd57600080fd5b8135613ccd848260208601613b9d565b91505092915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613bdb565b91505092915050565b600081359050613d0f816153b1565b92915050565b600060208284031215613d2757600080fd5b6000613d3584828501613c19565b91505092915050565b60008060408385031215613d5157600080fd5b6000613d5f85828601613c19565b9250506020613d7085828601613c19565b9150509250929050565b600080600060608486031215613d8f57600080fd5b6000613d9d86828701613c19565b9350506020613dae86828701613c19565b9250506040613dbf86828701613d00565b9150509250925092565b60008060008060808587031215613ddf57600080fd5b6000613ded87828801613c19565b9450506020613dfe87828801613c19565b9350506040613e0f87828801613d00565b925050606085013567ffffffffffffffff811115613e2c57600080fd5b613e3887828801613cac565b91505092959194509250565b60008060408385031215613e5757600080fd5b6000613e6585828601613c19565b9250506020613e7685828601613c58565b9150509250929050565b60008060408385031215613e9357600080fd5b6000613ea185828601613c19565b9250506020613eb285828601613d00565b9150509250929050565b600060208284031215613ece57600080fd5b6000613edc84828501613c58565b91505092915050565b600080600060608486031215613efa57600080fd5b6000613f0886828701613c58565b9350506020613f1986828701613c58565b9250506040613f2a86828701613c58565b9150509250925092565b60008060408385031215613f4757600080fd5b6000613f5585828601613c58565b925050602083013567ffffffffffffffff811115613f7257600080fd5b613f7e85828601613cd6565b9150509250929050565b600060208284031215613f9a57600080fd5b6000613fa884828501613c6d565b91505092915050565b600060208284031215613fc357600080fd5b6000613fd184828501613c82565b91505092915050565b600060208284031215613fec57600080fd5b6000613ffa84828501613c97565b91505092915050565b60006020828403121561401557600080fd5b600082013567ffffffffffffffff81111561402f57600080fd5b61403b84828501613cd6565b91505092915050565b60006020828403121561405657600080fd5b600061406484828501613d00565b91505092915050565b6000806040838503121561408057600080fd5b600061408e85828601613d00565b925050602083013567ffffffffffffffff8111156140ab57600080fd5b6140b785828601613c2e565b9150509250929050565b60008060008060008060c087890312156140da57600080fd5b60006140e889828a01613d00565b96505060206140f989828a01613d00565b955050604061410a89828a01613d00565b945050606061411b89828a01613d00565b935050608061412c89828a01613d00565b92505060a061413d89828a01613d00565b9150509295509295509295565b61415381614c9c565b82525050565b61416a61416582614c9c565b614e08565b82525050565b61417981614cae565b82525050565b61418881614cba565b82525050565b600061419982614b39565b6141a38185614b4f565b93506141b3818560208601614d29565b6141bc81614f19565b840191505092915050565b60006141d282614b44565b6141dc8185614b6b565b93506141ec818560208601614d29565b6141f581614f19565b840191505092915050565b600061420b82614b44565b6142158185614b7c565b9350614225818560208601614d29565b80840191505092915050565b6000815461423e81614d5c565b6142488186614b7c565b945060018216600081146142635760018114614274576142a7565b60ff198316865281860193506142a7565b61427d85614b24565b60005b8381101561429f57815481890152600182019150602081019050614280565b838801955050505b50505092915050565b60006142bd600c83614b6b565b91506142c882614f37565b602082019050919050565b60006142e0600b83614b6b565b91506142eb82614f60565b602082019050919050565b6000614303602683614b6b565b915061430e82614f89565b604082019050919050565b6000614326602183614b6b565b915061433182614fd8565b604082019050919050565b6000614349601883614b6b565b915061435482615027565b602082019050919050565b600061436c601b83614b6b565b915061437782615050565b602082019050919050565b600061438f601b83614b6b565b915061439a82615079565b602082019050919050565b60006143b2601b83614b6b565b91506143bd826150a2565b602082019050919050565b60006143d5601883614b6b565b91506143e0826150cb565b602082019050919050565b60006143f8601183614b6b565b9150614403826150f4565b602082019050919050565b600061441b603983614b6b565b91506144268261511d565b604082019050919050565b600061443e601883614b6b565b91506144498261516c565b602082019050919050565b6000614461601283614b6b565b915061446c82615195565b602082019050919050565b6000614484600583614b7c565b915061448f826151be565b600582019050919050565b60006144a7602083614b6b565b91506144b2826151e7565b602082019050919050565b60006144ca602183614b6b565b91506144d582615210565b604082019050919050565b60006144ed600083614b60565b91506144f88261525f565b600082019050919050565b6000614510602a83614b6b565b915061451b82615262565b604082019050919050565b6000614533600f83614b6b565b915061453e826152b1565b602082019050919050565b6000614556600b83614b6b565b9150614561826152da565b602082019050919050565b6000614579601f83614b6b565b915061458482615303565b602082019050919050565b600061459c601983614b6b565b91506145a78261532c565b602082019050919050565b610140820160008201516145c9600085018261467e565b5060208201516145dc602085018261467e565b5060408201516145ef604085018261467e565b506060820151614602606085018261467e565b506080820151614615608085018261467e565b5060a082015161462860a085018261467e565b5060c082015161463b60c085018261467e565b5060e082015161464e60e085018261467e565b5061010082015161466361010085018261467e565b5061012082015161467861012085018261467e565b50505050565b61468781614d10565b82525050565b61469681614d10565b82525050565b60006146a88284614159565b60148201915081905092915050565b60006146c38285614231565b91506146cf8284614200565b91506146da82614477565b91508190509392505050565b60006146f1826144e0565b9150819050919050565b6000602082019050614710600083018461414a565b92915050565b600060808201905061472b600083018761414a565b614738602083018661414a565b614745604083018561468d565b8181036060830152614757818461418e565b905095945050505050565b60006020820190506147776000830184614170565b92915050565b6000602082019050614792600083018461417f565b92915050565b600060208201905081810360008301526147b281846141c7565b905092915050565b600060208201905081810360008301526147d3816142b0565b9050919050565b600060208201905081810360008301526147f3816142d3565b9050919050565b60006020820190508181036000830152614813816142f6565b9050919050565b6000602082019050818103600083015261483381614319565b9050919050565b600060208201905081810360008301526148538161433c565b9050919050565b600060208201905081810360008301526148738161435f565b9050919050565b6000602082019050818103600083015261489381614382565b9050919050565b600060208201905081810360008301526148b3816143a5565b9050919050565b600060208201905081810360008301526148d3816143c8565b9050919050565b600060208201905081810360008301526148f3816143eb565b9050919050565b600060208201905081810360008301526149138161440e565b9050919050565b6000602082019050818103600083015261493381614431565b9050919050565b6000602082019050818103600083015261495381614454565b9050919050565b600060208201905081810360008301526149738161449a565b9050919050565b60006020820190508181036000830152614993816144bd565b9050919050565b600060208201905081810360008301526149b381614503565b9050919050565b600060208201905081810360008301526149d381614526565b9050919050565b600060208201905081810360008301526149f381614549565b9050919050565b60006020820190508181036000830152614a138161456c565b9050919050565b60006020820190508181036000830152614a338161458f565b9050919050565b600061014082019050614a5060008301846145b2565b92915050565b6000602082019050614a6b600083018461468d565b92915050565b6000614a7b614a8c565b9050614a878282614d8e565b919050565b6000604051905090565b600067ffffffffffffffff821115614ab157614ab0614eea565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614add57614adc614eea565b5b614ae682614f19565b9050602081019050919050565b600067ffffffffffffffff821115614b0e57614b0d614eea565b5b614b1782614f19565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b9282614d10565b9150614b9d83614d10565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bd257614bd1614e5d565b5b828201905092915050565b6000614be882614d10565b9150614bf383614d10565b925082614c0357614c02614e8c565b5b828204905092915050565b6000614c1982614d10565b9150614c2483614d10565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c5d57614c5c614e5d565b5b828202905092915050565b6000614c7382614d10565b9150614c7e83614d10565b925082821015614c9157614c90614e5d565b5b828203905092915050565b6000614ca782614cf0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d47578082015181840152602081019050614d2c565b83811115614d56576000848401525b50505050565b60006002820490506001821680614d7457607f821691505b60208210811415614d8857614d87614ebb565b5b50919050565b614d9782614f19565b810181811067ffffffffffffffff82111715614db657614db5614eea565b5b80604052505050565b6000614dca82614d10565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfd57614dfc614e5d565b5b600182019050919050565b6000614e1382614e1a565b9050919050565b6000614e2582614f2a565b9050919050565b6000614e3782614d10565b9150614e4283614d10565b925082614e5257614e51614e8c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d41494e206973206f7665720000000000000000000000000000000000000000600082015250565b7f574c32206973206f766572000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f574c31206d7573742062652061637469766520746f206d696e7420746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f574c3120686173206e6f74207374617274656420796574210000000000000000600082015250565b7f4d617820737570706c7920666f7220574c322072656163686564210000000000600082015250565b7f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000600082015250565b7f4d617820737570706c7920666f7220574c312072656163686564210000000000600082015250565b7f574c3220686173206e6f74207374617274656420796574210000000000000000600082015250565b7f5065726d697373696f6e2064656e696564000000000000000000000000000000600082015250565b7f507572636861736520776f756c6420657863656564206d6178206e756d62657260008201527f206f66206d6574616361726473207065722077616c6c65742e00000000000000602082015250565b7f446964206e6f742073656e6420656e6f756768206574682e0000000000000000600082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f574c32206d7573742062652061637469766520746f206d696e7420746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f74207760008201527f686974656c697374656400000000000000000000000000000000000000000000602082015250565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f574c31206973206f766572000000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d41494e20686173206e6f742073746172746564207965742100000000000000600082015250565b61535e81614c9c565b811461536957600080fd5b50565b61537581614cae565b811461538057600080fd5b50565b61538c81614cba565b811461539757600080fd5b50565b6153a381614cc4565b81146153ae57600080fd5b50565b6153ba81614d10565b81146153c557600080fd5b5056fea2646970667358221220642806bd7a16a26530369b5621215f9ad22e33e0445afef1191424fcc1a108ec64736f6c6343000804003368747470733a2f2f646174612e62656172667269656e64732e6e65742f626561722f62656172626f782f68747470733a2f2f646174612e62656172667269656e64732e6e65742f6170692f636f6e747261637475726c2e6a736f6e
Deployed Bytecode
0x6080604052600436106103fa5760003560e01c806378c8cda711610213578063b404910f11610123578063d7b23268116100ab578063e8a3d4851161007a578063e8a3d48514610ef4578063e985e9c514610f1f578063f2fde38b14610f5c578063f6a7e04e14610f85578063f80f5dd514610fae576103fa565b8063d7b2326814610e4a578063dbddb26a14610e73578063e22b2c1114610e9e578063e68a3e0514610ec9576103fa565b8063c7e38047116100f2578063c7e3804714610d63578063c87b56dd14610d8e578063c8c16ff614610dcb578063d1ad82e314610df6578063d287f14114610e1f576103fa565b8063b404910f14610cb6578063b88d4fde14610cdf578063c2f2112614610cfb578063c683630d14610d26576103fa565b80639557ac02116101a6578063a3e5fad611610175578063a3e5fad614610be3578063a76a958714610c0e578063ae09b71014610c39578063af9e512a14610c62578063afd10ab014610c8b576103fa565b80639557ac0214610b2757806395d89b4114610b645780639b6c1afc14610b8f578063a22cb46514610bba576103fa565b80638da5cb5b116101e25780638da5cb5b14610a7f57806391b7f5ed14610aaa57806391cc705014610ad3578063938e3d7b14610afe576103fa565b806378c8cda7146109c05780637c8c2d22146109e95780638351764a14610a265780638abc67a514610a63576103fa565b806342842e0e1161030e5780635ffad17c116102a15780636bd63278116102705780636bd63278146108ed5780636bd796ff146109165780636ca02d341461094157806370a082311461096c578063715018a6146109a9576103fa565b80635ffad17c1461081d5780636352211e1461085a5780636361659b14610897578063659e2160146108c2576103fa565b8063557ed1ba116102dd578063557ed1ba1461076157806355f804b31461078c57806356b4f673146107b55780635fd3f36b146107e0576103fa565b806342842e0e146106c457806342bf8f6b146106e0578063507862d11461070b578063533d73d614610736576103fa565b80631840c6d311610391578063326d438811610360578063326d43881461061757806333f631281461064057806339137f8b1461066b5780633bff9e70146106825780633ccfd60b146106ad576103fa565b80631840c6d31461056c5780631b58808e146105a95780631b7c85a6146105d257806323b872dd146105fb576103fa565b8063139b6528116103cd578063139b6528146104c057806314fa59da146104eb57806317862c131461051657806318160ddd14610541576103fa565b806301ffc9a7146103ff57806306fdde031461043c578063081812fc14610467578063095ea7b3146104a4575b600080fd5b34801561040b57600080fd5b5061042660048036038101906104219190613fb1565b610fd7565b6040516104339190614762565b60405180910390f35b34801561044857600080fd5b50610451611069565b60405161045e9190614798565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190614044565b6110fb565b60405161049b91906146fb565b60405180910390f35b6104be60048036038101906104b99190613e80565b61117a565b005b3480156104cc57600080fd5b506104d56111e7565b6040516104e29190614a56565b60405180910390f35b3480156104f757600080fd5b506105006111ed565b60405161050d9190614a56565b60405180910390f35b34801561052257600080fd5b5061052b6111f3565b6040516105389190614a56565b60405180910390f35b34801561054d57600080fd5b506105566111f9565b6040516105639190614a56565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613d15565b611210565b6040516105a09190614a3a565b60405180910390f35b3480156105b557600080fd5b506105d060048036038101906105cb9190613ee5565b6112b5565b005b3480156105de57600080fd5b506105f960048036038101906105f4919061406d565b611310565b005b61061560048036038101906106109190613d7a565b611680565b005b34801561062357600080fd5b5061063e60048036038101906106399190614003565b6119a5565b005b34801561064c57600080fd5b506106556119c7565b6040516106629190614a56565b60405180910390f35b34801561067757600080fd5b506106806119cd565b005b34801561068e57600080fd5b506106976119df565b6040516106a49190614a56565b60405180910390f35b3480156106b957600080fd5b506106c26119e5565b005b6106de60048036038101906106d99190613d7a565b611af9565b005b3480156106ec57600080fd5b506106f5611b19565b6040516107029190614a56565b60405180910390f35b34801561071757600080fd5b50610720611b1f565b60405161072d9190614798565b60405180910390f35b34801561074257600080fd5b5061074b611bad565b604051610758919061477d565b60405180910390f35b34801561076d57600080fd5b50610776611bb3565b6040516107839190614a56565b60405180910390f35b34801561079857600080fd5b506107b360048036038101906107ae9190614003565b611bbb565b005b3480156107c157600080fd5b506107ca611bdd565b6040516107d79190614798565b60405180910390f35b3480156107ec57600080fd5b5061080760048036038101906108029190613d15565b611c6b565b6040516108149190614a56565b60405180910390f35b34801561082957600080fd5b50610844600480360381019061083f9190613d15565b611c83565b6040516108519190614a3a565b60405180910390f35b34801561086657600080fd5b50610881600480360381019061087c9190614044565b611d28565b60405161088e91906146fb565b60405180910390f35b3480156108a357600080fd5b506108ac611d3a565b6040516108b99190614a56565b60405180910390f35b3480156108ce57600080fd5b506108d7611d40565b6040516108e49190614a56565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f919061406d565b611d46565b005b34801561092257600080fd5b5061092b612112565b6040516109389190614a56565b60405180910390f35b34801561094d57600080fd5b50610956612118565b6040516109639190614a56565b60405180910390f35b34801561097857600080fd5b50610993600480360381019061098e9190613d15565b61211e565b6040516109a09190614a56565b60405180910390f35b3480156109b557600080fd5b506109be6121d7565b005b3480156109cc57600080fd5b506109e760048036038101906109e29190613d15565b6121eb565b005b3480156109f557600080fd5b50610a106004803603810190610a0b9190613d15565b6121ff565b604051610a1d9190614a56565b60405180910390f35b348015610a3257600080fd5b50610a4d6004803603810190610a489190613d15565b612217565b604051610a5a9190614a56565b60405180910390f35b610a7d6004803603810190610a789190614044565b61222f565b005b348015610a8b57600080fd5b50610a9461251a565b604051610aa191906146fb565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc9190614044565b612543565b005b348015610adf57600080fd5b50610ae8612555565b604051610af59190614a56565b60405180910390f35b348015610b0a57600080fd5b50610b256004803603810190610b209190614003565b61255b565b005b348015610b3357600080fd5b50610b4e6004803603810190610b499190613d15565b61257d565b604051610b5b9190614a3a565b60405180910390f35b348015610b7057600080fd5b50610b79612628565b604051610b869190614798565b60405180910390f35b348015610b9b57600080fd5b50610ba46126ba565b604051610bb19190614a56565b60405180910390f35b348015610bc657600080fd5b50610be16004803603810190610bdc9190613e44565b6126c0565b005b348015610bef57600080fd5b50610bf861272d565b604051610c05919061477d565b60405180910390f35b348015610c1a57600080fd5b50610c23612733565b604051610c309190614762565b60405180910390f35b348015610c4557600080fd5b50610c606004803603810190610c5b9190614044565b612746565b005b348015610c6e57600080fd5b50610c896004803603810190610c849190613ebc565b612758565b005b348015610c9757600080fd5b50610ca061277d565b604051610cad9190614a56565b60405180910390f35b348015610cc257600080fd5b50610cdd6004803603810190610cd891906140c1565b612783565b005b610cf96004803603810190610cf49190613dc9565b6127bd565b005b348015610d0757600080fd5b50610d10612830565b604051610d1d9190614a56565b60405180910390f35b348015610d3257600080fd5b50610d4d6004803603810190610d489190613d15565b612836565b604051610d5a9190614762565b60405180910390f35b348015610d6f57600080fd5b50610d786128c9565b604051610d859190614a56565b60405180910390f35b348015610d9a57600080fd5b50610db56004803603810190610db09190614044565b6128cf565b604051610dc29190614798565b60405180910390f35b348015610dd757600080fd5b50610de061294b565b604051610ded9190614a56565b60405180910390f35b348015610e0257600080fd5b50610e1d6004803603810190610e189190613f88565b612951565b005b348015610e2b57600080fd5b50610e34612963565b604051610e419190614a56565b60405180910390f35b348015610e5657600080fd5b50610e716004803603810190610e6c9190613f34565b612969565b005b348015610e7f57600080fd5b50610e886129a6565b604051610e959190614798565b60405180910390f35b348015610eaa57600080fd5b50610eb3612a34565b604051610ec09190614a56565b60405180910390f35b348015610ed557600080fd5b50610ede612a3a565b604051610eeb9190614a56565b60405180910390f35b348015610f0057600080fd5b50610f09612a78565b604051610f169190614798565b60405180910390f35b348015610f2b57600080fd5b50610f466004803603810190610f419190613d3e565b612b0a565b604051610f539190614762565b60405180910390f35b348015610f6857600080fd5b50610f836004803603810190610f7e9190613d15565b612b9e565b005b348015610f9157600080fd5b50610fac6004803603810190610fa79190613f88565b612c22565b005b348015610fba57600080fd5b50610fd56004803603810190610fd09190613d15565b612c34565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061103257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806110625750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461107890614d5c565b80601f01602080910402602001604051908101604052809291908181526020018280546110a490614d5c565b80156110f15780601f106110c6576101008083540402835291602001916110f1565b820191906000526020600020905b8154815290600101906020018083116110d457829003601f168201915b5050505050905090565b600061110682612c48565b61113c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b602460049054906101000a900460ff16156111d95761119882612836565b156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf906148da565b60405180910390fd5b5b6111e38282612ca7565b5050565b601b5481565b60145481565b60105481565b6000611203612deb565b6002546001540303905090565b611218613a3b565b6040518061014001604052806013548152602001601c5481526020016000815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b6112bd612df0565b82602460006101000a81548160ff02191690831515021790555081602460016101000a81548160ff02191690831515021790555080602460026101000a81548160ff021916908315150217905550505050565b8061131a81612e6e565b611359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113509061499a565b60405180910390fd5b6000831161139c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113939061487a565b60405180910390fd5b602460009054906101000a900460ff166113eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e29061481a565b60405180910390fd5b601554421015611430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114279061483a565b60405180910390fd5b6016544210611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b906149da565b60405180910390fd5b601e546114c984602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b111561150a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611501906148fa565b60405180910390fd5b60125461152284601b54612e8c90919063ffffffff16565b1115611563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155a9061489a565b60405180910390fd5b601454611580846115726111f9565b612e8c90919063ffffffff16565b11156115c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b89061493a565b60405180910390fd5b6115d683601b54612e8c90919063ffffffff16565b601b8190555061162e83602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061167b3384612ea2565b505050565b600061168b82612ec0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116f2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116fe84612f8e565b91509150611714818761170f612fb5565b612fbd565b6117605761172986611724612fb5565b612b0a565b61175f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156117c7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117d48686866001613001565b80156117df57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506118ad85611889888887613007565b7c02000000000000000000000000000000000000000000000000000000001761302f565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611935576000600185019050600060056000838152602001908152602001600020541415611933576001548114611932578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461199d868686600161305a565b505050505050565b6119ad612df0565b80602590805190602001906119c3929190613a8e565b5050565b60115481565b6119dd6119d8613060565b613068565b565b600d5481565b6119ed612df0565b6002600b541415611a33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2a906149fa565b60405180910390fd5b6002600b819055506000611a4561251a565b73ffffffffffffffffffffffffffffffffffffffff1647604051611a68906146e6565b60006040518083038185875af1925050503d8060008114611aa5576040519150601f19603f3d011682016040523d82523d6000602084013e611aaa565b606091505b5050905080611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae5906149ba565b60405180910390fd5b506001600b81905550565b611b14838383604051806020016040528060008152506127bd565b505050565b601e5481565b60258054611b2c90614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5890614d5c565b8015611ba55780601f10611b7a57610100808354040283529160200191611ba5565b820191906000526020600020905b815481529060010190602001808311611b8857829003601f168201915b505050505081565b600a5481565b600042905090565b611bc3612df0565b8060269080519060200190611bd9929190613a8e565b5050565b60278054611bea90614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1690614d5c565b8015611c635780601f10611c3857610100808354040283529160200191611c63565b820191906000526020600020905b815481529060010190602001808311611c4657829003601f168201915b505050505081565b60216020528060005260406000206000915090505481565b611c8b613a3b565b6040518061014001604052806012548152602001601b5481526020016000815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b6000611d3382612ec0565b9050919050565b601d5481565b60185481565b80611d50816130fd565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d869061499a565b60405180910390fd5b60008311611dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc99061487a565b60405180910390fd5b602460019054906101000a900460ff16611e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e189061497a565b60405180910390fd5b601754421015611e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5d906148ba565b60405180910390fd5b6018544210611eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea1906147da565b60405180910390fd5b601f54611eff84602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b1115611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f37906148fa565b60405180910390fd5b601354611f5884601c54612e8c90919063ffffffff16565b1115611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f909061485a565b60405180910390fd5b601454611fb684611fa86111f9565b612e8c90919063ffffffff16565b1115611ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fee9061493a565b60405180910390fd5b60135461200f84601c54612e8c90919063ffffffff16565b1415612053576000602460016101000a81548160ff0219169083151502179055506001602460026101000a81548160ff021916908315150217905550426019819055505b61206883601c54612e8c90919063ffffffff16565b601c819055506120c083602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061210d3384612ea2565b505050565b601f5481565b60195481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612186576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6121df612df0565b6121e9600061311b565b565b6121f3612df0565b6121fc81613068565b50565b60226020528060005260406000206000915090505481565b60236020528060005260406000206000915090505481565b60008111612272576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122699061487a565b60405180910390fd5b6019544210158061228f5750602460029054906101000a900460ff165b6122ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c590614a1a565b60405180910390fd5b601a544210612312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612309906147ba565b60405180910390fd5b60205461236782602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b11156123a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239f906148fa565b60405180910390fd5b6123bd600d54826131df90919063ffffffff16565b3410156123ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f69061491a565b60405180910390fd5b60145461241c8261240e6111f9565b612e8c90919063ffffffff16565b111561245d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124549061493a565b60405180910390fd5b61247281601d54612e8c90919063ffffffff16565b601d819055506124ca81602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e8c90919063ffffffff16565b602360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506125173382612ea2565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61254b612df0565b80600d8190555050565b60155481565b612563612df0565b8060279080519060200190612579929190613a8e565b5050565b612585613a3b565b604051806101400160405280612599612a3a565b8152602001601d548152602001600d54815260200160155481526020016016548152602001601754815260200160185481526020016019548152602001601a548152602001602360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548152509050919050565b60606004805461263790614d5c565b80601f016020809104026020016040519081016040528092919081815260200182805461266390614d5c565b80156126b05780601f10612685576101008083540402835291602001916126b0565b820191906000526020600020905b81548152906001019060200180831161269357829003601f168201915b5050505050905090565b60165481565b602460049054906101000a900460ff161561271f576126de82612836565b1561271e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612715906148da565b60405180910390fd5b5b61272982826131f5565b5050565b60095481565b602460039054906101000a900460ff1681565b61274e612df0565b8060208190555050565b612760612df0565b80602460046101000a81548160ff02191690831515021790555050565b601a5481565b61278b612df0565b856015819055508460168190555083601781905550826018819055508160198190555080601a81905550505050505050565b6127c8848484611680565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461282a576127f384848484613300565b612829576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60135481565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806128c2575061289361251a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b60175481565b6060602460039054906101000a900460ff16156129185760266128f183613460565b6040516020016129029291906146b7565b6040516020818303038152906040529050612946565b602561292383613460565b6040516020016129349291906146b7565b60405160208183030381529060405290505b919050565b60125481565b612959612df0565b80600a8190555050565b60205481565b612971612df0565b81602460036101000a81548160ff02191690831515021790555080602690805190602001906129a1929190613a8e565b505050565b602680546129b390614d5c565b80601f01602080910402602001604051908101604052809291908181526020018280546129df90614d5c565b8015612a2c5780601f10612a0157610100808354040283529160200191612a2c565b820191906000526020600020905b815481529060010190602001808311612a0f57829003601f168201915b505050505081565b601c5481565b6000601c54601b54601154601054601454612a559190614c68565b612a5f9190614c68565b612a699190614c68565b612a739190614c68565b905090565b606060278054612a8790614d5c565b80601f0160208091040260200160405190810160405280929190818152602001828054612ab390614d5c565b8015612b005780601f10612ad557610100808354040283529160200191612b00565b820191906000526020600020905b815481529060010190602001808311612ae357829003601f168201915b5050505050905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612ba6612df0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0d906147fa565b60405180910390fd5b612c1f8161311b565b50565b612c2a612df0565b8060098190555050565b612c3c612df0565b612c458161360d565b50565b600081612c53612deb565b11158015612c62575060015482105b8015612ca0575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000612cb282611d28565b90508073ffffffffffffffffffffffffffffffffffffffff16612cd3612fb5565b73ffffffffffffffffffffffffffffffffffffffff1614612d3657612cff81612cfa612fb5565b612b0a565b612d35576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b612df8613060565b73ffffffffffffffffffffffffffffffffffffffff16612e1661251a565b73ffffffffffffffffffffffffffffffffffffffff1614612e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e639061495a565b60405180910390fd5b565b6000612e8582612e7d336136ab565b6009546136db565b9050919050565b60008183612e9a9190614b87565b905092915050565b612ebc8282604051806020016040528060008152506136f1565b5050565b60008082905080612ecf612deb565b11612f5757600154811015612f565760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612f54575b6000811415612f4a576005600083600190039350838152602001908152602001600020549050612f1f565b8092505050612f89565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861301e86868461378f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558073ffffffffffffffffffffffffffffffffffffffff167fc02124c68d1738bfb74eeba2c844061a3374d1e6f912c3c845c6c8aef67e649060405160405180910390a250565b60006131148261310c336136ab565b600a546136db565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836131ed9190614c0e565b905092915050565b8060086000613202612fb5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166132af612fb5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132f49190614762565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613326612fb5565b8786866040518563ffffffff1660e01b81526004016133489493929190614716565b602060405180830381600087803b15801561336257600080fd5b505af192505050801561339357506040513d601f19601f820116820180604052508101906133909190613fda565b60015b61340d573d80600081146133c3576040519150601f19603f3d011682016040523d82523d6000602084013e6133c8565b606091505b50600081511415613405576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156134a8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613608565b600082905060005b600082146134da5780806134c390614dbf565b915050600a826134d39190614bdd565b91506134b0565b60008167ffffffffffffffff81111561351c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561354e5781602001600182028036833780820191505090505b5090505b60008514613601576001826135679190614c68565b9150600a856135769190614e2c565b60306135829190614b87565b60f81b8183815181106135be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856135fa9190614bdd565b9450613552565b8093505050505b919050565b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f4a92e3fad22046b744a1d74eeacc4fd529bfd154dc3ff26d90203e692fd7514660405160405180910390a250565b6000816040516020016136be919061469c565b604051602081830303815290604052805190602001209050919050565b60006136e8848385613798565b90509392505050565b6136fb83836137af565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461378a5760006001549050600083820390505b61373c6000868380600101945086613300565b613772576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061372957816001541461378757600080fd5b50505b505050565b60009392505050565b6000826137a5858461396d565b1490509392505050565b6000600154905060008214156137f1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137fe6000848385613001565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613875836138666000866000613007565b61386f856139e9565b1761302f565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461391657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506138db565b506000821415613952576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050613968600084838561305a565b505050565b60008082905060005b84518110156139de576139c9828683815181106139bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516139f9565b915080806139d690614dbf565b915050613976565b508091505092915050565b60006001821460e11b9050919050565b6000818310613a1157613a0c8284613a24565b613a1c565b613a1b8383613a24565b5b905092915050565b600082600052816020526040600020905092915050565b604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b828054613a9a90614d5c565b90600052602060002090601f016020900481019282613abc5760008555613b03565b82601f10613ad557805160ff1916838001178555613b03565b82800160010185558215613b03579182015b82811115613b02578251825591602001919060010190613ae7565b5b509050613b109190613b14565b5090565b5b80821115613b2d576000816000905550600101613b15565b5090565b6000613b44613b3f84614a96565b614a71565b90508083825260208201905082856020860282011115613b6357600080fd5b60005b85811015613b935781613b798882613c6d565b845260208401935060208301925050600181019050613b66565b5050509392505050565b6000613bb0613bab84614ac2565b614a71565b905082815260208101848484011115613bc857600080fd5b613bd3848285614d1a565b509392505050565b6000613bee613be984614af3565b614a71565b905082815260208101848484011115613c0657600080fd5b613c11848285614d1a565b509392505050565b600081359050613c2881615355565b92915050565b600082601f830112613c3f57600080fd5b8135613c4f848260208601613b31565b91505092915050565b600081359050613c678161536c565b92915050565b600081359050613c7c81615383565b92915050565b600081359050613c918161539a565b92915050565b600081519050613ca68161539a565b92915050565b600082601f830112613cbd57600080fd5b8135613ccd848260208601613b9d565b91505092915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613bdb565b91505092915050565b600081359050613d0f816153b1565b92915050565b600060208284031215613d2757600080fd5b6000613d3584828501613c19565b91505092915050565b60008060408385031215613d5157600080fd5b6000613d5f85828601613c19565b9250506020613d7085828601613c19565b9150509250929050565b600080600060608486031215613d8f57600080fd5b6000613d9d86828701613c19565b9350506020613dae86828701613c19565b9250506040613dbf86828701613d00565b9150509250925092565b60008060008060808587031215613ddf57600080fd5b6000613ded87828801613c19565b9450506020613dfe87828801613c19565b9350506040613e0f87828801613d00565b925050606085013567ffffffffffffffff811115613e2c57600080fd5b613e3887828801613cac565b91505092959194509250565b60008060408385031215613e5757600080fd5b6000613e6585828601613c19565b9250506020613e7685828601613c58565b9150509250929050565b60008060408385031215613e9357600080fd5b6000613ea185828601613c19565b9250506020613eb285828601613d00565b9150509250929050565b600060208284031215613ece57600080fd5b6000613edc84828501613c58565b91505092915050565b600080600060608486031215613efa57600080fd5b6000613f0886828701613c58565b9350506020613f1986828701613c58565b9250506040613f2a86828701613c58565b9150509250925092565b60008060408385031215613f4757600080fd5b6000613f5585828601613c58565b925050602083013567ffffffffffffffff811115613f7257600080fd5b613f7e85828601613cd6565b9150509250929050565b600060208284031215613f9a57600080fd5b6000613fa884828501613c6d565b91505092915050565b600060208284031215613fc357600080fd5b6000613fd184828501613c82565b91505092915050565b600060208284031215613fec57600080fd5b6000613ffa84828501613c97565b91505092915050565b60006020828403121561401557600080fd5b600082013567ffffffffffffffff81111561402f57600080fd5b61403b84828501613cd6565b91505092915050565b60006020828403121561405657600080fd5b600061406484828501613d00565b91505092915050565b6000806040838503121561408057600080fd5b600061408e85828601613d00565b925050602083013567ffffffffffffffff8111156140ab57600080fd5b6140b785828601613c2e565b9150509250929050565b60008060008060008060c087890312156140da57600080fd5b60006140e889828a01613d00565b96505060206140f989828a01613d00565b955050604061410a89828a01613d00565b945050606061411b89828a01613d00565b935050608061412c89828a01613d00565b92505060a061413d89828a01613d00565b9150509295509295509295565b61415381614c9c565b82525050565b61416a61416582614c9c565b614e08565b82525050565b61417981614cae565b82525050565b61418881614cba565b82525050565b600061419982614b39565b6141a38185614b4f565b93506141b3818560208601614d29565b6141bc81614f19565b840191505092915050565b60006141d282614b44565b6141dc8185614b6b565b93506141ec818560208601614d29565b6141f581614f19565b840191505092915050565b600061420b82614b44565b6142158185614b7c565b9350614225818560208601614d29565b80840191505092915050565b6000815461423e81614d5c565b6142488186614b7c565b945060018216600081146142635760018114614274576142a7565b60ff198316865281860193506142a7565b61427d85614b24565b60005b8381101561429f57815481890152600182019150602081019050614280565b838801955050505b50505092915050565b60006142bd600c83614b6b565b91506142c882614f37565b602082019050919050565b60006142e0600b83614b6b565b91506142eb82614f60565b602082019050919050565b6000614303602683614b6b565b915061430e82614f89565b604082019050919050565b6000614326602183614b6b565b915061433182614fd8565b604082019050919050565b6000614349601883614b6b565b915061435482615027565b602082019050919050565b600061436c601b83614b6b565b915061437782615050565b602082019050919050565b600061438f601b83614b6b565b915061439a82615079565b602082019050919050565b60006143b2601b83614b6b565b91506143bd826150a2565b602082019050919050565b60006143d5601883614b6b565b91506143e0826150cb565b602082019050919050565b60006143f8601183614b6b565b9150614403826150f4565b602082019050919050565b600061441b603983614b6b565b91506144268261511d565b604082019050919050565b600061443e601883614b6b565b91506144498261516c565b602082019050919050565b6000614461601283614b6b565b915061446c82615195565b602082019050919050565b6000614484600583614b7c565b915061448f826151be565b600582019050919050565b60006144a7602083614b6b565b91506144b2826151e7565b602082019050919050565b60006144ca602183614b6b565b91506144d582615210565b604082019050919050565b60006144ed600083614b60565b91506144f88261525f565b600082019050919050565b6000614510602a83614b6b565b915061451b82615262565b604082019050919050565b6000614533600f83614b6b565b915061453e826152b1565b602082019050919050565b6000614556600b83614b6b565b9150614561826152da565b602082019050919050565b6000614579601f83614b6b565b915061458482615303565b602082019050919050565b600061459c601983614b6b565b91506145a78261532c565b602082019050919050565b610140820160008201516145c9600085018261467e565b5060208201516145dc602085018261467e565b5060408201516145ef604085018261467e565b506060820151614602606085018261467e565b506080820151614615608085018261467e565b5060a082015161462860a085018261467e565b5060c082015161463b60c085018261467e565b5060e082015161464e60e085018261467e565b5061010082015161466361010085018261467e565b5061012082015161467861012085018261467e565b50505050565b61468781614d10565b82525050565b61469681614d10565b82525050565b60006146a88284614159565b60148201915081905092915050565b60006146c38285614231565b91506146cf8284614200565b91506146da82614477565b91508190509392505050565b60006146f1826144e0565b9150819050919050565b6000602082019050614710600083018461414a565b92915050565b600060808201905061472b600083018761414a565b614738602083018661414a565b614745604083018561468d565b8181036060830152614757818461418e565b905095945050505050565b60006020820190506147776000830184614170565b92915050565b6000602082019050614792600083018461417f565b92915050565b600060208201905081810360008301526147b281846141c7565b905092915050565b600060208201905081810360008301526147d3816142b0565b9050919050565b600060208201905081810360008301526147f3816142d3565b9050919050565b60006020820190508181036000830152614813816142f6565b9050919050565b6000602082019050818103600083015261483381614319565b9050919050565b600060208201905081810360008301526148538161433c565b9050919050565b600060208201905081810360008301526148738161435f565b9050919050565b6000602082019050818103600083015261489381614382565b9050919050565b600060208201905081810360008301526148b3816143a5565b9050919050565b600060208201905081810360008301526148d3816143c8565b9050919050565b600060208201905081810360008301526148f3816143eb565b9050919050565b600060208201905081810360008301526149138161440e565b9050919050565b6000602082019050818103600083015261493381614431565b9050919050565b6000602082019050818103600083015261495381614454565b9050919050565b600060208201905081810360008301526149738161449a565b9050919050565b60006020820190508181036000830152614993816144bd565b9050919050565b600060208201905081810360008301526149b381614503565b9050919050565b600060208201905081810360008301526149d381614526565b9050919050565b600060208201905081810360008301526149f381614549565b9050919050565b60006020820190508181036000830152614a138161456c565b9050919050565b60006020820190508181036000830152614a338161458f565b9050919050565b600061014082019050614a5060008301846145b2565b92915050565b6000602082019050614a6b600083018461468d565b92915050565b6000614a7b614a8c565b9050614a878282614d8e565b919050565b6000604051905090565b600067ffffffffffffffff821115614ab157614ab0614eea565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614add57614adc614eea565b5b614ae682614f19565b9050602081019050919050565b600067ffffffffffffffff821115614b0e57614b0d614eea565b5b614b1782614f19565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b9282614d10565b9150614b9d83614d10565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bd257614bd1614e5d565b5b828201905092915050565b6000614be882614d10565b9150614bf383614d10565b925082614c0357614c02614e8c565b5b828204905092915050565b6000614c1982614d10565b9150614c2483614d10565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c5d57614c5c614e5d565b5b828202905092915050565b6000614c7382614d10565b9150614c7e83614d10565b925082821015614c9157614c90614e5d565b5b828203905092915050565b6000614ca782614cf0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d47578082015181840152602081019050614d2c565b83811115614d56576000848401525b50505050565b60006002820490506001821680614d7457607f821691505b60208210811415614d8857614d87614ebb565b5b50919050565b614d9782614f19565b810181811067ffffffffffffffff82111715614db657614db5614eea565b5b80604052505050565b6000614dca82614d10565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dfd57614dfc614e5d565b5b600182019050919050565b6000614e1382614e1a565b9050919050565b6000614e2582614f2a565b9050919050565b6000614e3782614d10565b9150614e4283614d10565b925082614e5257614e51614e8c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d41494e206973206f7665720000000000000000000000000000000000000000600082015250565b7f574c32206973206f766572000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f574c31206d7573742062652061637469766520746f206d696e7420746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f574c3120686173206e6f74207374617274656420796574210000000000000000600082015250565b7f4d617820737570706c7920666f7220574c322072656163686564210000000000600082015250565b7f4d757374206d696e74206174206c65617374203120746f6b656e2e0000000000600082015250565b7f4d617820737570706c7920666f7220574c312072656163686564210000000000600082015250565b7f574c3220686173206e6f74207374617274656420796574210000000000000000600082015250565b7f5065726d697373696f6e2064656e696564000000000000000000000000000000600082015250565b7f507572636861736520776f756c6420657863656564206d6178206e756d62657260008201527f206f66206d6574616361726473207065722077616c6c65742e00000000000000602082015250565b7f446964206e6f742073656e6420656e6f756768206574682e0000000000000000600082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f574c32206d7573742062652061637469766520746f206d696e7420746f6b656e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f74207760008201527f686974656c697374656400000000000000000000000000000000000000000000602082015250565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f574c31206973206f766572000000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d41494e20686173206e6f742073746172746564207965742100000000000000600082015250565b61535e81614c9c565b811461536957600080fd5b50565b61537581614cae565b811461538057600080fd5b50565b61538c81614cba565b811461539757600080fd5b50565b6153a381614cc4565b81146153ae57600080fd5b50565b6153ba81614d10565b81146153c557600080fd5b5056fea2646970667358221220642806bd7a16a26530369b5621215f9ad22e33e0445afef1191424fcc1a108ec64736f6c63430008040033
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.