ERC-721
Overview
Max Total Supply
0 MBSC
Holders
795
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MBSCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaBrewSocietyMBSC
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; /** ERC721 Smart Contract */ import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract MetaBrewSocietyMBSC is ERC721, Ownable, AccessControl { using Strings for string; using Counters for Counters.Counter; uint public constant NUMBER_RESERVED_TOKENS = 500; uint256 public price = 1e18; // The initial price to mint in WEI. uint256 public discount = 0; uint public currentSaleMaxTokens = 1; uint public perWalletMaxTokens = 6; bytes32 public merkleRoot; address[2] public winterWallets = [ 0xd541da4C37e268b9eC4d7D541Df19AdCf564c6A9, 0xe0CB05cBf3dBeb647394905848d9361Daa99dE28 ]; // usewinter.com, mainnet and testnet address public discountContract = 0xf6d7b55779eC71381e09eb1781bA7f0B6066da42; // Create a new role identifier for the roles bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant WITHDRAW_ROLE = keccak256("WITHDRAW_ROLE"); bytes32 public constant SALES_ROLE = keccak256("SALES_ROLE"); bool public saleIsActive = false; bool public saleMaxLock = false; bool[] public discountUsed; Counters.Counter private _reservedSupply; Counters.Counter private _tokenSupply; string private _baseTokenURI; constructor() ERC721("MetaBrewSociety Genesis Certificate", "MBSC") { //Name of Project and Token "Ticker" _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(ADMIN_ROLE, msg.sender); _setupRole(WITHDRAW_ROLE, msg.sender); _setupRole(SALES_ROLE, msg.sender); } function mintW(uint256 amount, address to) external payable //This function is for usewwinter.com Mint { require(to != address(0), "to missing!"); require(msg.sender == winterWallets[0] || msg.sender == winterWallets[1], "invalid source Wallet"); require(msg.sender == tx.origin, "No contracts!"); require(saleIsActive, "Sale not active"); require(msg.value >= price * amount, "Not enough ETH"); require(_tokenSupply.current() + amount <= currentSaleMaxTokens, "Current Supply reached"); require(balanceOf(to) + amount <= perWalletMaxTokens || to == winterWallets[0] || to == winterWallets[1], "reached per wallet limit!"); for (uint i = 0; i < amount; i++) { _safeMint(to, _tokenSupply.current() + 1); _tokenSupply.increment(); } } function mint(uint256 amount, address to, bytes32[] calldata proof, uint256 discountTokenId) external payable { require(to != address(0), "to missing!"); require(msg.sender == tx.origin, "No contracts!"); require(saleIsActive, "Sale not active"); require(_tokenSupply.current() + amount <= currentSaleMaxTokens, "Current Supply reached"); require(balanceOf(to) + amount <= perWalletMaxTokens, "reached per wallet limit!"); require((merkleRoot == 0 || _verify(_leaf(msg.sender), proof)|| _verify(_leaf(to), proof)), "invalid merkle proof"); require(discountTokenId <= discountUsed.length, "discountTokenId is out of range"); require(_checkPrice(amount, discountTokenId), "Not enough ETH"); for (uint i = 0; i < amount; i++) { _safeMint(to, _tokenSupply.current() + 1); _tokenSupply.increment(); } } function flipSaleState() external onlyRole(SALES_ROLE){ saleIsActive = !saleIsActive; } function mintReservedTokens(uint256 amount, address to) external onlyRole(SALES_ROLE){ require(_reservedSupply.current() + amount <= NUMBER_RESERVED_TOKENS, "This amount is more than max allowed"); require(to != address(0)); for (uint i = 0; i < amount; i++) { _safeMint(to, _tokenSupply.current() + 1); _tokenSupply.increment(); _reservedSupply.increment(); } } function withdraw() external onlyRole(WITHDRAW_ROLE){ payable(owner()).transfer(address(this).balance); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function setMerkleRoot(bytes32 _merkleRoot) external onlyRole(ADMIN_ROLE){ merkleRoot = _merkleRoot; } function setSaleMax(uint32 _limit, bool lockAfterUpdate) external onlyRole(SALES_ROLE){ require(saleMaxLock == false , "saleMaxLock is set"); saleMaxLock = lockAfterUpdate; currentSaleMaxTokens = _limit; } function setPrice(uint256 _price) external onlyRole(SALES_ROLE){ price = _price; } function setWalletMax(uint16 _walletLimit) external onlyRole(SALES_ROLE){ perWalletMaxTokens = _walletLimit; } function _setBaseURI(string memory baseURI) internal virtual { _baseTokenURI = baseURI; } function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory baseURI) external onlyOwner { _setBaseURI(baseURI); } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { string memory _tokenURI = super.tokenURI(tokenId); return bytes(_tokenURI).length > 0 ? string(abi.encodePacked(_tokenURI, ".json")) : ""; } function supply() external view returns (uint256) { return _tokenSupply.current(); } function reservedTokensMinted() external view returns (uint256) { return _reservedSupply.current(); } function _leaf(address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account)); } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, merkleRoot, leaf); } function _checkPrice(uint256 amount, uint256 discountTokenId) internal returns (bool) { if (msg.value >= price * amount) { return true; } else if (discountTokenId > 0 && discountTokenId <= discountUsed.length && amount == 1 && _walletHoldsUnusedDiscountToken(msg.sender, discountContract, discountTokenId)) { uint256 discountedPrice = price - discount; // discount in wei if (msg.value >= discountedPrice) { discountUsed[discountTokenId - 1] = true; return true; } } return false; } function _walletHoldsUnusedDiscountToken(address _wallet, address _contract, uint256 discountTokenId) internal view returns (bool) { if ((discountTokenId <= discountUsed.length || discountUsed[discountTokenId - 1] == false) && IERC721(_contract).ownerOf(discountTokenId) == _wallet) { return true; } return false; } function setDiscountContract(address _discountContract, uint256 _maxTokenId, uint256 _discount) external onlyRole(ADMIN_ROLE) { if (discountContract != _discountContract) { // reset all tokenId states to false discountUsed = new bool[](_maxTokenId); } discountContract = _discountContract; discount = _discount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALES_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSaleMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"discountUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"discountTokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintW","outputs":[],"stateMutability":"payable","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":[],"name":"perWalletMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleMaxLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_discountContract","type":"address"},{"internalType":"uint256","name":"_maxTokenId","type":"uint256"},{"internalType":"uint256","name":"_discount","type":"uint256"}],"name":"setDiscountContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_limit","type":"uint32"},{"internalType":"bool","name":"lockAfterUpdate","type":"bool"}],"name":"setSaleMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_walletLimit","type":"uint16"}],"name":"setWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winterWallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052670de0b6b3a764000060085560006009556001600a556006600b55604051806040016040528073d541da4c37e268b9ec4d7d541df19adcf564c6a973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200173e0cb05cbf3dbeb647394905848d9361daa99de2873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250600d906002620000c6929190620004f6565b5073f6d7b55779ec71381e09eb1781ba7f0b6066da42600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600f60146101000a81548160ff0219169083151502179055506000600f60156101000a81548160ff0219169083151502179055503480156200015f57600080fd5b5060405180606001604052806023815260200162005d09602391396040518060400160405280600481526020017f4d425343000000000000000000000000000000000000000000000000000000008152508160009080519060200190620001c892919062000578565b508060019080519060200190620001e192919062000578565b50505062000204620001f8620002b560201b60201c565b620002bd60201b60201c565b620002196000801b336200038360201b60201c565b6200024b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200038360201b60201c565b6200027d7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec336200038360201b60201c565b620002af7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def336200038360201b60201c565b6200068d565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200039582826200039960201b60201c565b5050565b620003ab82826200048b60201b60201c565b620004875760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200042c620002b560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b826002810192821562000565579160200282015b82811115620005645782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906200050a565b5b50905062000574919062000609565b5090565b828054620005869062000657565b90600052602060002090601f016020900481019282620005aa5760008555620005f6565b82601f10620005c557805160ff1916838001178555620005f6565b82800160010185558215620005f6579182015b82811115620005f5578251825591602001919060010190620005d8565b5b50905062000605919062000609565b5090565b5b80821115620006245760008160009055506001016200060a565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067057607f821691505b6020821081141562000687576200068662000628565b5b50919050565b61566c806200069d6000396000f3fe6080604052600436106102ae5760003560e01c806375b238fc11610175578063b88d4fde116100dc578063e6094f4c11610095578063ee9852341161006f578063ee98523414610a6c578063f2fde38b14610a97578063f3e3882114610ac0578063f7c8ce7c14610aeb576102ae565b8063e6094f4c146109e8578063e985e9c514610a04578063eb8d244414610a41576102ae565b8063b88d4fde146108c8578063c1a2c21f146108f1578063c87b56dd1461091a578063d547741f14610957578063d8eddd6414610980578063e02023a1146109bd576102ae565b8063a035b1fe1161012e578063a035b1fe146107c8578063a049dd40146107f3578063a217fddf1461081e578063a22cb46514610849578063a6c8e19614610872578063b22edfbc1461089d576102ae565b806375b238fc146106b85780637cb64759146106e35780638da5cb5b1461070c57806391b7f5ed1461073757806391d148541461076057806395d89b411461079d576102ae565b80632eb4a7ab1161021957806355f804b3116101d257806355f804b3146105a85780635e5116c9146105d15780636352211e146105fc5780636b6f4a9d1461063957806370a0823114610664578063715018a6146106a1576102ae565b80632eb4a7ab146104d45780632f2ff15d146104ff57806334918dfd1461052857806336568abe1461053f5780633ccfd60b1461056857806342842e0e1461057f576102ae565b8063104789c71161026b578063104789c7146103d557806315bf76941461040057806318f027ee1461041c57806323b872dd14610445578063248a9ca31461046e57806324d043e0146104ab576102ae565b806301ffc9a7146102b3578063047fc9aa146102f057806306fdde031461031b578063081812fc14610346578063095ea7b3146103835780630d304a5a146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613a87565b610b28565b6040516102e79190613acf565b60405180910390f35b3480156102fc57600080fd5b50610305610b3a565b6040516103129190613b03565b60405180910390f35b34801561032757600080fd5b50610330610b4b565b60405161033d9190613bb7565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190613c05565b610bdd565b60405161037a9190613c73565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613cba565b610c23565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190613d62565b610d3b565b005b3480156103e157600080fd5b506103ea610de7565b6040516103f79190613c73565b60405180910390f35b61041a60048036038101906104159190613e07565b610e0d565b005b34801561042857600080fd5b50610443600480360381019061043e9190613ec9565b6111c6565b005b34801561045157600080fd5b5061046c60048036038101906104679190613ef6565b6111ff565b005b34801561047a57600080fd5b5061049560048036038101906104909190613f7f565b61125f565b6040516104a29190613fbb565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd9190613fd6565b61127f565b005b3480156104e057600080fd5b506104e96113ac565b6040516104f69190613fbb565b60405180910390f35b34801561050b57600080fd5b5061052660048036038101906105219190614029565b6113b2565b005b34801561053457600080fd5b5061053d6113d3565b005b34801561054b57600080fd5b5061056660048036038101906105619190614029565b61142a565b005b34801561057457600080fd5b5061057d6114ad565b005b34801561058b57600080fd5b506105a660048036038101906105a19190613ef6565b611528565b005b3480156105b457600080fd5b506105cf60048036038101906105ca9190614199565b611548565b005b3480156105dd57600080fd5b506105e661155c565b6040516105f39190613b03565b60405180910390f35b34801561060857600080fd5b50610623600480360381019061061e9190613c05565b611562565b6040516106309190613c73565b60405180910390f35b34801561064557600080fd5b5061064e611614565b60405161065b9190613b03565b60405180910390f35b34801561067057600080fd5b5061068b600480360381019061068691906141e2565b61161a565b6040516106989190613b03565b60405180910390f35b3480156106ad57600080fd5b506106b66116d2565b005b3480156106c457600080fd5b506106cd6116e6565b6040516106da9190613fbb565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190613f7f565b61170a565b005b34801561071857600080fd5b5061072161173f565b60405161072e9190613c73565b60405180910390f35b34801561074357600080fd5b5061075e60048036038101906107599190613c05565b611769565b005b34801561076c57600080fd5b5061078760048036038101906107829190614029565b61179e565b6040516107949190613acf565b60405180910390f35b3480156107a957600080fd5b506107b2611809565b6040516107bf9190613bb7565b60405180910390f35b3480156107d457600080fd5b506107dd61189b565b6040516107ea9190613b03565b60405180910390f35b3480156107ff57600080fd5b506108086118a1565b6040516108159190613acf565b60405180910390f35b34801561082a57600080fd5b506108336118b4565b6040516108409190613fbb565b60405180910390f35b34801561085557600080fd5b50610870600480360381019061086b919061420f565b6118bb565b005b34801561087e57600080fd5b506108876118d1565b6040516108949190613b03565b60405180910390f35b3480156108a957600080fd5b506108b26118d7565b6040516108bf9190613b03565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea91906142f0565b6118dd565b005b3480156108fd57600080fd5b5061091860048036038101906109139190614373565b61193f565b005b34801561092657600080fd5b50610941600480360381019061093c9190613c05565b611a53565b60405161094e9190613bb7565b60405180910390f35b34801561096357600080fd5b5061097e60048036038101906109799190614029565b611aa9565b005b34801561098c57600080fd5b506109a760048036038101906109a29190613c05565b611aca565b6040516109b49190613c73565b60405180910390f35b3480156109c957600080fd5b506109d2611b00565b6040516109df9190613fbb565b60405180910390f35b610a0260048036038101906109fd9190614373565b611b24565b005b348015610a1057600080fd5b50610a2b6004803603810190610a2691906143b3565b611f86565b604051610a389190613acf565b60405180910390f35b348015610a4d57600080fd5b50610a5661201a565b604051610a639190613acf565b60405180910390f35b348015610a7857600080fd5b50610a8161202d565b604051610a8e9190613fbb565b60405180910390f35b348015610aa357600080fd5b50610abe6004803603810190610ab991906141e2565b612051565b005b348015610acc57600080fd5b50610ad56120d5565b604051610ae29190613b03565b60405180910390f35b348015610af757600080fd5b50610b126004803603810190610b0d9190613c05565b6120e6565b604051610b1f9190613acf565b60405180910390f35b6000610b338261211a565b9050919050565b6000610b466012612194565b905090565b606060008054610b5a90614422565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8690614422565b8015610bd35780601f10610ba857610100808354040283529160200191610bd3565b820191906000526020600020905b815481529060010190602001808311610bb657829003601f168201915b5050505050905090565b6000610be8826121a2565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c2e82611562565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c96906144c6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cbe6121ed565b73ffffffffffffffffffffffffffffffffffffffff161480610ced5750610cec81610ce76121ed565b611f86565b5b610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2390614558565b60405180910390fd5b610d3683836121f5565b505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def610d65816122ae565b60001515600f60159054906101000a900460ff16151514610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db2906145c4565b60405180910390fd5b81600f60156101000a81548160ff0219169083151502179055508263ffffffff16600a81905550505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490614630565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee29061469c565b60405180910390fd5b600f60149054906101000a900460ff16610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190614708565b60405180910390fd5b600a5485610f486012612194565b610f529190614757565b1115610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906147f9565b60405180910390fd5b600b5485610fa08661161a565b610faa9190614757565b1115610feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe290614865565b60405180910390fd5b6000801b600c54148061104d575061104c611005336122c2565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506122f2565b5b806110a757506110a661105f856122c2565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506122f2565b5b6110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd906148d1565b60405180910390fd5b60108054905081111561112e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111259061493d565b60405180910390fd5b6111388582612309565b611177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116e906149a9565b60405180910390fd5b60005b858110156111be576111a18560016111926012612194565b61119c9190614757565b612400565b6111ab601261241e565b80806111b6906149c9565b91505061117a565b505050505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def6111f0816122ae565b8161ffff16600b819055505050565b61121061120a6121ed565b82612434565b61124f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124690614a84565b60405180910390fd5b61125a8383836124c9565b505050565b600060076000838152602001908152602001600020600101549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756112a9816122ae565b8373ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461135e578267ffffffffffffffff8111156113185761131761406e565b5b6040519080825280602002602001820160405280156113465781602001602082028036833780820191505090505b506010908051906020019061135c9291906138d2565b505b83600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160098190555050505050565b600c5481565b6113bb8261125f565b6113c4816122ae565b6113ce8383612730565b505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def6113fd816122ae565b600f60149054906101000a900460ff1615600f60146101000a81548160ff02191690831515021790555050565b6114326121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149690614b16565b60405180910390fd5b6114a98282612811565b5050565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec6114d7816122ae565b6114df61173f565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611524573d6000803e3d6000fd5b5050565b611543838383604051806020016040528060008152506118dd565b505050565b6115506128f3565b61155981612971565b50565b600b5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561160b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160290614b82565b60405180910390fd5b80915050919050565b60095481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290614c14565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116da6128f3565b6116e4600061298b565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611734816122ae565b81600c819055505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def611793816122ae565b816008819055505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606001805461181890614422565b80601f016020809104026020016040519081016040528092919081815260200182805461184490614422565b80156118915780601f1061186657610100808354040283529160200191611891565b820191906000526020600020905b81548152906001019060200180831161187457829003601f168201915b5050505050905090565b60085481565b600f60159054906101000a900460ff1681565b6000801b81565b6118cd6118c66121ed565b8383612a51565b5050565b600a5481565b6101f481565b6118ee6118e86121ed565b83612434565b61192d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192490614a84565b60405180910390fd5b61193984848484612bbe565b50505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def611969816122ae565b6101f4836119776011612194565b6119819190614757565b11156119c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b990614ca6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119fc57600080fd5b60005b83811015611a4d57611a26836001611a176012612194565b611a219190614757565b612400565b611a30601261241e565b611a3a601161241e565b8080611a45906149c9565b9150506119ff565b50505050565b60606000611a6083612c1a565b90506000815111611a805760405180602001604052806000815250611aa1565b80604051602001611a919190614d4e565b6040516020818303038152906040525b915050919050565b611ab28261125f565b611abb816122ae565b611ac58383612811565b505050565b600d8160028110611ada57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b90614630565b60405180910390fd5b600d600060028110611ba957611ba8614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611c655750600d600160028110611c1457611c13614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614deb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d099061469c565b60405180910390fd5b600f60149054906101000a900460ff16611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5890614708565b60405180910390fd5b81600854611d6f9190614e0b565b341015611db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da8906149a9565b60405180910390fd5b600a5482611dbf6012612194565b611dc99190614757565b1115611e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e01906147f9565b60405180910390fd5b600b5482611e178361161a565b611e219190614757565b111580611e8f5750600d600060028110611e3e57611e3d614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80611efb5750600d600160028110611eaa57611ea9614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3190614865565b60405180910390fd5b60005b82811015611f8157611f64826001611f556012612194565b611f5f9190614757565b612400565b611f6e601261241e565b8080611f79906149c9565b915050611f3d565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600f60149054906101000a900460ff1681565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def81565b6120596128f3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c090614ed7565b60405180910390fd5b6120d28161298b565b50565b60006120e16011612194565b905090565b601081815481106120f657600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061218d575061218c82612c82565b5b9050919050565b600081600001549050919050565b6121ab81612d64565b6121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e190614b82565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661226883611562565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6122bf816122ba6121ed565b612dd0565b50565b6000816040516020016122d59190614f3f565b604051602081830303815290604052805190602001209050919050565b600061230182600c5485612e6d565b905092915050565b6000826008546123199190614e0b565b341061232857600190506123fa565b60008211801561233d57506010805490508211155b80156123495750600183145b801561237e575061237d33600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612e84565b5b156123f55760006009546008546123959190614f5a565b90508034106123f357600160106001856123af9190614f5a565b815481106123c0576123bf614d70565b5b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555060019150506123fa565b505b600090505b92915050565b61241a828260405180602001604052806000815250612fa7565b5050565b6001816000016000828254019250508190555050565b60008061244083611562565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061248257506124818185611f86565b5b806124c057508373ffffffffffffffffffffffffffffffffffffffff166124a884610bdd565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124e982611562565b73ffffffffffffffffffffffffffffffffffffffff161461253f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253690615000565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a690615092565b60405180910390fd5b6125ba838383613002565b6125c56000826121f5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126159190614f5a565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461266c9190614757565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461272b838383613012565b505050565b61273a828261179e565b61280d5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506127b26121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61281b828261179e565b156128ef5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128946121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6128fb6121ed565b73ffffffffffffffffffffffffffffffffffffffff1661291961173f565b73ffffffffffffffffffffffffffffffffffffffff161461296f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612966906150fe565b60405180910390fd5b565b8060139080519060200190612987929190613978565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab79061516a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612bb19190613acf565b60405180910390a3505050565b612bc98484846124c9565b612bd584848484613017565b612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b906151fc565b60405180910390fd5b50505050565b6060612c25826121a2565b6000612c2f61319f565b90506000815111612c4f5760405180602001604052806000815250612c7a565b80612c5984613231565b604051602001612c6a92919061521c565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d4d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d5d5750612d5c82613392565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612dda828261179e565b612e6957612dff8173ffffffffffffffffffffffffffffffffffffffff1660146133fc565b612e0d8360001c60206133fc565b604051602001612e1e9291906152d8565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e609190613bb7565b60405180910390fd5b5050565b600082612e7a8584613638565b1490509392505050565b600060108054905082111580612edd5750600015156010600184612ea89190614f5a565b81548110612eb957612eb8614d70565b5b90600052602060002090602091828204019190069054906101000a900460ff161515145b8015612f8d57508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401612f349190613b03565b602060405180830381865afa158015612f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f759190615327565b73ffffffffffffffffffffffffffffffffffffffff16145b15612f9b5760019050612fa0565b600090505b9392505050565b612fb1838361368e565b612fbe6000848484613017565b612ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff4906151fc565b60405180910390fd5b505050565b61300d838383613868565b505050565b505050565b60006130388473ffffffffffffffffffffffffffffffffffffffff1661386d565b15613192578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130616121ed565b8786866040518563ffffffff1660e01b815260040161308394939291906153a9565b6020604051808303816000875af19250505080156130bf57506040513d601f19601f820116820180604052508101906130bc919061540a565b60015b613142573d80600081146130ef576040519150601f19603f3d011682016040523d82523d6000602084013e6130f4565b606091505b5060008151141561313a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613131906151fc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613197565b600190505b949350505050565b6060601380546131ae90614422565b80601f01602080910402602001604051908101604052809291908181526020018280546131da90614422565b80156132275780601f106131fc57610100808354040283529160200191613227565b820191906000526020600020905b81548152906001019060200180831161320a57829003601f168201915b5050505050905090565b60606000821415613279576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061338d565b600082905060005b600082146132ab578080613294906149c9565b915050600a826132a49190615466565b9150613281565b60008167ffffffffffffffff8111156132c7576132c661406e565b5b6040519080825280601f01601f1916602001820160405280156132f95781602001600182028036833780820191505090505b5090505b60008514613386576001826133129190614f5a565b9150600a856133219190615497565b603061332d9190614757565b60f81b81838151811061334357613342614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561337f9190615466565b94506132fd565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000600283600261340f9190614e0b565b6134199190614757565b67ffffffffffffffff8111156134325761343161406e565b5b6040519080825280601f01601f1916602001820160405280156134645781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349c5761349b614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613500576134ff614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026135409190614e0b565b61354a9190614757565b90505b60018111156135ea577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358c5761358b614d70565b5b1a60f81b8282815181106135a3576135a2614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135e3906154c8565b905061354d565b506000841461362e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136259061553e565b60405180910390fd5b8091505092915050565b60008082905060005b84518110156136835761366e8286838151811061366157613660614d70565b5b6020026020010151613890565b9150808061367b906149c9565b915050613641565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f5906155aa565b60405180910390fd5b61370781612d64565b15613747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373e90615616565b60405180910390fd5b61375360008383613002565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546137a39190614757565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461386460008383613012565b5050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106138a8576138a382846138bb565b6138b3565b6138b283836138bb565b5b905092915050565b600082600052816020526040600020905092915050565b82805482825590600052602060002090601f016020900481019282156139675791602002820160005b8382111561393857835183826101000a81548160ff02191690831515021790555092602001926001016020816000010492830192600103026138fb565b80156139655782816101000a81549060ff0219169055600101602081600001049283019260010302613938565b505b50905061397491906139fe565b5090565b82805461398490614422565b90600052602060002090601f0160209004810192826139a657600085556139ed565b82601f106139bf57805160ff19168380011785556139ed565b828001600101855582156139ed579182015b828111156139ec5782518255916020019190600101906139d1565b5b5090506139fa91906139fe565b5090565b5b80821115613a175760008160009055506001016139ff565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a6481613a2f565b8114613a6f57600080fd5b50565b600081359050613a8181613a5b565b92915050565b600060208284031215613a9d57613a9c613a25565b5b6000613aab84828501613a72565b91505092915050565b60008115159050919050565b613ac981613ab4565b82525050565b6000602082019050613ae46000830184613ac0565b92915050565b6000819050919050565b613afd81613aea565b82525050565b6000602082019050613b186000830184613af4565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b58578082015181840152602081019050613b3d565b83811115613b67576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b8982613b1e565b613b938185613b29565b9350613ba3818560208601613b3a565b613bac81613b6d565b840191505092915050565b60006020820190508181036000830152613bd18184613b7e565b905092915050565b613be281613aea565b8114613bed57600080fd5b50565b600081359050613bff81613bd9565b92915050565b600060208284031215613c1b57613c1a613a25565b5b6000613c2984828501613bf0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c5d82613c32565b9050919050565b613c6d81613c52565b82525050565b6000602082019050613c886000830184613c64565b92915050565b613c9781613c52565b8114613ca257600080fd5b50565b600081359050613cb481613c8e565b92915050565b60008060408385031215613cd157613cd0613a25565b5b6000613cdf85828601613ca5565b9250506020613cf085828601613bf0565b9150509250929050565b600063ffffffff82169050919050565b613d1381613cfa565b8114613d1e57600080fd5b50565b600081359050613d3081613d0a565b92915050565b613d3f81613ab4565b8114613d4a57600080fd5b50565b600081359050613d5c81613d36565b92915050565b60008060408385031215613d7957613d78613a25565b5b6000613d8785828601613d21565b9250506020613d9885828601613d4d565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613dc757613dc6613da2565b5b8235905067ffffffffffffffff811115613de457613de3613da7565b5b602083019150836020820283011115613e0057613dff613dac565b5b9250929050565b600080600080600060808688031215613e2357613e22613a25565b5b6000613e3188828901613bf0565b9550506020613e4288828901613ca5565b945050604086013567ffffffffffffffff811115613e6357613e62613a2a565b5b613e6f88828901613db1565b93509350506060613e8288828901613bf0565b9150509295509295909350565b600061ffff82169050919050565b613ea681613e8f565b8114613eb157600080fd5b50565b600081359050613ec381613e9d565b92915050565b600060208284031215613edf57613ede613a25565b5b6000613eed84828501613eb4565b91505092915050565b600080600060608486031215613f0f57613f0e613a25565b5b6000613f1d86828701613ca5565b9350506020613f2e86828701613ca5565b9250506040613f3f86828701613bf0565b9150509250925092565b6000819050919050565b613f5c81613f49565b8114613f6757600080fd5b50565b600081359050613f7981613f53565b92915050565b600060208284031215613f9557613f94613a25565b5b6000613fa384828501613f6a565b91505092915050565b613fb581613f49565b82525050565b6000602082019050613fd06000830184613fac565b92915050565b600080600060608486031215613fef57613fee613a25565b5b6000613ffd86828701613ca5565b935050602061400e86828701613bf0565b925050604061401f86828701613bf0565b9150509250925092565b600080604083850312156140405761403f613a25565b5b600061404e85828601613f6a565b925050602061405f85828601613ca5565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140a682613b6d565b810181811067ffffffffffffffff821117156140c5576140c461406e565b5b80604052505050565b60006140d8613a1b565b90506140e4828261409d565b919050565b600067ffffffffffffffff8211156141045761410361406e565b5b61410d82613b6d565b9050602081019050919050565b82818337600083830152505050565b600061413c614137846140e9565b6140ce565b90508281526020810184848401111561415857614157614069565b5b61416384828561411a565b509392505050565b600082601f8301126141805761417f613da2565b5b8135614190848260208601614129565b91505092915050565b6000602082840312156141af576141ae613a25565b5b600082013567ffffffffffffffff8111156141cd576141cc613a2a565b5b6141d98482850161416b565b91505092915050565b6000602082840312156141f8576141f7613a25565b5b600061420684828501613ca5565b91505092915050565b6000806040838503121561422657614225613a25565b5b600061423485828601613ca5565b925050602061424585828601613d4d565b9150509250929050565b600067ffffffffffffffff82111561426a5761426961406e565b5b61427382613b6d565b9050602081019050919050565b600061429361428e8461424f565b6140ce565b9050828152602081018484840111156142af576142ae614069565b5b6142ba84828561411a565b509392505050565b600082601f8301126142d7576142d6613da2565b5b81356142e7848260208601614280565b91505092915050565b6000806000806080858703121561430a57614309613a25565b5b600061431887828801613ca5565b945050602061432987828801613ca5565b935050604061433a87828801613bf0565b925050606085013567ffffffffffffffff81111561435b5761435a613a2a565b5b614367878288016142c2565b91505092959194509250565b6000806040838503121561438a57614389613a25565b5b600061439885828601613bf0565b92505060206143a985828601613ca5565b9150509250929050565b600080604083850312156143ca576143c9613a25565b5b60006143d885828601613ca5565b92505060206143e985828601613ca5565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061443a57607f821691505b6020821081141561444e5761444d6143f3565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006144b0602183613b29565b91506144bb82614454565b604082019050919050565b600060208201905081810360008301526144df816144a3565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614542603e83613b29565b915061454d826144e6565b604082019050919050565b6000602082019050818103600083015261457181614535565b9050919050565b7f73616c654d61784c6f636b206973207365740000000000000000000000000000600082015250565b60006145ae601283613b29565b91506145b982614578565b602082019050919050565b600060208201905081810360008301526145dd816145a1565b9050919050565b7f746f206d697373696e6721000000000000000000000000000000000000000000600082015250565b600061461a600b83613b29565b9150614625826145e4565b602082019050919050565b600060208201905081810360008301526146498161460d565b9050919050565b7f4e6f20636f6e7472616374732100000000000000000000000000000000000000600082015250565b6000614686600d83613b29565b915061469182614650565b602082019050919050565b600060208201905081810360008301526146b581614679565b9050919050565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b60006146f2600f83613b29565b91506146fd826146bc565b602082019050919050565b60006020820190508181036000830152614721816146e5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061476282613aea565b915061476d83613aea565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147a2576147a1614728565b5b828201905092915050565b7f43757272656e7420537570706c79207265616368656400000000000000000000600082015250565b60006147e3601683613b29565b91506147ee826147ad565b602082019050919050565b60006020820190508181036000830152614812816147d6565b9050919050565b7f72656163686564207065722077616c6c6574206c696d69742100000000000000600082015250565b600061484f601983613b29565b915061485a82614819565b602082019050919050565b6000602082019050818103600083015261487e81614842565b9050919050565b7f696e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006148bb601483613b29565b91506148c682614885565b602082019050919050565b600060208201905081810360008301526148ea816148ae565b9050919050565b7f646973636f756e74546f6b656e4964206973206f7574206f662072616e676500600082015250565b6000614927601f83613b29565b9150614932826148f1565b602082019050919050565b600060208201905081810360008301526149568161491a565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614993600e83613b29565b915061499e8261495d565b602082019050919050565b600060208201905081810360008301526149c281614986565b9050919050565b60006149d482613aea565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a0757614a06614728565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614a6e602e83613b29565b9150614a7982614a12565b604082019050919050565b60006020820190508181036000830152614a9d81614a61565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b00602f83613b29565b9150614b0b82614aa4565b604082019050919050565b60006020820190508181036000830152614b2f81614af3565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614b6c601883613b29565b9150614b7782614b36565b602082019050919050565b60006020820190508181036000830152614b9b81614b5f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614bfe602983613b29565b9150614c0982614ba2565b604082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f5468697320616d6f756e74206973206d6f7265207468616e206d617820616c6c60008201527f6f77656400000000000000000000000000000000000000000000000000000000602082015250565b6000614c90602483613b29565b9150614c9b82614c34565b604082019050919050565b60006020820190508181036000830152614cbf81614c83565b9050919050565b600081905092915050565b6000614cdc82613b1e565b614ce68185614cc6565b9350614cf6818560208601613b3a565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614d38600583614cc6565b9150614d4382614d02565b600582019050919050565b6000614d5a8284614cd1565b9150614d6582614d2b565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f696e76616c696420736f757263652057616c6c65740000000000000000000000600082015250565b6000614dd5601583613b29565b9150614de082614d9f565b602082019050919050565b60006020820190508181036000830152614e0481614dc8565b9050919050565b6000614e1682613aea565b9150614e2183613aea565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e5a57614e59614728565b5b828202905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec1602683613b29565b9150614ecc82614e65565b604082019050919050565b60006020820190508181036000830152614ef081614eb4565b9050919050565b60008160601b9050919050565b6000614f0f82614ef7565b9050919050565b6000614f2182614f04565b9050919050565b614f39614f3482613c52565b614f16565b82525050565b6000614f4b8284614f28565b60148201915081905092915050565b6000614f6582613aea565b9150614f7083613aea565b925082821015614f8357614f82614728565b5b828203905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614fea602583613b29565b9150614ff582614f8e565b604082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061507c602483613b29565b915061508782615020565b604082019050919050565b600060208201905081810360008301526150ab8161506f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006150e8602083613b29565b91506150f3826150b2565b602082019050919050565b60006020820190508181036000830152615117816150db565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615154601983613b29565b915061515f8261511e565b602082019050919050565b6000602082019050818103600083015261518381615147565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006151e6603283613b29565b91506151f18261518a565b604082019050919050565b60006020820190508181036000830152615215816151d9565b9050919050565b60006152288285614cd1565b91506152348284614cd1565b91508190509392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615276601783614cc6565b915061528182615240565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006152c2601183614cc6565b91506152cd8261528c565b601182019050919050565b60006152e382615269565b91506152ef8285614cd1565b91506152fa826152b5565b91506153068284614cd1565b91508190509392505050565b60008151905061532181613c8e565b92915050565b60006020828403121561533d5761533c613a25565b5b600061534b84828501615312565b91505092915050565b600081519050919050565b600082825260208201905092915050565b600061537b82615354565b615385818561535f565b9350615395818560208601613b3a565b61539e81613b6d565b840191505092915050565b60006080820190506153be6000830187613c64565b6153cb6020830186613c64565b6153d86040830185613af4565b81810360608301526153ea8184615370565b905095945050505050565b60008151905061540481613a5b565b92915050565b6000602082840312156154205761541f613a25565b5b600061542e848285016153f5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061547182613aea565b915061547c83613aea565b92508261548c5761548b615437565b5b828204905092915050565b60006154a282613aea565b91506154ad83613aea565b9250826154bd576154bc615437565b5b828206905092915050565b60006154d382613aea565b915060008214156154e7576154e6614728565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615528602083613b29565b9150615533826154f2565b602082019050919050565b600060208201905081810360008301526155578161551b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615594602083613b29565b915061559f8261555e565b602082019050919050565b600060208201905081810360008301526155c381615587565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615600601c83613b29565b915061560b826155ca565b602082019050919050565b6000602082019050818103600083015261562f816155f3565b905091905056fea2646970667358221220135c38d25980716fdab61361fe4932f78a00e26719a2b3596dc29edc549803e264736f6c634300080c00334d65746142726577536f63696574792047656e65736973204365727469666963617465
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c806375b238fc11610175578063b88d4fde116100dc578063e6094f4c11610095578063ee9852341161006f578063ee98523414610a6c578063f2fde38b14610a97578063f3e3882114610ac0578063f7c8ce7c14610aeb576102ae565b8063e6094f4c146109e8578063e985e9c514610a04578063eb8d244414610a41576102ae565b8063b88d4fde146108c8578063c1a2c21f146108f1578063c87b56dd1461091a578063d547741f14610957578063d8eddd6414610980578063e02023a1146109bd576102ae565b8063a035b1fe1161012e578063a035b1fe146107c8578063a049dd40146107f3578063a217fddf1461081e578063a22cb46514610849578063a6c8e19614610872578063b22edfbc1461089d576102ae565b806375b238fc146106b85780637cb64759146106e35780638da5cb5b1461070c57806391b7f5ed1461073757806391d148541461076057806395d89b411461079d576102ae565b80632eb4a7ab1161021957806355f804b3116101d257806355f804b3146105a85780635e5116c9146105d15780636352211e146105fc5780636b6f4a9d1461063957806370a0823114610664578063715018a6146106a1576102ae565b80632eb4a7ab146104d45780632f2ff15d146104ff57806334918dfd1461052857806336568abe1461053f5780633ccfd60b1461056857806342842e0e1461057f576102ae565b8063104789c71161026b578063104789c7146103d557806315bf76941461040057806318f027ee1461041c57806323b872dd14610445578063248a9ca31461046e57806324d043e0146104ab576102ae565b806301ffc9a7146102b3578063047fc9aa146102f057806306fdde031461031b578063081812fc14610346578063095ea7b3146103835780630d304a5a146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613a87565b610b28565b6040516102e79190613acf565b60405180910390f35b3480156102fc57600080fd5b50610305610b3a565b6040516103129190613b03565b60405180910390f35b34801561032757600080fd5b50610330610b4b565b60405161033d9190613bb7565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190613c05565b610bdd565b60405161037a9190613c73565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613cba565b610c23565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190613d62565b610d3b565b005b3480156103e157600080fd5b506103ea610de7565b6040516103f79190613c73565b60405180910390f35b61041a60048036038101906104159190613e07565b610e0d565b005b34801561042857600080fd5b50610443600480360381019061043e9190613ec9565b6111c6565b005b34801561045157600080fd5b5061046c60048036038101906104679190613ef6565b6111ff565b005b34801561047a57600080fd5b5061049560048036038101906104909190613f7f565b61125f565b6040516104a29190613fbb565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd9190613fd6565b61127f565b005b3480156104e057600080fd5b506104e96113ac565b6040516104f69190613fbb565b60405180910390f35b34801561050b57600080fd5b5061052660048036038101906105219190614029565b6113b2565b005b34801561053457600080fd5b5061053d6113d3565b005b34801561054b57600080fd5b5061056660048036038101906105619190614029565b61142a565b005b34801561057457600080fd5b5061057d6114ad565b005b34801561058b57600080fd5b506105a660048036038101906105a19190613ef6565b611528565b005b3480156105b457600080fd5b506105cf60048036038101906105ca9190614199565b611548565b005b3480156105dd57600080fd5b506105e661155c565b6040516105f39190613b03565b60405180910390f35b34801561060857600080fd5b50610623600480360381019061061e9190613c05565b611562565b6040516106309190613c73565b60405180910390f35b34801561064557600080fd5b5061064e611614565b60405161065b9190613b03565b60405180910390f35b34801561067057600080fd5b5061068b600480360381019061068691906141e2565b61161a565b6040516106989190613b03565b60405180910390f35b3480156106ad57600080fd5b506106b66116d2565b005b3480156106c457600080fd5b506106cd6116e6565b6040516106da9190613fbb565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190613f7f565b61170a565b005b34801561071857600080fd5b5061072161173f565b60405161072e9190613c73565b60405180910390f35b34801561074357600080fd5b5061075e60048036038101906107599190613c05565b611769565b005b34801561076c57600080fd5b5061078760048036038101906107829190614029565b61179e565b6040516107949190613acf565b60405180910390f35b3480156107a957600080fd5b506107b2611809565b6040516107bf9190613bb7565b60405180910390f35b3480156107d457600080fd5b506107dd61189b565b6040516107ea9190613b03565b60405180910390f35b3480156107ff57600080fd5b506108086118a1565b6040516108159190613acf565b60405180910390f35b34801561082a57600080fd5b506108336118b4565b6040516108409190613fbb565b60405180910390f35b34801561085557600080fd5b50610870600480360381019061086b919061420f565b6118bb565b005b34801561087e57600080fd5b506108876118d1565b6040516108949190613b03565b60405180910390f35b3480156108a957600080fd5b506108b26118d7565b6040516108bf9190613b03565b60405180910390f35b3480156108d457600080fd5b506108ef60048036038101906108ea91906142f0565b6118dd565b005b3480156108fd57600080fd5b5061091860048036038101906109139190614373565b61193f565b005b34801561092657600080fd5b50610941600480360381019061093c9190613c05565b611a53565b60405161094e9190613bb7565b60405180910390f35b34801561096357600080fd5b5061097e60048036038101906109799190614029565b611aa9565b005b34801561098c57600080fd5b506109a760048036038101906109a29190613c05565b611aca565b6040516109b49190613c73565b60405180910390f35b3480156109c957600080fd5b506109d2611b00565b6040516109df9190613fbb565b60405180910390f35b610a0260048036038101906109fd9190614373565b611b24565b005b348015610a1057600080fd5b50610a2b6004803603810190610a2691906143b3565b611f86565b604051610a389190613acf565b60405180910390f35b348015610a4d57600080fd5b50610a5661201a565b604051610a639190613acf565b60405180910390f35b348015610a7857600080fd5b50610a8161202d565b604051610a8e9190613fbb565b60405180910390f35b348015610aa357600080fd5b50610abe6004803603810190610ab991906141e2565b612051565b005b348015610acc57600080fd5b50610ad56120d5565b604051610ae29190613b03565b60405180910390f35b348015610af757600080fd5b50610b126004803603810190610b0d9190613c05565b6120e6565b604051610b1f9190613acf565b60405180910390f35b6000610b338261211a565b9050919050565b6000610b466012612194565b905090565b606060008054610b5a90614422565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8690614422565b8015610bd35780601f10610ba857610100808354040283529160200191610bd3565b820191906000526020600020905b815481529060010190602001808311610bb657829003601f168201915b5050505050905090565b6000610be8826121a2565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c2e82611562565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c96906144c6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cbe6121ed565b73ffffffffffffffffffffffffffffffffffffffff161480610ced5750610cec81610ce76121ed565b611f86565b5b610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2390614558565b60405180910390fd5b610d3683836121f5565b505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def610d65816122ae565b60001515600f60159054906101000a900460ff16151514610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db2906145c4565b60405180910390fd5b81600f60156101000a81548160ff0219169083151502179055508263ffffffff16600a81905550505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490614630565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee29061469c565b60405180910390fd5b600f60149054906101000a900460ff16610f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3190614708565b60405180910390fd5b600a5485610f486012612194565b610f529190614757565b1115610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906147f9565b60405180910390fd5b600b5485610fa08661161a565b610faa9190614757565b1115610feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe290614865565b60405180910390fd5b6000801b600c54148061104d575061104c611005336122c2565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506122f2565b5b806110a757506110a661105f856122c2565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506122f2565b5b6110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd906148d1565b60405180910390fd5b60108054905081111561112e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111259061493d565b60405180910390fd5b6111388582612309565b611177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116e906149a9565b60405180910390fd5b60005b858110156111be576111a18560016111926012612194565b61119c9190614757565b612400565b6111ab601261241e565b80806111b6906149c9565b91505061117a565b505050505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def6111f0816122ae565b8161ffff16600b819055505050565b61121061120a6121ed565b82612434565b61124f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124690614a84565b60405180910390fd5b61125a8383836124c9565b505050565b600060076000838152602001908152602001600020600101549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756112a9816122ae565b8373ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461135e578267ffffffffffffffff8111156113185761131761406e565b5b6040519080825280602002602001820160405280156113465781602001602082028036833780820191505090505b506010908051906020019061135c9291906138d2565b505b83600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160098190555050505050565b600c5481565b6113bb8261125f565b6113c4816122ae565b6113ce8383612730565b505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def6113fd816122ae565b600f60149054906101000a900460ff1615600f60146101000a81548160ff02191690831515021790555050565b6114326121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149690614b16565b60405180910390fd5b6114a98282612811565b5050565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec6114d7816122ae565b6114df61173f565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611524573d6000803e3d6000fd5b5050565b611543838383604051806020016040528060008152506118dd565b505050565b6115506128f3565b61155981612971565b50565b600b5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561160b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160290614b82565b60405180910390fd5b80915050919050565b60095481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290614c14565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116da6128f3565b6116e4600061298b565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611734816122ae565b81600c819055505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def611793816122ae565b816008819055505050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606001805461181890614422565b80601f016020809104026020016040519081016040528092919081815260200182805461184490614422565b80156118915780601f1061186657610100808354040283529160200191611891565b820191906000526020600020905b81548152906001019060200180831161187457829003601f168201915b5050505050905090565b60085481565b600f60159054906101000a900460ff1681565b6000801b81565b6118cd6118c66121ed565b8383612a51565b5050565b600a5481565b6101f481565b6118ee6118e86121ed565b83612434565b61192d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192490614a84565b60405180910390fd5b61193984848484612bbe565b50505050565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def611969816122ae565b6101f4836119776011612194565b6119819190614757565b11156119c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b990614ca6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119fc57600080fd5b60005b83811015611a4d57611a26836001611a176012612194565b611a219190614757565b612400565b611a30601261241e565b611a3a601161241e565b8080611a45906149c9565b9150506119ff565b50505050565b60606000611a6083612c1a565b90506000815111611a805760405180602001604052806000815250611aa1565b80604051602001611a919190614d4e565b6040516020818303038152906040525b915050919050565b611ab28261125f565b611abb816122ae565b611ac58383612811565b505050565b600d8160028110611ada57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec81565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b90614630565b60405180910390fd5b600d600060028110611ba957611ba8614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611c655750600d600160028110611c1457611c13614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614deb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d099061469c565b60405180910390fd5b600f60149054906101000a900460ff16611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5890614708565b60405180910390fd5b81600854611d6f9190614e0b565b341015611db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da8906149a9565b60405180910390fd5b600a5482611dbf6012612194565b611dc99190614757565b1115611e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e01906147f9565b60405180910390fd5b600b5482611e178361161a565b611e219190614757565b111580611e8f5750600d600060028110611e3e57611e3d614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80611efb5750600d600160028110611eaa57611ea9614d70565b5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3190614865565b60405180910390fd5b60005b82811015611f8157611f64826001611f556012612194565b611f5f9190614757565b612400565b611f6e601261241e565b8080611f79906149c9565b915050611f3d565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600f60149054906101000a900460ff1681565b7fdeccffc5821b949817830292498e44ccb6097e4b74ff2f2db960723873324def81565b6120596128f3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c090614ed7565b60405180910390fd5b6120d28161298b565b50565b60006120e16011612194565b905090565b601081815481106120f657600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061218d575061218c82612c82565b5b9050919050565b600081600001549050919050565b6121ab81612d64565b6121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e190614b82565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661226883611562565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6122bf816122ba6121ed565b612dd0565b50565b6000816040516020016122d59190614f3f565b604051602081830303815290604052805190602001209050919050565b600061230182600c5485612e6d565b905092915050565b6000826008546123199190614e0b565b341061232857600190506123fa565b60008211801561233d57506010805490508211155b80156123495750600183145b801561237e575061237d33600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612e84565b5b156123f55760006009546008546123959190614f5a565b90508034106123f357600160106001856123af9190614f5a565b815481106123c0576123bf614d70565b5b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555060019150506123fa565b505b600090505b92915050565b61241a828260405180602001604052806000815250612fa7565b5050565b6001816000016000828254019250508190555050565b60008061244083611562565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061248257506124818185611f86565b5b806124c057508373ffffffffffffffffffffffffffffffffffffffff166124a884610bdd565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124e982611562565b73ffffffffffffffffffffffffffffffffffffffff161461253f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253690615000565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a690615092565b60405180910390fd5b6125ba838383613002565b6125c56000826121f5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126159190614f5a565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461266c9190614757565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461272b838383613012565b505050565b61273a828261179e565b61280d5760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506127b26121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61281b828261179e565b156128ef5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128946121ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6128fb6121ed565b73ffffffffffffffffffffffffffffffffffffffff1661291961173f565b73ffffffffffffffffffffffffffffffffffffffff161461296f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612966906150fe565b60405180910390fd5b565b8060139080519060200190612987929190613978565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab79061516a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612bb19190613acf565b60405180910390a3505050565b612bc98484846124c9565b612bd584848484613017565b612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b906151fc565b60405180910390fd5b50505050565b6060612c25826121a2565b6000612c2f61319f565b90506000815111612c4f5760405180602001604052806000815250612c7a565b80612c5984613231565b604051602001612c6a92919061521c565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d4d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d5d5750612d5c82613392565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612dda828261179e565b612e6957612dff8173ffffffffffffffffffffffffffffffffffffffff1660146133fc565b612e0d8360001c60206133fc565b604051602001612e1e9291906152d8565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e609190613bb7565b60405180910390fd5b5050565b600082612e7a8584613638565b1490509392505050565b600060108054905082111580612edd5750600015156010600184612ea89190614f5a565b81548110612eb957612eb8614d70565b5b90600052602060002090602091828204019190069054906101000a900460ff161515145b8015612f8d57508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401612f349190613b03565b602060405180830381865afa158015612f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f759190615327565b73ffffffffffffffffffffffffffffffffffffffff16145b15612f9b5760019050612fa0565b600090505b9392505050565b612fb1838361368e565b612fbe6000848484613017565b612ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff4906151fc565b60405180910390fd5b505050565b61300d838383613868565b505050565b505050565b60006130388473ffffffffffffffffffffffffffffffffffffffff1661386d565b15613192578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130616121ed565b8786866040518563ffffffff1660e01b815260040161308394939291906153a9565b6020604051808303816000875af19250505080156130bf57506040513d601f19601f820116820180604052508101906130bc919061540a565b60015b613142573d80600081146130ef576040519150601f19603f3d011682016040523d82523d6000602084013e6130f4565b606091505b5060008151141561313a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613131906151fc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613197565b600190505b949350505050565b6060601380546131ae90614422565b80601f01602080910402602001604051908101604052809291908181526020018280546131da90614422565b80156132275780601f106131fc57610100808354040283529160200191613227565b820191906000526020600020905b81548152906001019060200180831161320a57829003601f168201915b5050505050905090565b60606000821415613279576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061338d565b600082905060005b600082146132ab578080613294906149c9565b915050600a826132a49190615466565b9150613281565b60008167ffffffffffffffff8111156132c7576132c661406e565b5b6040519080825280601f01601f1916602001820160405280156132f95781602001600182028036833780820191505090505b5090505b60008514613386576001826133129190614f5a565b9150600a856133219190615497565b603061332d9190614757565b60f81b81838151811061334357613342614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561337f9190615466565b94506132fd565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000600283600261340f9190614e0b565b6134199190614757565b67ffffffffffffffff8111156134325761343161406e565b5b6040519080825280601f01601f1916602001820160405280156134645781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349c5761349b614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613500576134ff614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026135409190614e0b565b61354a9190614757565b90505b60018111156135ea577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358c5761358b614d70565b5b1a60f81b8282815181106135a3576135a2614d70565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135e3906154c8565b905061354d565b506000841461362e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136259061553e565b60405180910390fd5b8091505092915050565b60008082905060005b84518110156136835761366e8286838151811061366157613660614d70565b5b6020026020010151613890565b9150808061367b906149c9565b915050613641565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f5906155aa565b60405180910390fd5b61370781612d64565b15613747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373e90615616565b60405180910390fd5b61375360008383613002565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546137a39190614757565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461386460008383613012565b5050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106138a8576138a382846138bb565b6138b3565b6138b283836138bb565b5b905092915050565b600082600052816020526040600020905092915050565b82805482825590600052602060002090601f016020900481019282156139675791602002820160005b8382111561393857835183826101000a81548160ff02191690831515021790555092602001926001016020816000010492830192600103026138fb565b80156139655782816101000a81549060ff0219169055600101602081600001049283019260010302613938565b505b50905061397491906139fe565b5090565b82805461398490614422565b90600052602060002090601f0160209004810192826139a657600085556139ed565b82601f106139bf57805160ff19168380011785556139ed565b828001600101855582156139ed579182015b828111156139ec5782518255916020019190600101906139d1565b5b5090506139fa91906139fe565b5090565b5b80821115613a175760008160009055506001016139ff565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a6481613a2f565b8114613a6f57600080fd5b50565b600081359050613a8181613a5b565b92915050565b600060208284031215613a9d57613a9c613a25565b5b6000613aab84828501613a72565b91505092915050565b60008115159050919050565b613ac981613ab4565b82525050565b6000602082019050613ae46000830184613ac0565b92915050565b6000819050919050565b613afd81613aea565b82525050565b6000602082019050613b186000830184613af4565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b58578082015181840152602081019050613b3d565b83811115613b67576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b8982613b1e565b613b938185613b29565b9350613ba3818560208601613b3a565b613bac81613b6d565b840191505092915050565b60006020820190508181036000830152613bd18184613b7e565b905092915050565b613be281613aea565b8114613bed57600080fd5b50565b600081359050613bff81613bd9565b92915050565b600060208284031215613c1b57613c1a613a25565b5b6000613c2984828501613bf0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c5d82613c32565b9050919050565b613c6d81613c52565b82525050565b6000602082019050613c886000830184613c64565b92915050565b613c9781613c52565b8114613ca257600080fd5b50565b600081359050613cb481613c8e565b92915050565b60008060408385031215613cd157613cd0613a25565b5b6000613cdf85828601613ca5565b9250506020613cf085828601613bf0565b9150509250929050565b600063ffffffff82169050919050565b613d1381613cfa565b8114613d1e57600080fd5b50565b600081359050613d3081613d0a565b92915050565b613d3f81613ab4565b8114613d4a57600080fd5b50565b600081359050613d5c81613d36565b92915050565b60008060408385031215613d7957613d78613a25565b5b6000613d8785828601613d21565b9250506020613d9885828601613d4d565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613dc757613dc6613da2565b5b8235905067ffffffffffffffff811115613de457613de3613da7565b5b602083019150836020820283011115613e0057613dff613dac565b5b9250929050565b600080600080600060808688031215613e2357613e22613a25565b5b6000613e3188828901613bf0565b9550506020613e4288828901613ca5565b945050604086013567ffffffffffffffff811115613e6357613e62613a2a565b5b613e6f88828901613db1565b93509350506060613e8288828901613bf0565b9150509295509295909350565b600061ffff82169050919050565b613ea681613e8f565b8114613eb157600080fd5b50565b600081359050613ec381613e9d565b92915050565b600060208284031215613edf57613ede613a25565b5b6000613eed84828501613eb4565b91505092915050565b600080600060608486031215613f0f57613f0e613a25565b5b6000613f1d86828701613ca5565b9350506020613f2e86828701613ca5565b9250506040613f3f86828701613bf0565b9150509250925092565b6000819050919050565b613f5c81613f49565b8114613f6757600080fd5b50565b600081359050613f7981613f53565b92915050565b600060208284031215613f9557613f94613a25565b5b6000613fa384828501613f6a565b91505092915050565b613fb581613f49565b82525050565b6000602082019050613fd06000830184613fac565b92915050565b600080600060608486031215613fef57613fee613a25565b5b6000613ffd86828701613ca5565b935050602061400e86828701613bf0565b925050604061401f86828701613bf0565b9150509250925092565b600080604083850312156140405761403f613a25565b5b600061404e85828601613f6a565b925050602061405f85828601613ca5565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140a682613b6d565b810181811067ffffffffffffffff821117156140c5576140c461406e565b5b80604052505050565b60006140d8613a1b565b90506140e4828261409d565b919050565b600067ffffffffffffffff8211156141045761410361406e565b5b61410d82613b6d565b9050602081019050919050565b82818337600083830152505050565b600061413c614137846140e9565b6140ce565b90508281526020810184848401111561415857614157614069565b5b61416384828561411a565b509392505050565b600082601f8301126141805761417f613da2565b5b8135614190848260208601614129565b91505092915050565b6000602082840312156141af576141ae613a25565b5b600082013567ffffffffffffffff8111156141cd576141cc613a2a565b5b6141d98482850161416b565b91505092915050565b6000602082840312156141f8576141f7613a25565b5b600061420684828501613ca5565b91505092915050565b6000806040838503121561422657614225613a25565b5b600061423485828601613ca5565b925050602061424585828601613d4d565b9150509250929050565b600067ffffffffffffffff82111561426a5761426961406e565b5b61427382613b6d565b9050602081019050919050565b600061429361428e8461424f565b6140ce565b9050828152602081018484840111156142af576142ae614069565b5b6142ba84828561411a565b509392505050565b600082601f8301126142d7576142d6613da2565b5b81356142e7848260208601614280565b91505092915050565b6000806000806080858703121561430a57614309613a25565b5b600061431887828801613ca5565b945050602061432987828801613ca5565b935050604061433a87828801613bf0565b925050606085013567ffffffffffffffff81111561435b5761435a613a2a565b5b614367878288016142c2565b91505092959194509250565b6000806040838503121561438a57614389613a25565b5b600061439885828601613bf0565b92505060206143a985828601613ca5565b9150509250929050565b600080604083850312156143ca576143c9613a25565b5b60006143d885828601613ca5565b92505060206143e985828601613ca5565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061443a57607f821691505b6020821081141561444e5761444d6143f3565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006144b0602183613b29565b91506144bb82614454565b604082019050919050565b600060208201905081810360008301526144df816144a3565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614542603e83613b29565b915061454d826144e6565b604082019050919050565b6000602082019050818103600083015261457181614535565b9050919050565b7f73616c654d61784c6f636b206973207365740000000000000000000000000000600082015250565b60006145ae601283613b29565b91506145b982614578565b602082019050919050565b600060208201905081810360008301526145dd816145a1565b9050919050565b7f746f206d697373696e6721000000000000000000000000000000000000000000600082015250565b600061461a600b83613b29565b9150614625826145e4565b602082019050919050565b600060208201905081810360008301526146498161460d565b9050919050565b7f4e6f20636f6e7472616374732100000000000000000000000000000000000000600082015250565b6000614686600d83613b29565b915061469182614650565b602082019050919050565b600060208201905081810360008301526146b581614679565b9050919050565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b60006146f2600f83613b29565b91506146fd826146bc565b602082019050919050565b60006020820190508181036000830152614721816146e5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061476282613aea565b915061476d83613aea565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147a2576147a1614728565b5b828201905092915050565b7f43757272656e7420537570706c79207265616368656400000000000000000000600082015250565b60006147e3601683613b29565b91506147ee826147ad565b602082019050919050565b60006020820190508181036000830152614812816147d6565b9050919050565b7f72656163686564207065722077616c6c6574206c696d69742100000000000000600082015250565b600061484f601983613b29565b915061485a82614819565b602082019050919050565b6000602082019050818103600083015261487e81614842565b9050919050565b7f696e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006148bb601483613b29565b91506148c682614885565b602082019050919050565b600060208201905081810360008301526148ea816148ae565b9050919050565b7f646973636f756e74546f6b656e4964206973206f7574206f662072616e676500600082015250565b6000614927601f83613b29565b9150614932826148f1565b602082019050919050565b600060208201905081810360008301526149568161491a565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000614993600e83613b29565b915061499e8261495d565b602082019050919050565b600060208201905081810360008301526149c281614986565b9050919050565b60006149d482613aea565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a0757614a06614728565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614a6e602e83613b29565b9150614a7982614a12565b604082019050919050565b60006020820190508181036000830152614a9d81614a61565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b00602f83613b29565b9150614b0b82614aa4565b604082019050919050565b60006020820190508181036000830152614b2f81614af3565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614b6c601883613b29565b9150614b7782614b36565b602082019050919050565b60006020820190508181036000830152614b9b81614b5f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614bfe602983613b29565b9150614c0982614ba2565b604082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f5468697320616d6f756e74206973206d6f7265207468616e206d617820616c6c60008201527f6f77656400000000000000000000000000000000000000000000000000000000602082015250565b6000614c90602483613b29565b9150614c9b82614c34565b604082019050919050565b60006020820190508181036000830152614cbf81614c83565b9050919050565b600081905092915050565b6000614cdc82613b1e565b614ce68185614cc6565b9350614cf6818560208601613b3a565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614d38600583614cc6565b9150614d4382614d02565b600582019050919050565b6000614d5a8284614cd1565b9150614d6582614d2b565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f696e76616c696420736f757263652057616c6c65740000000000000000000000600082015250565b6000614dd5601583613b29565b9150614de082614d9f565b602082019050919050565b60006020820190508181036000830152614e0481614dc8565b9050919050565b6000614e1682613aea565b9150614e2183613aea565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e5a57614e59614728565b5b828202905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec1602683613b29565b9150614ecc82614e65565b604082019050919050565b60006020820190508181036000830152614ef081614eb4565b9050919050565b60008160601b9050919050565b6000614f0f82614ef7565b9050919050565b6000614f2182614f04565b9050919050565b614f39614f3482613c52565b614f16565b82525050565b6000614f4b8284614f28565b60148201915081905092915050565b6000614f6582613aea565b9150614f7083613aea565b925082821015614f8357614f82614728565b5b828203905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614fea602583613b29565b9150614ff582614f8e565b604082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061507c602483613b29565b915061508782615020565b604082019050919050565b600060208201905081810360008301526150ab8161506f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006150e8602083613b29565b91506150f3826150b2565b602082019050919050565b60006020820190508181036000830152615117816150db565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615154601983613b29565b915061515f8261511e565b602082019050919050565b6000602082019050818103600083015261518381615147565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006151e6603283613b29565b91506151f18261518a565b604082019050919050565b60006020820190508181036000830152615215816151d9565b9050919050565b60006152288285614cd1565b91506152348284614cd1565b91508190509392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615276601783614cc6565b915061528182615240565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006152c2601183614cc6565b91506152cd8261528c565b601182019050919050565b60006152e382615269565b91506152ef8285614cd1565b91506152fa826152b5565b91506153068284614cd1565b91508190509392505050565b60008151905061532181613c8e565b92915050565b60006020828403121561533d5761533c613a25565b5b600061534b84828501615312565b91505092915050565b600081519050919050565b600082825260208201905092915050565b600061537b82615354565b615385818561535f565b9350615395818560208601613b3a565b61539e81613b6d565b840191505092915050565b60006080820190506153be6000830187613c64565b6153cb6020830186613c64565b6153d86040830185613af4565b81810360608301526153ea8184615370565b905095945050505050565b60008151905061540481613a5b565b92915050565b6000602082840312156154205761541f613a25565b5b600061542e848285016153f5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061547182613aea565b915061547c83613aea565b92508261548c5761548b615437565b5b828204905092915050565b60006154a282613aea565b91506154ad83613aea565b9250826154bd576154bc615437565b5b828206905092915050565b60006154d382613aea565b915060008214156154e7576154e6614728565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615528602083613b29565b9150615533826154f2565b602082019050919050565b600060208201905081810360008301526155578161551b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615594602083613b29565b915061559f8261555e565b602082019050919050565b600060208201905081810360008301526155c381615587565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615600601c83613b29565b915061560b826155ca565b602082019050919050565b6000602082019050818103600083015261562f816155f3565b905091905056fea2646970667358221220135c38d25980716fdab61361fe4932f78a00e26719a2b3596dc29edc549803e264736f6c634300080c0033
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.