ERC-721
NFT
Overview
Max Total Supply
0 MXGT
Holders
471
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MomentX_Genesis_Tablet
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; import "@openzeppelin/[email protected]/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/[email protected]/access/AccessControl.sol"; import "@openzeppelin/[email protected]/utils/Counters.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract MomentX_Genesis_Tablet is ERC721, ERC721URIStorage, AccessControl, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; using ECDSA for bytes32; // Role Setting bytes32 public constant EVENT_MANAGER_ROLE = keccak256("EVENT_MANAGER_ROLE"); // NFT ID counter Counters.Counter private _tokenIdCounter; string constant public baseURI = "https://meta.momentx.app/genesis/tables/"; // presale & openSale control bool public isPreSale = false; bool public isOpenSale = false; address public constant VAULT = 0x886728d9eFAB7d2E94f6757e95a7Ad459ab8b0aE; address private _marketplace_manager; address private _whitelist_admin; mapping(address => bool) private whiteList_minted; // true = minted, false not minted // NFT setting uint256 private keyPrice = 0.01 ether; uint256 private constant MAX_KEY = 1000; //GameFI setting uint256 private constant GENESIS = 0; uint256 private constant UR = 0; uint256 public constant collection_era = GENESIS; uint256 public constant collection_rarity = UR; constructor() ERC721("MomentX Genesis Tablet", "MXGT") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(EVENT_MANAGER_ROLE, msg.sender); _marketplace_manager = msg.sender; _whitelist_admin = 0xEE44aC234b5de7d369a398DB6f5C5A4856f0524e; _mintKeys(); } modifier onlyValidAccess(bytes memory signature){ require (isValidAccessMessage(msg.sender, signature)); _; } function _baseURI() internal pure override returns (string memory) { return ""; } function owner() public view returns(address){ //for opensea return _marketplace_manager; } function transferMarketOwner(address newOwner) public nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { require(newOwner != address(0), "new owner is the zero address"); _marketplace_manager = newOwner; } function setWhiteListAdmin(address newAdmin) public nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { require(newAdmin != address(0), "new whitelist admin is the zero address"); _whitelist_admin = newAdmin; } function mintKeys(bytes memory signature) public nonReentrant payable{ require(_tokenIdCounter.current() < MAX_KEY, "already sold out"); require(isPreSale || isOpenSale, "Sale not open"); require(msg.value >= keyPrice, "insufficient ether"); if(isPreSale && !isOpenSale){ require(isValidAccessMessage(msg.sender, signature), "your address is not in whitelist"); require(!whiteList_minted[msg.sender], "you can only mint once during presale"); whiteList_minted[msg.sender] = true; _mintKeys(); _withdraw(); emit isMintSuccess(true, _tokenIdCounter.current()-1); } else if (isOpenSale){ _mintKeys(); _withdraw(); emit isMintSuccess(true, _tokenIdCounter.current()-1); } else { emit isMintSuccess(false, 0); } } function mint5Keys() public nonReentrant payable{ require(_tokenIdCounter.current() < MAX_KEY-4, "already sold out"); require(isOpenSale, "Sale not open"); require(msg.value >= keyPrice*5, "insufficient ether"); _mintKeys(); _mintKeys(); _mintKeys(); _mintKeys(); _mintKeys(); _withdraw(); emit isMintSuccess(true, _tokenIdCounter.current()-1); } function _mintKeys() internal { _safeMint(msg.sender, _tokenIdCounter.current()); _setTokenURI(_tokenIdCounter.current(),string(abi.encodePacked(baseURI, _tokenIdCounter.current().toString(), ".json"))); _tokenIdCounter.increment(); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal override { super._setTokenURI(tokenId, _tokenURI); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function _exists(uint256 tokenId) internal view override returns (bool) { return super._exists(tokenId); } // setting for sale function saleControl(bool b_pre, bool b_open) public onlyRole(EVENT_MANAGER_ROLE){ isPreSale = b_pre; isOpenSale = b_open; } function _withdraw() internal { (bool success, ) = payable(address(VAULT)).call{value: address(this).balance}(""); require(success); } function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) { (bool success, ) = payable(address(VAULT)).call{value: address(this).balance}(""); require(success); } function isValidAccessMessage(address _add, bytes memory signature) view internal returns(bool){ address recovered_address = keccak256(abi.encodePacked(address(this),_add)).toEthSignedMessageHash().recover(signature); return (_whitelist_admin == recovered_address); } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } event totalWhiteListAdded(uint amount); event isMintSuccess(bool is_success, uint tokenId); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT 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 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, _msgSender()); _; } /** * @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 override returns (bool) { return _roles[role].members[account]; } /** * @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 { 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 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. */ 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. */ 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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ 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. * * [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}. * ==== */ 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); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"is_success","type":"bool"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMintSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"totalWhiteListAdded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EVENT_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collection_era","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collection_rarity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"isOpenSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint5Keys","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintKeys","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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bool","name":"b_pre","type":"bool"},{"internalType":"bool","name":"b_open","type":"bool"}],"name":"saleControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setWhiteListAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"transferMarketOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff0219169083151502179055506000600a60016101000a81548160ff021916908315150217905550662386f26fc10000600d553480156200005257600080fd5b506040518060400160405280601681526020017f4d6f6d656e74582047656e65736973205461626c6574000000000000000000008152506040518060400160405280600481526020017f4d584754000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000d792919062000b67565b508060019080519060200190620000f092919062000b67565b5050506001600881905550620001106000801b33620001ee60201b60201c565b620001427fa961ef34a96635180dfffd0ae574060d6c6af619ce89175a103711bf5ce8270833620001ee60201b60201c565b33600a60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073ee44ac234b5de7d369a398db6f5c5a4856f0524e600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001e86200020460201b60201c565b62001371565b620002008282620002d460201b60201c565b5050565b6200022c33620002206009620003c660201b620019f41760201c565b620003d460201b60201c565b620002bb620002476009620003c660201b620019f41760201c565b60405180606001604052806028815260200162006573602891396200028d6200027c6009620003c660201b620019f41760201c565b620003fa60201b62001a021760201c565b604051602001620002a092919062000dbd565b6040516020818303038152906040526200057460201b60201c565b620002d260096200058f60201b62001b631760201c565b565b620002e68282620005a560201b60201c565b620003c25760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003676200061060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600081600001549050919050565b620003f68282604051806020016040528060008152506200061860201b60201c565b5050565b6060600082141562000444576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506200056f565b600082905060005b600082146200047c5780806200046290620010b7565b915050600a8262000474919062000f6e565b91506200044c565b60008167ffffffffffffffff8111156200049b576200049a620011f9565b5b6040519080825280601f01601f191660200182016040528015620004ce5781602001600182028036833780820191505090505b5090505b600085146200056857600182620004ea919062000fa6565b9150600a85620004fb919062001105565b603062000509919062000f11565b60f81b818381518110620005225762000521620011ca565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8562000560919062000f6e565b9450620004d2565b8093505050505b919050565b6200058b82826200068660201b62001b791760201c565b5050565b6001816000016000828254019250508190555050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6200062a83836200070760201b60201c565b6200063f6000848484620008ed60201b60201c565b62000681576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006789062000e46565b60405180910390fd5b505050565b620006978262000aa760201b60201c565b620006d9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006d09062000e8a565b60405180910390fd5b806006600084815260200190815260200160002090805190602001906200070292919062000b67565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200077a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007719062000eac565b60405180910390fd5b6200078b8162000aa760201b60201c565b15620007ce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007c59062000e68565b60405180910390fd5b620007e26000838362000ac660201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000834919062000f11565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006200091b8473ffffffffffffffffffffffffffffffffffffffff1662000ae360201b62001bed1760201c565b1562000a9a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200094d6200061060201b60201c565b8786866040518563ffffffff1660e01b815260040162000971949392919062000df2565b602060405180830381600087803b1580156200098c57600080fd5b505af1925050508015620009c057506040513d601f19601f82011682018060405250810190620009bd919062000c2e565b60015b62000a49573d8060008114620009f3576040519150601f19603f3d011682016040523d82523d6000602084013e620009f8565b606091505b5060008151141562000a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a389062000e46565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000a9f565b600190505b949350505050565b600062000abf8262000af660201b62001c001760201c565b9050919050565b62000ade83838362000b6260201b62001c6c1760201c565b505050565b600080823b905060008111915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b82805462000b759062001081565b90600052602060002090601f01602090048101928262000b99576000855562000be5565b82601f1062000bb457805160ff191683800117855562000be5565b8280016001018555821562000be5579182015b8281111562000be457825182559160200191906001019062000bc7565b5b50905062000bf4919062000bf8565b5090565b5b8082111562000c1357600081600090555060010162000bf9565b5090565b60008151905062000c288162001357565b92915050565b60006020828403121562000c475762000c4662001228565b5b600062000c578482850162000c17565b91505092915050565b62000c6b8162000fe1565b82525050565b600062000c7e8262000ece565b62000c8a818562000ee4565b935062000c9c8185602086016200104b565b62000ca7816200122d565b840191505092915050565b600062000cbf8262000ed9565b62000ccb818562000f06565b935062000cdd8185602086016200104b565b80840191505092915050565b600062000cf860328362000ef5565b915062000d05826200123e565b604082019050919050565b600062000d1f601c8362000ef5565b915062000d2c826200128d565b602082019050919050565b600062000d46602e8362000ef5565b915062000d5382620012b6565b604082019050919050565b600062000d6d60208362000ef5565b915062000d7a8262001305565b602082019050919050565b600062000d9460058362000f06565b915062000da1826200132e565b600582019050919050565b62000db78162001041565b82525050565b600062000dcb828562000cb2565b915062000dd9828462000cb2565b915062000de68262000d85565b91508190509392505050565b600060808201905062000e09600083018762000c60565b62000e18602083018662000c60565b62000e27604083018562000dac565b818103606083015262000e3b818462000c71565b905095945050505050565b6000602082019050818103600083015262000e618162000ce9565b9050919050565b6000602082019050818103600083015262000e838162000d10565b9050919050565b6000602082019050818103600083015262000ea58162000d37565b9050919050565b6000602082019050818103600083015262000ec78162000d5e565b9050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600062000f1e8262001041565b915062000f2b8362001041565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000f635762000f626200113d565b5b828201905092915050565b600062000f7b8262001041565b915062000f888362001041565b92508262000f9b5762000f9a6200116c565b5b828204905092915050565b600062000fb38262001041565b915062000fc08362001041565b92508282101562000fd65762000fd56200113d565b5b828203905092915050565b600062000fee8262001021565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200106b5780820151818401526020810190506200104e565b838111156200107b576000848401525b50505050565b600060028204905060018216806200109a57607f821691505b60208210811415620010b157620010b06200119b565b5b50919050565b6000620010c48262001041565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620010fa57620010f96200113d565b5b600182019050919050565b6000620011128262001041565b91506200111f8362001041565b9250826200113257620011316200116c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b620013628162000ff5565b81146200136e57600080fd5b50565b6151f280620013816000396000f3fe6080604052600436106101ee5760003560e01c80636352211e1161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f146106f0578063df0ffd7214610719578063e985e9c514610723578063e9f615ed14610760578063fb5e13a514610789576101ee565b8063a22cb46514610645578063b88d4fde1461066e578063c5a0da7a14610697578063c87b56dd146106b3576101ee565b80638da5cb5b116100dc5780638da5cb5b1461058757806391d14854146105b257806395d89b41146105ef578063a217fddf1461061a576101ee565b80636352211e146104b7578063676c8c07146104f45780636c0360eb1461051f57806370a082311461054a576101ee565b806336568abe116101855780634ced4734116101545780634ced47341461040d578063591972ac1461043857806359486873146104635780635c7a54181461048e576101ee565b806336568abe146103795780633ccfd60b146103a2578063411557d1146103b957806342842e0e146103e4576101ee565b806323b872dd116101c157806323b872dd146102c1578063248a9ca3146102ea5780632f2ff15d1461032757806331dd6a6c14610350576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a600480360381019061021591906136fe565b6107b4565b6040516102279190613f1d565b60405180910390f35b34801561023c57600080fd5b506102456107c6565b6040516102529190613fea565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d91906137a1565b610858565b60405161028f9190613eb6565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190613611565b6108dd565b005b3480156102cd57600080fd5b506102e860048036038101906102e391906134fb565b6109f5565b005b3480156102f657600080fd5b50610311600480360381019061030c9190613691565b610a55565b60405161031e9190613f8a565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906136be565b610a75565b005b34801561035c57600080fd5b506103776004803603810190610372919061348e565b610a9e565b005b34801561038557600080fd5b506103a0600480360381019061039b91906136be565b610bbe565b005b3480156103ae57600080fd5b506103b7610c41565b005b3480156103c557600080fd5b506103ce610ce4565b6040516103db9190613eb6565b60405180910390f35b3480156103f057600080fd5b5061040b600480360381019061040691906134fb565b610cfc565b005b34801561041957600080fd5b50610422610d1c565b60405161042f9190613f1d565b60405180910390f35b34801561044457600080fd5b5061044d610d2f565b60405161045a91906143cc565b60405180910390f35b34801561046f57600080fd5b50610478610d34565b6040516104859190613f8a565b60405180910390f35b34801561049a57600080fd5b506104b560048036038101906104b09190613651565b610d58565b005b3480156104c357600080fd5b506104de60048036038101906104d991906137a1565b610dc3565b6040516104eb9190613eb6565b60405180910390f35b34801561050057600080fd5b50610509610e75565b6040516105169190613f1d565b60405180910390f35b34801561052b57600080fd5b50610534610e88565b6040516105419190613fea565b60405180910390f35b34801561055657600080fd5b50610571600480360381019061056c919061348e565b610ea4565b60405161057e91906143cc565b60405180910390f35b34801561059357600080fd5b5061059c610f5c565b6040516105a99190613eb6565b60405180910390f35b3480156105be57600080fd5b506105d960048036038101906105d491906136be565b610f86565b6040516105e69190613f1d565b60405180910390f35b3480156105fb57600080fd5b50610604610ff1565b6040516106119190613fea565b60405180910390f35b34801561062657600080fd5b5061062f611083565b60405161063c9190613f8a565b60405180910390f35b34801561065157600080fd5b5061066c600480360381019061066791906135d1565b61108a565b005b34801561067a57600080fd5b506106956004803603810190610690919061354e565b61120b565b005b6106b160048036038101906106ac9190613758565b61126d565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906137a1565b611631565b6040516106e79190613fea565b60405180910390f35b3480156106fc57600080fd5b50610717600480360381019061071291906136be565b611643565b005b61072161166c565b005b34801561072f57600080fd5b5061074a600480360381019061074591906134bb565b61183b565b6040516107579190613f1d565b60405180910390f35b34801561076c57600080fd5b506107876004803603810190610782919061348e565b6118cf565b005b34801561079557600080fd5b5061079e6119ef565b6040516107ab91906143cc565b60405180910390f35b60006107bf82611c71565b9050919050565b6060600080546107d5906146a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906146a9565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b600061086382611ceb565b6108a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610899906142ec565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108e882610dc3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610959576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109509061434c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610978611cfd565b73ffffffffffffffffffffffffffffffffffffffff1614806109a757506109a6816109a1611cfd565b61183b565b5b6109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd906141cc565b60405180910390fd5b6109f08383611d05565b505050565b610a06610a00611cfd565b82611dbe565b610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c9061436c565b60405180910390fd5b610a50838383611e9c565b505050565b600060076000838152602001908152602001600020600101549050919050565b610a7e82610a55565b610a8f81610a8a611cfd565b6120f8565b610a998383612195565b505050565b60026008541415610ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adb9061438c565b60405180910390fd5b60026008819055506000801b610b0181610afc611cfd565b6120f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b68906140ac565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600160088190555050565b610bc6611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2a906143ac565b60405180910390fd5b610c3d8282612276565b5050565b6000801b610c5681610c51611cfd565b6120f8565b600073886728d9efab7d2e94f6757e95a7ad459ab8b0ae73ffffffffffffffffffffffffffffffffffffffff1647604051610c9090613e67565b60006040518083038185875af1925050503d8060008114610ccd576040519150601f19603f3d011682016040523d82523d6000602084013e610cd2565b606091505b5050905080610ce057600080fd5b5050565b73886728d9efab7d2e94f6757e95a7ad459ab8b0ae81565b610d178383836040518060200160405280600081525061120b565b505050565b600a60009054906101000a900460ff1681565b600081565b7fa961ef34a96635180dfffd0ae574060d6c6af619ce89175a103711bf5ce8270881565b7fa961ef34a96635180dfffd0ae574060d6c6af619ce89175a103711bf5ce82708610d8a81610d85611cfd565b6120f8565b82600a60006101000a81548160ff02191690831515021790555081600a60016101000a81548160ff021916908315150217905550505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e639061420c565b60405180910390fd5b80915050919050565b600a60019054906101000a900460ff1681565b6040518060600160405280602881526020016151956028913981565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c906141ec565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600a60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611000906146a9565b80601f016020809104026020016040519081016040528092919081815260200182805461102c906146a9565b80156110795780601f1061104e57610100808354040283529160200191611079565b820191906000526020600020905b81548152906001019060200180831161105c57829003601f168201915b5050505050905090565b6000801b81565b611092611cfd565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f79061410c565b60405180910390fd5b806005600061110d611cfd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111ba611cfd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111ff9190613f1d565b60405180910390a35050565b61121c611216611cfd565b83611dbe565b61125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112529061436c565b60405180910390fd5b61126784848484612358565b50505050565b600260085414156112b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112aa9061438c565b60405180910390fd5b60026008819055506103e86112c860096119f4565b10611308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ff9061418c565b60405180910390fd5b600a60009054906101000a900460ff168061132f5750600a60019054906101000a900460ff165b61136e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113659061416c565b60405180910390fd5b600d543410156113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906141ac565b60405180910390fd5b600a60009054906101000a900460ff1680156113dc5750600a60019054906101000a900460ff16155b15611572576113eb33826123b4565b61142a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611421906142ac565b60405180910390fd5b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae9061426c565b60405180910390fd5b6001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611517612456565b61151f6124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860018061154d60096119f4565b611557919061456c565b604051611565929190613f61565b60405180910390a1611626565b600a60019054906101000a900460ff16156115ea5761158f612456565b6115976124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf786486001806115c560096119f4565b6115cf919061456c565b6040516115dd929190613f61565b60405180910390a1611625565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860008060405161161c929190613f38565b60405180910390a15b5b600160088190555050565b606061163c8261255f565b9050919050565b61164c82610a55565b61165d81611658611cfd565b6120f8565b6116678383612276565b505050565b600260085414156116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a99061438c565b60405180910390fd5b600260088190555060046103e86116c9919061456c565b6116d360096119f4565b10611713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170a9061418c565b60405180910390fd5b600a60019054906101000a900460ff16611762576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117599061416c565b60405180910390fd5b6005600d546117719190614512565b3410156117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906141ac565b60405180910390fd5b6117bb612456565b6117c3612456565b6117cb612456565b6117d3612456565b6117db612456565b6117e36124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860018061181160096119f4565b61181b919061456c565b604051611829929190613f61565b60405180910390a16001600881905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026008541415611915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190c9061438c565b60405180910390fd5b60026008819055506000801b6119328161192d611cfd565b6120f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611999906140cc565b60405180910390fd5b81600a60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600160088190555050565b600081565b600081600001549050919050565b60606000821415611a4a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b5e565b600082905060005b60008214611a7c578080611a659061470c565b915050600a82611a7591906144e1565b9150611a52565b60008167ffffffffffffffff811115611a9857611a9761489f565b5b6040519080825280601f01601f191660200182016040528015611aca5781602001600182028036833780820191505090505b5090505b60008514611b5757600182611ae3919061456c565b9150600a85611af29190614783565b6030611afe919061448b565b60f81b818381518110611b1457611b13614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b5091906144e1565b9450611ace565b8093505050505b919050565b6001816000016000828254019250508190555050565b611b8282611ceb565b611bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb89061422c565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190611be89291906132fd565b505050565b600080823b905060008111915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ce45750611ce3826126b1565b5b9050919050565b6000611cf682611c00565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d7883610dc3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611dc982611ceb565b611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff9061414c565b60405180910390fd5b6000611e1383610dc3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e8257508373ffffffffffffffffffffffffffffffffffffffff16611e6a84610858565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e935750611e92818561183b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ebc82610dc3565b73ffffffffffffffffffffffffffffffffffffffff1614611f12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f099061430c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f79906140ec565b60405180910390fd5b611f8d838383612793565b611f98600082611d05565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe8919061456c565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461203f919061448b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6121028282610f86565b612191576121278173ffffffffffffffffffffffffffffffffffffffff1660146127a3565b6121358360001c60206127a3565b604051602001612146929190613e7c565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121889190613fea565b60405180910390fd5b5050565b61219f8282610f86565b6122725760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612217611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6122808282610f86565b156123545760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122f9611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612363848484611e9c565b61236f848484846129df565b6123ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a59061406c565b60405180910390fd5b50505050565b6000806123fa836123ec30876040516020016123d1929190613dc2565b60405160208183030381529060405280519060200120612b76565b612ba690919063ffffffff16565b90508073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6124693361246460096119f4565b612bcd565b6124c661247660096119f4565b604051806060016040528060288152602001615195602891396124a161249c60096119f4565b611a02565b6040516020016124b2929190613e12565b604051602081830303815290604052612beb565b6124d06009611b63565b565b600073886728d9efab7d2e94f6757e95a7ad459ab8b0ae73ffffffffffffffffffffffffffffffffffffffff164760405161250c90613e67565b60006040518083038185875af1925050503d8060008114612549576040519150601f19603f3d011682016040523d82523d6000602084013e61254e565b606091505b505090508061255c57600080fd5b50565b606061256a82611ceb565b6125a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a0906142cc565b60405180910390fd5b60006006600084815260200190815260200160002080546125c9906146a9565b80601f01602080910402602001604051908101604052809291908181526020018280546125f5906146a9565b80156126425780601f1061261757610100808354040283529160200191612642565b820191906000526020600020905b81548152906001019060200180831161262557829003601f168201915b505050505090506000612653612bf9565b90506000815114156126695781925050506126ac565b60008251111561269e578082604051602001612686929190613dee565b604051602081830303815290604052925050506126ac565b6126a784612c10565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061278c575061278b82612cb7565b5b9050919050565b61279e838383611c6c565b505050565b6060600060028360026127b69190614512565b6127c0919061448b565b67ffffffffffffffff8111156127d9576127d861489f565b5b6040519080825280601f01601f19166020018201604052801561280b5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061284357612842614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128a7576128a6614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128e79190614512565b6128f1919061448b565b90505b6001811115612991577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061293357612932614870565b5b1a60f81b82828151811061294a57612949614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061298a9061467f565b90506128f4565b50600084146129d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cc9061402c565b60405180910390fd5b8091505092915050565b6000612a008473ffffffffffffffffffffffffffffffffffffffff16611bed565b15612b69578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a29611cfd565b8786866040518563ffffffff1660e01b8152600401612a4b9493929190613ed1565b602060405180830381600087803b158015612a6557600080fd5b505af1925050508015612a9657506040513d601f19601f82011682018060405250810190612a93919061372b565b60015b612b19573d8060008114612ac6576040519150601f19603f3d011682016040523d82523d6000602084013e612acb565b606091505b50600081511415612b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b089061406c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b6e565b600190505b949350505050565b600081604051602001612b899190613e41565b604051602081830303815290604052805190602001209050919050565b6000806000612bb58585612d21565b91509150612bc281612da4565b819250505092915050565b612be7828260405180602001604052806000815250612f79565b5050565b612bf58282611b79565b5050565b606060405180602001604052806000815250905090565b6060612c1b82611ceb565b612c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c519061432c565b60405180910390fd5b6000612c64612bf9565b90506000815111612c845760405180602001604052806000815250612caf565b80612c8e84611a02565b604051602001612c9f929190613dee565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080604183511415612d635760008060006020860151925060408601519150606086015160001a9050612d5787828585612fd4565b94509450505050612d9d565b604083511415612d94576000806020850151915060408501519050612d898683836130e1565b935093505050612d9d565b60006002915091505b9250929050565b60006004811115612db857612db7614812565b5b816004811115612dcb57612dca614812565b5b1415612dd657612f76565b60016004811115612dea57612de9614812565b5b816004811115612dfd57612dfc614812565b5b1415612e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e359061400c565b60405180910390fd5b60026004811115612e5257612e51614812565b5b816004811115612e6557612e64614812565b5b1415612ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9d9061404c565b60405180910390fd5b60036004811115612eba57612eb9614812565b5b816004811115612ecd57612ecc614812565b5b1415612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f059061412c565b60405180910390fd5b600480811115612f2157612f20614812565b5b816004811115612f3457612f33614812565b5b1415612f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6c9061424c565b60405180910390fd5b5b50565b612f83838361312f565b612f9060008484846129df565b612fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc69061406c565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561300f5760006003915091506130d8565b601b8560ff16141580156130275750601c8560ff1614155b156130395760006004915091506130d8565b60006001878787876040516000815260200160405260405161305e9493929190613fa5565b6020604051602081039080840390855afa158015613080573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156130cf576000600192509250506130d8565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c01905061312187828885612fd4565b935093505050935093915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561319f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131969061428c565b60405180910390fd5b6131a881611ceb565b156131e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131df9061408c565b60405180910390fd5b6131f460008383612793565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613244919061448b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613309906146a9565b90600052602060002090601f01602090048101928261332b5760008555613372565b82601f1061334457805160ff1916838001178555613372565b82800160010185558215613372579182015b82811115613371578251825591602001919060010190613356565b5b50905061337f9190613383565b5090565b5b8082111561339c576000816000905550600101613384565b5090565b60006133b36133ae8461440c565b6143e7565b9050828152602081018484840111156133cf576133ce6148d3565b5b6133da84828561463d565b509392505050565b6000813590506133f181615121565b92915050565b60008135905061340681615138565b92915050565b60008135905061341b8161514f565b92915050565b60008135905061343081615166565b92915050565b60008151905061344581615166565b92915050565b600082601f8301126134605761345f6148ce565b5b81356134708482602086016133a0565b91505092915050565b6000813590506134888161517d565b92915050565b6000602082840312156134a4576134a36148dd565b5b60006134b2848285016133e2565b91505092915050565b600080604083850312156134d2576134d16148dd565b5b60006134e0858286016133e2565b92505060206134f1858286016133e2565b9150509250929050565b600080600060608486031215613514576135136148dd565b5b6000613522868287016133e2565b9350506020613533868287016133e2565b925050604061354486828701613479565b9150509250925092565b60008060008060808587031215613568576135676148dd565b5b6000613576878288016133e2565b9450506020613587878288016133e2565b935050604061359887828801613479565b925050606085013567ffffffffffffffff8111156135b9576135b86148d8565b5b6135c58782880161344b565b91505092959194509250565b600080604083850312156135e8576135e76148dd565b5b60006135f6858286016133e2565b9250506020613607858286016133f7565b9150509250929050565b60008060408385031215613628576136276148dd565b5b6000613636858286016133e2565b925050602061364785828601613479565b9150509250929050565b60008060408385031215613668576136676148dd565b5b6000613676858286016133f7565b9250506020613687858286016133f7565b9150509250929050565b6000602082840312156136a7576136a66148dd565b5b60006136b58482850161340c565b91505092915050565b600080604083850312156136d5576136d46148dd565b5b60006136e38582860161340c565b92505060206136f4858286016133e2565b9150509250929050565b600060208284031215613714576137136148dd565b5b600061372284828501613421565b91505092915050565b600060208284031215613741576137406148dd565b5b600061374f84828501613436565b91505092915050565b60006020828403121561376e5761376d6148dd565b5b600082013567ffffffffffffffff81111561378c5761378b6148d8565b5b6137988482850161344b565b91505092915050565b6000602082840312156137b7576137b66148dd565b5b60006137c584828501613479565b91505092915050565b6137d7816145a0565b82525050565b6137ee6137e9826145a0565b614755565b82525050565b6137fd816145b2565b82525050565b61380c816145be565b82525050565b61382361381e826145be565b614767565b82525050565b60006138348261443d565b61383e8185614453565b935061384e81856020860161464c565b613857816148e2565b840191505092915050565b61386b8161462b565b82525050565b600061387c82614448565b613886818561446f565b935061389681856020860161464c565b61389f816148e2565b840191505092915050565b60006138b582614448565b6138bf8185614480565b93506138cf81856020860161464c565b80840191505092915050565b60006138e860188361446f565b91506138f382614900565b602082019050919050565b600061390b60208361446f565b915061391682614929565b602082019050919050565b600061392e601f8361446f565b915061393982614952565b602082019050919050565b6000613951601c83614480565b915061395c8261497b565b601c82019050919050565b600061397460328361446f565b915061397f826149a4565b604082019050919050565b6000613997601c8361446f565b91506139a2826149f3565b602082019050919050565b60006139ba60278361446f565b91506139c582614a1c565b604082019050919050565b60006139dd601d8361446f565b91506139e882614a6b565b602082019050919050565b6000613a0060248361446f565b9150613a0b82614a94565b604082019050919050565b6000613a2360198361446f565b9150613a2e82614ae3565b602082019050919050565b6000613a4660228361446f565b9150613a5182614b0c565b604082019050919050565b6000613a69602c8361446f565b9150613a7482614b5b565b604082019050919050565b6000613a8c600d8361446f565b9150613a9782614baa565b602082019050919050565b6000613aaf60108361446f565b9150613aba82614bd3565b602082019050919050565b6000613ad260128361446f565b9150613add82614bfc565b602082019050919050565b6000613af560388361446f565b9150613b0082614c25565b604082019050919050565b6000613b18602a8361446f565b9150613b2382614c74565b604082019050919050565b6000613b3b60298361446f565b9150613b4682614cc3565b604082019050919050565b6000613b5e602e8361446f565b9150613b6982614d12565b604082019050919050565b6000613b8160228361446f565b9150613b8c82614d61565b604082019050919050565b6000613ba460258361446f565b9150613baf82614db0565b604082019050919050565b6000613bc760208361446f565b9150613bd282614dff565b602082019050919050565b6000613bea60208361446f565b9150613bf582614e28565b602082019050919050565b6000613c0d60318361446f565b9150613c1882614e51565b604082019050919050565b6000613c30602c8361446f565b9150613c3b82614ea0565b604082019050919050565b6000613c53600583614480565b9150613c5e82614eef565b600582019050919050565b6000613c7660298361446f565b9150613c8182614f18565b604082019050919050565b6000613c99602f8361446f565b9150613ca482614f67565b604082019050919050565b6000613cbc60218361446f565b9150613cc782614fb6565b604082019050919050565b6000613cdf600083614464565b9150613cea82615005565b600082019050919050565b6000613d0260318361446f565b9150613d0d82615008565b604082019050919050565b6000613d25601783614480565b9150613d3082615057565b601782019050919050565b6000613d48601f8361446f565b9150613d5382615080565b602082019050919050565b6000613d6b601183614480565b9150613d76826150a9565b601182019050919050565b6000613d8e602f8361446f565b9150613d99826150d2565b604082019050919050565b613dad81614614565b82525050565b613dbc8161461e565b82525050565b6000613dce82856137dd565b601482019150613dde82846137dd565b6014820191508190509392505050565b6000613dfa82856138aa565b9150613e0682846138aa565b91508190509392505050565b6000613e1e82856138aa565b9150613e2a82846138aa565b9150613e3582613c46565b91508190509392505050565b6000613e4c82613944565b9150613e588284613812565b60208201915081905092915050565b6000613e7282613cd2565b9150819050919050565b6000613e8782613d18565b9150613e9382856138aa565b9150613e9e82613d5e565b9150613eaa82846138aa565b91508190509392505050565b6000602082019050613ecb60008301846137ce565b92915050565b6000608082019050613ee660008301876137ce565b613ef360208301866137ce565b613f006040830185613da4565b8181036060830152613f128184613829565b905095945050505050565b6000602082019050613f3260008301846137f4565b92915050565b6000604082019050613f4d60008301856137f4565b613f5a6020830184613862565b9392505050565b6000604082019050613f7660008301856137f4565b613f836020830184613da4565b9392505050565b6000602082019050613f9f6000830184613803565b92915050565b6000608082019050613fba6000830187613803565b613fc76020830186613db3565b613fd46040830185613803565b613fe16060830184613803565b95945050505050565b600060208201905081810360008301526140048184613871565b905092915050565b60006020820190508181036000830152614025816138db565b9050919050565b60006020820190508181036000830152614045816138fe565b9050919050565b6000602082019050818103600083015261406581613921565b9050919050565b6000602082019050818103600083015261408581613967565b9050919050565b600060208201905081810360008301526140a58161398a565b9050919050565b600060208201905081810360008301526140c5816139ad565b9050919050565b600060208201905081810360008301526140e5816139d0565b9050919050565b60006020820190508181036000830152614105816139f3565b9050919050565b6000602082019050818103600083015261412581613a16565b9050919050565b6000602082019050818103600083015261414581613a39565b9050919050565b6000602082019050818103600083015261416581613a5c565b9050919050565b6000602082019050818103600083015261418581613a7f565b9050919050565b600060208201905081810360008301526141a581613aa2565b9050919050565b600060208201905081810360008301526141c581613ac5565b9050919050565b600060208201905081810360008301526141e581613ae8565b9050919050565b6000602082019050818103600083015261420581613b0b565b9050919050565b6000602082019050818103600083015261422581613b2e565b9050919050565b6000602082019050818103600083015261424581613b51565b9050919050565b6000602082019050818103600083015261426581613b74565b9050919050565b6000602082019050818103600083015261428581613b97565b9050919050565b600060208201905081810360008301526142a581613bba565b9050919050565b600060208201905081810360008301526142c581613bdd565b9050919050565b600060208201905081810360008301526142e581613c00565b9050919050565b6000602082019050818103600083015261430581613c23565b9050919050565b6000602082019050818103600083015261432581613c69565b9050919050565b6000602082019050818103600083015261434581613c8c565b9050919050565b6000602082019050818103600083015261436581613caf565b9050919050565b6000602082019050818103600083015261438581613cf5565b9050919050565b600060208201905081810360008301526143a581613d3b565b9050919050565b600060208201905081810360008301526143c581613d81565b9050919050565b60006020820190506143e16000830184613da4565b92915050565b60006143f1614402565b90506143fd82826146db565b919050565b6000604051905090565b600067ffffffffffffffff8211156144275761442661489f565b5b614430826148e2565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061449682614614565b91506144a183614614565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144d6576144d56147b4565b5b828201905092915050565b60006144ec82614614565b91506144f783614614565b925082614507576145066147e3565b5b828204905092915050565b600061451d82614614565b915061452883614614565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614561576145606147b4565b5b828202905092915050565b600061457782614614565b915061458283614614565b925082821015614595576145946147b4565b5b828203905092915050565b60006145ab826145f4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061463682614614565b9050919050565b82818337600083830152505050565b60005b8381101561466a57808201518184015260208101905061464f565b83811115614679576000848401525b50505050565b600061468a82614614565b9150600082141561469e5761469d6147b4565b5b600182039050919050565b600060028204905060018216806146c157607f821691505b602082108114156146d5576146d4614841565b5b50919050565b6146e4826148e2565b810181811067ffffffffffffffff821117156147035761470261489f565b5b80604052505050565b600061471782614614565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474a576147496147b4565b5b600182019050919050565b600061476082614771565b9050919050565b6000819050919050565b600061477c826148f3565b9050919050565b600061478e82614614565b915061479983614614565b9250826147a9576147a86147e3565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6e65772077686974656c6973742061646d696e20697320746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b7f6e6577206f776e657220697320746865207a65726f2061646472657373000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206f70656e00000000000000000000000000000000000000600082015250565b7f616c726561647920736f6c64206f757400000000000000000000000000000000600082015250565b7f696e73756666696369656e742065746865720000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f796f752063616e206f6e6c79206d696e74206f6e636520647572696e6720707260008201527f6573616c65000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f796f75722061646472657373206973206e6f7420696e2077686974656c697374600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61512a816145a0565b811461513557600080fd5b50565b615141816145b2565b811461514c57600080fd5b50565b615158816145be565b811461516357600080fd5b50565b61516f816145c8565b811461517a57600080fd5b50565b61518681614614565b811461519157600080fd5b5056fe68747470733a2f2f6d6574612e6d6f6d656e74782e6170702f67656e657369732f7461626c65732fa26469706673582212200aeebbbee620b82f220a0c68b6469a0c3bb7c0b4357e76ac8b0b2edef316731264736f6c6343000807003368747470733a2f2f6d6574612e6d6f6d656e74782e6170702f67656e657369732f7461626c65732f
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c80636352211e1161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f146106f0578063df0ffd7214610719578063e985e9c514610723578063e9f615ed14610760578063fb5e13a514610789576101ee565b8063a22cb46514610645578063b88d4fde1461066e578063c5a0da7a14610697578063c87b56dd146106b3576101ee565b80638da5cb5b116100dc5780638da5cb5b1461058757806391d14854146105b257806395d89b41146105ef578063a217fddf1461061a576101ee565b80636352211e146104b7578063676c8c07146104f45780636c0360eb1461051f57806370a082311461054a576101ee565b806336568abe116101855780634ced4734116101545780634ced47341461040d578063591972ac1461043857806359486873146104635780635c7a54181461048e576101ee565b806336568abe146103795780633ccfd60b146103a2578063411557d1146103b957806342842e0e146103e4576101ee565b806323b872dd116101c157806323b872dd146102c1578063248a9ca3146102ea5780632f2ff15d1461032757806331dd6a6c14610350576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a600480360381019061021591906136fe565b6107b4565b6040516102279190613f1d565b60405180910390f35b34801561023c57600080fd5b506102456107c6565b6040516102529190613fea565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d91906137a1565b610858565b60405161028f9190613eb6565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190613611565b6108dd565b005b3480156102cd57600080fd5b506102e860048036038101906102e391906134fb565b6109f5565b005b3480156102f657600080fd5b50610311600480360381019061030c9190613691565b610a55565b60405161031e9190613f8a565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906136be565b610a75565b005b34801561035c57600080fd5b506103776004803603810190610372919061348e565b610a9e565b005b34801561038557600080fd5b506103a0600480360381019061039b91906136be565b610bbe565b005b3480156103ae57600080fd5b506103b7610c41565b005b3480156103c557600080fd5b506103ce610ce4565b6040516103db9190613eb6565b60405180910390f35b3480156103f057600080fd5b5061040b600480360381019061040691906134fb565b610cfc565b005b34801561041957600080fd5b50610422610d1c565b60405161042f9190613f1d565b60405180910390f35b34801561044457600080fd5b5061044d610d2f565b60405161045a91906143cc565b60405180910390f35b34801561046f57600080fd5b50610478610d34565b6040516104859190613f8a565b60405180910390f35b34801561049a57600080fd5b506104b560048036038101906104b09190613651565b610d58565b005b3480156104c357600080fd5b506104de60048036038101906104d991906137a1565b610dc3565b6040516104eb9190613eb6565b60405180910390f35b34801561050057600080fd5b50610509610e75565b6040516105169190613f1d565b60405180910390f35b34801561052b57600080fd5b50610534610e88565b6040516105419190613fea565b60405180910390f35b34801561055657600080fd5b50610571600480360381019061056c919061348e565b610ea4565b60405161057e91906143cc565b60405180910390f35b34801561059357600080fd5b5061059c610f5c565b6040516105a99190613eb6565b60405180910390f35b3480156105be57600080fd5b506105d960048036038101906105d491906136be565b610f86565b6040516105e69190613f1d565b60405180910390f35b3480156105fb57600080fd5b50610604610ff1565b6040516106119190613fea565b60405180910390f35b34801561062657600080fd5b5061062f611083565b60405161063c9190613f8a565b60405180910390f35b34801561065157600080fd5b5061066c600480360381019061066791906135d1565b61108a565b005b34801561067a57600080fd5b506106956004803603810190610690919061354e565b61120b565b005b6106b160048036038101906106ac9190613758565b61126d565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906137a1565b611631565b6040516106e79190613fea565b60405180910390f35b3480156106fc57600080fd5b50610717600480360381019061071291906136be565b611643565b005b61072161166c565b005b34801561072f57600080fd5b5061074a600480360381019061074591906134bb565b61183b565b6040516107579190613f1d565b60405180910390f35b34801561076c57600080fd5b506107876004803603810190610782919061348e565b6118cf565b005b34801561079557600080fd5b5061079e6119ef565b6040516107ab91906143cc565b60405180910390f35b60006107bf82611c71565b9050919050565b6060600080546107d5906146a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906146a9565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b600061086382611ceb565b6108a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610899906142ec565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108e882610dc3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610959576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109509061434c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610978611cfd565b73ffffffffffffffffffffffffffffffffffffffff1614806109a757506109a6816109a1611cfd565b61183b565b5b6109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd906141cc565b60405180910390fd5b6109f08383611d05565b505050565b610a06610a00611cfd565b82611dbe565b610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c9061436c565b60405180910390fd5b610a50838383611e9c565b505050565b600060076000838152602001908152602001600020600101549050919050565b610a7e82610a55565b610a8f81610a8a611cfd565b6120f8565b610a998383612195565b505050565b60026008541415610ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adb9061438c565b60405180910390fd5b60026008819055506000801b610b0181610afc611cfd565b6120f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b68906140ac565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600160088190555050565b610bc6611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2a906143ac565b60405180910390fd5b610c3d8282612276565b5050565b6000801b610c5681610c51611cfd565b6120f8565b600073886728d9efab7d2e94f6757e95a7ad459ab8b0ae73ffffffffffffffffffffffffffffffffffffffff1647604051610c9090613e67565b60006040518083038185875af1925050503d8060008114610ccd576040519150601f19603f3d011682016040523d82523d6000602084013e610cd2565b606091505b5050905080610ce057600080fd5b5050565b73886728d9efab7d2e94f6757e95a7ad459ab8b0ae81565b610d178383836040518060200160405280600081525061120b565b505050565b600a60009054906101000a900460ff1681565b600081565b7fa961ef34a96635180dfffd0ae574060d6c6af619ce89175a103711bf5ce8270881565b7fa961ef34a96635180dfffd0ae574060d6c6af619ce89175a103711bf5ce82708610d8a81610d85611cfd565b6120f8565b82600a60006101000a81548160ff02191690831515021790555081600a60016101000a81548160ff021916908315150217905550505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e639061420c565b60405180910390fd5b80915050919050565b600a60019054906101000a900460ff1681565b6040518060600160405280602881526020016151956028913981565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c906141ec565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600a60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611000906146a9565b80601f016020809104026020016040519081016040528092919081815260200182805461102c906146a9565b80156110795780601f1061104e57610100808354040283529160200191611079565b820191906000526020600020905b81548152906001019060200180831161105c57829003601f168201915b5050505050905090565b6000801b81565b611092611cfd565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f79061410c565b60405180910390fd5b806005600061110d611cfd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111ba611cfd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111ff9190613f1d565b60405180910390a35050565b61121c611216611cfd565b83611dbe565b61125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112529061436c565b60405180910390fd5b61126784848484612358565b50505050565b600260085414156112b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112aa9061438c565b60405180910390fd5b60026008819055506103e86112c860096119f4565b10611308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ff9061418c565b60405180910390fd5b600a60009054906101000a900460ff168061132f5750600a60019054906101000a900460ff165b61136e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113659061416c565b60405180910390fd5b600d543410156113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906141ac565b60405180910390fd5b600a60009054906101000a900460ff1680156113dc5750600a60019054906101000a900460ff16155b15611572576113eb33826123b4565b61142a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611421906142ac565b60405180910390fd5b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae9061426c565b60405180910390fd5b6001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611517612456565b61151f6124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860018061154d60096119f4565b611557919061456c565b604051611565929190613f61565b60405180910390a1611626565b600a60019054906101000a900460ff16156115ea5761158f612456565b6115976124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf786486001806115c560096119f4565b6115cf919061456c565b6040516115dd929190613f61565b60405180910390a1611625565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860008060405161161c929190613f38565b60405180910390a15b5b600160088190555050565b606061163c8261255f565b9050919050565b61164c82610a55565b61165d81611658611cfd565b6120f8565b6116678383612276565b505050565b600260085414156116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a99061438c565b60405180910390fd5b600260088190555060046103e86116c9919061456c565b6116d360096119f4565b10611713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170a9061418c565b60405180910390fd5b600a60019054906101000a900460ff16611762576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117599061416c565b60405180910390fd5b6005600d546117719190614512565b3410156117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906141ac565b60405180910390fd5b6117bb612456565b6117c3612456565b6117cb612456565b6117d3612456565b6117db612456565b6117e36124d2565b7f44cad798f664b5f7d51d266caf47014da038964f6b87e6ca8c346e030cf7864860018061181160096119f4565b61181b919061456c565b604051611829929190613f61565b60405180910390a16001600881905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026008541415611915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190c9061438c565b60405180910390fd5b60026008819055506000801b6119328161192d611cfd565b6120f8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611999906140cc565b60405180910390fd5b81600a60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600160088190555050565b600081565b600081600001549050919050565b60606000821415611a4a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b5e565b600082905060005b60008214611a7c578080611a659061470c565b915050600a82611a7591906144e1565b9150611a52565b60008167ffffffffffffffff811115611a9857611a9761489f565b5b6040519080825280601f01601f191660200182016040528015611aca5781602001600182028036833780820191505090505b5090505b60008514611b5757600182611ae3919061456c565b9150600a85611af29190614783565b6030611afe919061448b565b60f81b818381518110611b1457611b13614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b5091906144e1565b9450611ace565b8093505050505b919050565b6001816000016000828254019250508190555050565b611b8282611ceb565b611bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb89061422c565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190611be89291906132fd565b505050565b600080823b905060008111915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ce45750611ce3826126b1565b5b9050919050565b6000611cf682611c00565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d7883610dc3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611dc982611ceb565b611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff9061414c565b60405180910390fd5b6000611e1383610dc3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e8257508373ffffffffffffffffffffffffffffffffffffffff16611e6a84610858565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e935750611e92818561183b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ebc82610dc3565b73ffffffffffffffffffffffffffffffffffffffff1614611f12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f099061430c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f79906140ec565b60405180910390fd5b611f8d838383612793565b611f98600082611d05565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe8919061456c565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461203f919061448b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6121028282610f86565b612191576121278173ffffffffffffffffffffffffffffffffffffffff1660146127a3565b6121358360001c60206127a3565b604051602001612146929190613e7c565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121889190613fea565b60405180910390fd5b5050565b61219f8282610f86565b6122725760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612217611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6122808282610f86565b156123545760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122f9611cfd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b612363848484611e9c565b61236f848484846129df565b6123ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a59061406c565b60405180910390fd5b50505050565b6000806123fa836123ec30876040516020016123d1929190613dc2565b60405160208183030381529060405280519060200120612b76565b612ba690919063ffffffff16565b90508073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6124693361246460096119f4565b612bcd565b6124c661247660096119f4565b604051806060016040528060288152602001615195602891396124a161249c60096119f4565b611a02565b6040516020016124b2929190613e12565b604051602081830303815290604052612beb565b6124d06009611b63565b565b600073886728d9efab7d2e94f6757e95a7ad459ab8b0ae73ffffffffffffffffffffffffffffffffffffffff164760405161250c90613e67565b60006040518083038185875af1925050503d8060008114612549576040519150601f19603f3d011682016040523d82523d6000602084013e61254e565b606091505b505090508061255c57600080fd5b50565b606061256a82611ceb565b6125a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a0906142cc565b60405180910390fd5b60006006600084815260200190815260200160002080546125c9906146a9565b80601f01602080910402602001604051908101604052809291908181526020018280546125f5906146a9565b80156126425780601f1061261757610100808354040283529160200191612642565b820191906000526020600020905b81548152906001019060200180831161262557829003601f168201915b505050505090506000612653612bf9565b90506000815114156126695781925050506126ac565b60008251111561269e578082604051602001612686929190613dee565b604051602081830303815290604052925050506126ac565b6126a784612c10565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061278c575061278b82612cb7565b5b9050919050565b61279e838383611c6c565b505050565b6060600060028360026127b69190614512565b6127c0919061448b565b67ffffffffffffffff8111156127d9576127d861489f565b5b6040519080825280601f01601f19166020018201604052801561280b5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061284357612842614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128a7576128a6614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128e79190614512565b6128f1919061448b565b90505b6001811115612991577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061293357612932614870565b5b1a60f81b82828151811061294a57612949614870565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061298a9061467f565b90506128f4565b50600084146129d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cc9061402c565b60405180910390fd5b8091505092915050565b6000612a008473ffffffffffffffffffffffffffffffffffffffff16611bed565b15612b69578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a29611cfd565b8786866040518563ffffffff1660e01b8152600401612a4b9493929190613ed1565b602060405180830381600087803b158015612a6557600080fd5b505af1925050508015612a9657506040513d601f19601f82011682018060405250810190612a93919061372b565b60015b612b19573d8060008114612ac6576040519150601f19603f3d011682016040523d82523d6000602084013e612acb565b606091505b50600081511415612b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b089061406c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b6e565b600190505b949350505050565b600081604051602001612b899190613e41565b604051602081830303815290604052805190602001209050919050565b6000806000612bb58585612d21565b91509150612bc281612da4565b819250505092915050565b612be7828260405180602001604052806000815250612f79565b5050565b612bf58282611b79565b5050565b606060405180602001604052806000815250905090565b6060612c1b82611ceb565b612c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c519061432c565b60405180910390fd5b6000612c64612bf9565b90506000815111612c845760405180602001604052806000815250612caf565b80612c8e84611a02565b604051602001612c9f929190613dee565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080604183511415612d635760008060006020860151925060408601519150606086015160001a9050612d5787828585612fd4565b94509450505050612d9d565b604083511415612d94576000806020850151915060408501519050612d898683836130e1565b935093505050612d9d565b60006002915091505b9250929050565b60006004811115612db857612db7614812565b5b816004811115612dcb57612dca614812565b5b1415612dd657612f76565b60016004811115612dea57612de9614812565b5b816004811115612dfd57612dfc614812565b5b1415612e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e359061400c565b60405180910390fd5b60026004811115612e5257612e51614812565b5b816004811115612e6557612e64614812565b5b1415612ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9d9061404c565b60405180910390fd5b60036004811115612eba57612eb9614812565b5b816004811115612ecd57612ecc614812565b5b1415612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f059061412c565b60405180910390fd5b600480811115612f2157612f20614812565b5b816004811115612f3457612f33614812565b5b1415612f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6c9061424c565b60405180910390fd5b5b50565b612f83838361312f565b612f9060008484846129df565b612fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc69061406c565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561300f5760006003915091506130d8565b601b8560ff16141580156130275750601c8560ff1614155b156130395760006004915091506130d8565b60006001878787876040516000815260200160405260405161305e9493929190613fa5565b6020604051602081039080840390855afa158015613080573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156130cf576000600192509250506130d8565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c01905061312187828885612fd4565b935093505050935093915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561319f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131969061428c565b60405180910390fd5b6131a881611ceb565b156131e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131df9061408c565b60405180910390fd5b6131f460008383612793565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613244919061448b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613309906146a9565b90600052602060002090601f01602090048101928261332b5760008555613372565b82601f1061334457805160ff1916838001178555613372565b82800160010185558215613372579182015b82811115613371578251825591602001919060010190613356565b5b50905061337f9190613383565b5090565b5b8082111561339c576000816000905550600101613384565b5090565b60006133b36133ae8461440c565b6143e7565b9050828152602081018484840111156133cf576133ce6148d3565b5b6133da84828561463d565b509392505050565b6000813590506133f181615121565b92915050565b60008135905061340681615138565b92915050565b60008135905061341b8161514f565b92915050565b60008135905061343081615166565b92915050565b60008151905061344581615166565b92915050565b600082601f8301126134605761345f6148ce565b5b81356134708482602086016133a0565b91505092915050565b6000813590506134888161517d565b92915050565b6000602082840312156134a4576134a36148dd565b5b60006134b2848285016133e2565b91505092915050565b600080604083850312156134d2576134d16148dd565b5b60006134e0858286016133e2565b92505060206134f1858286016133e2565b9150509250929050565b600080600060608486031215613514576135136148dd565b5b6000613522868287016133e2565b9350506020613533868287016133e2565b925050604061354486828701613479565b9150509250925092565b60008060008060808587031215613568576135676148dd565b5b6000613576878288016133e2565b9450506020613587878288016133e2565b935050604061359887828801613479565b925050606085013567ffffffffffffffff8111156135b9576135b86148d8565b5b6135c58782880161344b565b91505092959194509250565b600080604083850312156135e8576135e76148dd565b5b60006135f6858286016133e2565b9250506020613607858286016133f7565b9150509250929050565b60008060408385031215613628576136276148dd565b5b6000613636858286016133e2565b925050602061364785828601613479565b9150509250929050565b60008060408385031215613668576136676148dd565b5b6000613676858286016133f7565b9250506020613687858286016133f7565b9150509250929050565b6000602082840312156136a7576136a66148dd565b5b60006136b58482850161340c565b91505092915050565b600080604083850312156136d5576136d46148dd565b5b60006136e38582860161340c565b92505060206136f4858286016133e2565b9150509250929050565b600060208284031215613714576137136148dd565b5b600061372284828501613421565b91505092915050565b600060208284031215613741576137406148dd565b5b600061374f84828501613436565b91505092915050565b60006020828403121561376e5761376d6148dd565b5b600082013567ffffffffffffffff81111561378c5761378b6148d8565b5b6137988482850161344b565b91505092915050565b6000602082840312156137b7576137b66148dd565b5b60006137c584828501613479565b91505092915050565b6137d7816145a0565b82525050565b6137ee6137e9826145a0565b614755565b82525050565b6137fd816145b2565b82525050565b61380c816145be565b82525050565b61382361381e826145be565b614767565b82525050565b60006138348261443d565b61383e8185614453565b935061384e81856020860161464c565b613857816148e2565b840191505092915050565b61386b8161462b565b82525050565b600061387c82614448565b613886818561446f565b935061389681856020860161464c565b61389f816148e2565b840191505092915050565b60006138b582614448565b6138bf8185614480565b93506138cf81856020860161464c565b80840191505092915050565b60006138e860188361446f565b91506138f382614900565b602082019050919050565b600061390b60208361446f565b915061391682614929565b602082019050919050565b600061392e601f8361446f565b915061393982614952565b602082019050919050565b6000613951601c83614480565b915061395c8261497b565b601c82019050919050565b600061397460328361446f565b915061397f826149a4565b604082019050919050565b6000613997601c8361446f565b91506139a2826149f3565b602082019050919050565b60006139ba60278361446f565b91506139c582614a1c565b604082019050919050565b60006139dd601d8361446f565b91506139e882614a6b565b602082019050919050565b6000613a0060248361446f565b9150613a0b82614a94565b604082019050919050565b6000613a2360198361446f565b9150613a2e82614ae3565b602082019050919050565b6000613a4660228361446f565b9150613a5182614b0c565b604082019050919050565b6000613a69602c8361446f565b9150613a7482614b5b565b604082019050919050565b6000613a8c600d8361446f565b9150613a9782614baa565b602082019050919050565b6000613aaf60108361446f565b9150613aba82614bd3565b602082019050919050565b6000613ad260128361446f565b9150613add82614bfc565b602082019050919050565b6000613af560388361446f565b9150613b0082614c25565b604082019050919050565b6000613b18602a8361446f565b9150613b2382614c74565b604082019050919050565b6000613b3b60298361446f565b9150613b4682614cc3565b604082019050919050565b6000613b5e602e8361446f565b9150613b6982614d12565b604082019050919050565b6000613b8160228361446f565b9150613b8c82614d61565b604082019050919050565b6000613ba460258361446f565b9150613baf82614db0565b604082019050919050565b6000613bc760208361446f565b9150613bd282614dff565b602082019050919050565b6000613bea60208361446f565b9150613bf582614e28565b602082019050919050565b6000613c0d60318361446f565b9150613c1882614e51565b604082019050919050565b6000613c30602c8361446f565b9150613c3b82614ea0565b604082019050919050565b6000613c53600583614480565b9150613c5e82614eef565b600582019050919050565b6000613c7660298361446f565b9150613c8182614f18565b604082019050919050565b6000613c99602f8361446f565b9150613ca482614f67565b604082019050919050565b6000613cbc60218361446f565b9150613cc782614fb6565b604082019050919050565b6000613cdf600083614464565b9150613cea82615005565b600082019050919050565b6000613d0260318361446f565b9150613d0d82615008565b604082019050919050565b6000613d25601783614480565b9150613d3082615057565b601782019050919050565b6000613d48601f8361446f565b9150613d5382615080565b602082019050919050565b6000613d6b601183614480565b9150613d76826150a9565b601182019050919050565b6000613d8e602f8361446f565b9150613d99826150d2565b604082019050919050565b613dad81614614565b82525050565b613dbc8161461e565b82525050565b6000613dce82856137dd565b601482019150613dde82846137dd565b6014820191508190509392505050565b6000613dfa82856138aa565b9150613e0682846138aa565b91508190509392505050565b6000613e1e82856138aa565b9150613e2a82846138aa565b9150613e3582613c46565b91508190509392505050565b6000613e4c82613944565b9150613e588284613812565b60208201915081905092915050565b6000613e7282613cd2565b9150819050919050565b6000613e8782613d18565b9150613e9382856138aa565b9150613e9e82613d5e565b9150613eaa82846138aa565b91508190509392505050565b6000602082019050613ecb60008301846137ce565b92915050565b6000608082019050613ee660008301876137ce565b613ef360208301866137ce565b613f006040830185613da4565b8181036060830152613f128184613829565b905095945050505050565b6000602082019050613f3260008301846137f4565b92915050565b6000604082019050613f4d60008301856137f4565b613f5a6020830184613862565b9392505050565b6000604082019050613f7660008301856137f4565b613f836020830184613da4565b9392505050565b6000602082019050613f9f6000830184613803565b92915050565b6000608082019050613fba6000830187613803565b613fc76020830186613db3565b613fd46040830185613803565b613fe16060830184613803565b95945050505050565b600060208201905081810360008301526140048184613871565b905092915050565b60006020820190508181036000830152614025816138db565b9050919050565b60006020820190508181036000830152614045816138fe565b9050919050565b6000602082019050818103600083015261406581613921565b9050919050565b6000602082019050818103600083015261408581613967565b9050919050565b600060208201905081810360008301526140a58161398a565b9050919050565b600060208201905081810360008301526140c5816139ad565b9050919050565b600060208201905081810360008301526140e5816139d0565b9050919050565b60006020820190508181036000830152614105816139f3565b9050919050565b6000602082019050818103600083015261412581613a16565b9050919050565b6000602082019050818103600083015261414581613a39565b9050919050565b6000602082019050818103600083015261416581613a5c565b9050919050565b6000602082019050818103600083015261418581613a7f565b9050919050565b600060208201905081810360008301526141a581613aa2565b9050919050565b600060208201905081810360008301526141c581613ac5565b9050919050565b600060208201905081810360008301526141e581613ae8565b9050919050565b6000602082019050818103600083015261420581613b0b565b9050919050565b6000602082019050818103600083015261422581613b2e565b9050919050565b6000602082019050818103600083015261424581613b51565b9050919050565b6000602082019050818103600083015261426581613b74565b9050919050565b6000602082019050818103600083015261428581613b97565b9050919050565b600060208201905081810360008301526142a581613bba565b9050919050565b600060208201905081810360008301526142c581613bdd565b9050919050565b600060208201905081810360008301526142e581613c00565b9050919050565b6000602082019050818103600083015261430581613c23565b9050919050565b6000602082019050818103600083015261432581613c69565b9050919050565b6000602082019050818103600083015261434581613c8c565b9050919050565b6000602082019050818103600083015261436581613caf565b9050919050565b6000602082019050818103600083015261438581613cf5565b9050919050565b600060208201905081810360008301526143a581613d3b565b9050919050565b600060208201905081810360008301526143c581613d81565b9050919050565b60006020820190506143e16000830184613da4565b92915050565b60006143f1614402565b90506143fd82826146db565b919050565b6000604051905090565b600067ffffffffffffffff8211156144275761442661489f565b5b614430826148e2565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061449682614614565b91506144a183614614565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144d6576144d56147b4565b5b828201905092915050565b60006144ec82614614565b91506144f783614614565b925082614507576145066147e3565b5b828204905092915050565b600061451d82614614565b915061452883614614565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614561576145606147b4565b5b828202905092915050565b600061457782614614565b915061458283614614565b925082821015614595576145946147b4565b5b828203905092915050565b60006145ab826145f4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061463682614614565b9050919050565b82818337600083830152505050565b60005b8381101561466a57808201518184015260208101905061464f565b83811115614679576000848401525b50505050565b600061468a82614614565b9150600082141561469e5761469d6147b4565b5b600182039050919050565b600060028204905060018216806146c157607f821691505b602082108114156146d5576146d4614841565b5b50919050565b6146e4826148e2565b810181811067ffffffffffffffff821117156147035761470261489f565b5b80604052505050565b600061471782614614565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474a576147496147b4565b5b600182019050919050565b600061476082614771565b9050919050565b6000819050919050565b600061477c826148f3565b9050919050565b600061478e82614614565b915061479983614614565b9250826147a9576147a86147e3565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6e65772077686974656c6973742061646d696e20697320746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b7f6e6577206f776e657220697320746865207a65726f2061646472657373000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74206f70656e00000000000000000000000000000000000000600082015250565b7f616c726561647920736f6c64206f757400000000000000000000000000000000600082015250565b7f696e73756666696369656e742065746865720000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f796f752063616e206f6e6c79206d696e74206f6e636520647572696e6720707260008201527f6573616c65000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f796f75722061646472657373206973206e6f7420696e2077686974656c697374600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61512a816145a0565b811461513557600080fd5b50565b615141816145b2565b811461514c57600080fd5b50565b615158816145be565b811461516357600080fd5b50565b61516f816145c8565b811461517a57600080fd5b50565b61518681614614565b811461519157600080fd5b5056fe68747470733a2f2f6d6574612e6d6f6d656e74782e6170702f67656e657369732f7461626c65732fa26469706673582212200aeebbbee620b82f220a0c68b6469a0c3bb7c0b4357e76ac8b0b2edef316731264736f6c63430008070033
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.