ERC-721
Overview
Max Total Supply
888 DPK
Holders
291
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DPKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Deerpack
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 5000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // DeerPack /* * * ASTERIA LABS * @Danny_One * */ import "./ERC721_efficient.sol"; pragma solidity ^0.8.0; contract Deerpack is ERC721Enumerable, Ownable, nonReentrant { uint256 public PRICE = 0.055 ether; uint256 public PRESALE_PRICE = 0.05 ether; uint256 public MAX_SUPPLY = 888; uint256 public MAX_TEAMRESERVE = 100; uint256 public maxSaleMint = 2; mapping(address => uint256) public mintedPerAddress; uint256 public teamMints = 0; bytes32 public MerkleRoot = 0x3a685e002d570083c931265030a76d282bc9fa56e3e125c52ac27ad006af1893; address public proxyRegistryAddress; mapping(address => bool) public projectProxy; enum SaleState { paused, presale, publicSale } SaleState public saleState; string public revealedURI; string public unrevealedURI = "ipfs://QmYx8htxUmfZsVsixKD4yaUaXV53WW7LzjB2wLZde64Mwg"; bool public isRevealed; constructor() ERC721("The Deerpack", "DPK") {} // PUBLIC FUNCTIONS function mint(uint256 _mintAmount) external payable { require(saleState == SaleState.publicSale, "public sale not active"); require(msg.sender == tx.origin, "no proxy transactions"); require(_mintAmount <= maxSaleMint, "max mint per session exceeded"); require(msg.value >= _mintAmount * PRICE, "not enough ETH sent"); uint256 supply = totalSupply(); require(supply + _mintAmount <= MAX_SUPPLY, "max NFT limit exceeded"); for (uint256 i = 0; i < _mintAmount; ) { _mint(msg.sender, supply + i); unchecked { ++i; } } } function mintPresale(bytes32[] memory _proof, uint256 _mintAmount) external payable { require(saleState == SaleState.presale, "presale not active"); require(_mintAmount < 3, "max presale mint per session exceeded"); require( mintedPerAddress[msg.sender] + _mintAmount < 3, "max per address exceeded" ); require( MerkleProof.verify( _proof, MerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "invalid sender proof" ); require( msg.value >= _mintAmount * PRESALE_PRICE, "not enough ETH sent" ); uint256 supply = totalSupply(); require( supply + _mintAmount <= MAX_SUPPLY, "max collection limit exceeded" ); mintedPerAddress[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; ) { _mint(msg.sender, supply + i); unchecked { ++i; } } } function checkProof(bytes32[] memory proof) external view returns (bool) { return MerkleProof.verify( proof, MerkleRoot, keccak256(abi.encodePacked(msg.sender)) ); } function tokensOfWalletOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function isApprovedForAll(address _owner, address operator) public view override(ERC721, IERC721) returns (bool) { MarketplaceProxyRegistry proxyRegistry = MarketplaceProxyRegistry( proxyRegistryAddress ); if ( address(proxyRegistry.proxies(_owner)) == operator || projectProxy[operator] ) return true; return super.isApprovedForAll(_owner, operator); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (isRevealed) { return bytes(revealedURI).length > 0 ? string(abi.encodePacked(revealedURI, Strings.toString(tokenId))) : ""; } return bytes(unrevealedURI).length > 0 ? string(abi.encodePacked(unrevealedURI)) : ""; } // ONLY OWNER FUNCTIONS function setBaseURI(string memory unrevealedbaseURI_, string memory revealedbaseURI_) public onlyOwner { unrevealedURI = unrevealedbaseURI_; revealedURI = revealedbaseURI_; } function setIsRevealed() public onlyOwner { isRevealed = !isRevealed; } function setMerkleRoot(bytes32 _MerkleRoot) public onlyOwner { MerkleRoot = _MerkleRoot; } function setSaleState(SaleState _newState) public onlyOwner { saleState = _newState; } function setPrice(uint256 pub_price, uint256 pre_price) public onlyOwner { PRICE = pub_price; PRESALE_PRICE = pre_price; } function setProxyRegistry(address _proxyRegistryAddress) public onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; (bool success, ) = msg.sender.call{value: balance}(""); require(success, "withdraw failed"); } /** reserve function for team mints (giveaways & payments) */ function teamMint(address _to, uint256 _reserveAmount) public onlyOwner { require( _reserveAmount > 0 && _reserveAmount + teamMints < MAX_TEAMRESERVE + 1, "Not enough reserve left for team" ); uint256 supply = totalSupply(); teamMints = teamMints + _reserveAmount; for (uint256 i = 0; i < _reserveAmount; i++) { _safeMint(_to, supply + i); } } } contract OwnableDelegateProxy {} contract MarketplaceProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
/** * Flattened contract dependencies for ERC721 NFT projects * @Danny_One * * * Added Merkle Proof presale list * Improved Enumerable per new best practices to save gas * * Flattened from: * MerkleProof.sol - Nuclear Nerds (2022-01-16) * ERC721Enumerable.sol - Nuclear Nerds (2022-01-04) * IERC721Enumerable.sol - Open Zeppelin (2022-01-04) * OpenZeppelin (on 2021-11-18): * ERC721.sol * IERC721.sol * IERC721Receiver.sol * IERC721Metadata.sol * Address.sol * Context.sol * Ownable.sol * Strings.sol * Counters.sol * ERC165.sol * IERC165.sol * nonReentrant (custom) * **/ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // OpenZeppelin Contracts v4.3.2 (utils/introspection/IERC165.sol) /** * @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); } // OpenZeppelin Contracts v4.3.2 (utils/introspection/ERC165.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; } } // OpenZeppelin Contracts v4.3.2 (utils/Strings.sol) /** * @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); } } // OpenZeppelin Contracts v4.3.2 (utils/Context.sol) /** * @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; } } // OpenZeppelin Contracts v4.3.2 (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // OpenZeppelin Contracts v4.3.2 (utils/Address.sol) /** * @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); } } } } // OpenZeppelin Contracts v4.3.2 (token/ERC721/IERC721.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; } // OpenZeppelin Contracts v4.3.2 (token/ERC721/extensions/IERC721Metadata.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); } // OpenZeppelin Contracts v4.3.2 (token/ERC721/IERC721Receiver.sol) /** * @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); } // OpenZeppelin Contracts v4.3.2 (utils/Counters.sol) /** * @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; } } /** * @title nonReentrant module to prevent recursive calling of functions * @dev See https://medium.com/coinmonks/protect-your-solidity-smart-contracts-from-reentrancy-attacks-9972c3af7c21 * part of a flattened ERC721 dependency collection compiled by Danny_One */ abstract contract nonReentrant { bool private _reentryKey = false; modifier reentryLock { require(!_reentryKey, "cannot reenter a locked function"); _reentryKey = true; _; _reentryKey = false; } } // OpenZeppelin Contracts v4.3.2 (token/ERC721/ERC721.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}. * Modified from original OpenZeppelin version to improve gas performance */ 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; // Base URI string private _baseURI; // Owner array address[] internal _owners; // Removed for optimization // 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}. * updated for owner array */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint256 _ownerBalance = 0; for(uint i = 0; i < _owners.length; i++) { if(_owners[i] == owner) _ownerBalance ++; } return _ownerBalance; } /** * @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 _baseURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _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); _owners.push(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); _owners[tokenId] = address(0); 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); _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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * borrowed from Nuclear Nerds implementation * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < _owners.length, "ERC721Enumerable: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; for(uint i; i < _owners.length; i++){ if(owner == _owners[i]){ if(count == index) return i; else count++; } } revert("ERC721Enumerable: owner index out of bounds"); } }
{ "optimizer": { "enabled": true, "runs": 5000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TEAMRESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealedURI","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum Deerpack.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"unrevealedbaseURI_","type":"string"},{"internalType":"string","name":"revealedbaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_MerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pub_price","type":"uint256"},{"internalType":"uint256","name":"pre_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Deerpack.SaleState","name":"_newState","type":"uint8"}],"name":"setSaleState","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"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":"_owner","type":"address"}],"name":"tokensOfWalletOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6006805460ff60a01b1916905566c3663566a5800060075566b1a2bc2ec500006008556103786009556064600a556002600b556000600d557f3a685e002d570083c931265030a76d282bc9fa56e3e125c52ac27ad006af1893600e5560e060405260356080818152906200350b60a0396013906200007e90826200020c565b503480156200008c57600080fd5b506040518060400160405280600c81526020016b54686520446565727061636b60a01b8152506040518060400160405280600381526020016244504b60e81b8152508160009081620000df91906200020c565b506001620000ee82826200020c565b5050506200010b620001056200011160201b60201c565b62000115565b620002d8565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200019257607f821691505b602082108103620001b357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020757600081815260208120601f850160051c81016020861015620001e25750805b601f850160051c820191505b818110156200020357828155600101620001ee565b5050505b505050565b81516001600160401b0381111562000228576200022862000167565b62000240816200023984546200017d565b84620001b9565b602080601f8311600181146200027857600084156200025f5750858301515b600019600386901b1c1916600185901b17855562000203565b600085815260208120601f198616915b82811015620002a95788860151825594840194600190910190840162000288565b5085821015620002c85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61322380620002e86000396000f3fe6080604052600436106102f25760003560e01c806370a082311161018f578063add5a4fa116100e1578063d445b9781161008a578063f2fde38b11610064578063f2fde38b146107fd578063f7d975771461081d578063f7e8d6ea1461083d57600080fd5b8063d445b9781461079a578063def60e91146107c7578063e985e9c5146107dd57600080fd5b8063c81557e8116100bb578063c81557e814610744578063c87b56dd1461075a578063cd7c03261461077a57600080fd5b8063add5a4fa146106e4578063adfdeef914610704578063b88d4fde1461072457600080fd5b80638da5cb5b11610143578063a0712d681161011d578063a0712d681461069e578063a22cb465146106b1578063ad7f1ea1146106d157600080fd5b80638da5cb5b1461065657806395d89b41146106745780639c53a40b1461068957600080fd5b80637cb64759116101745780637cb64759146105f3578063859b584c146106135780638d859f3e1461064057600080fd5b806370a08231146105be578063715018a6146105de57600080fd5b80633ccfd60b116102485780635bab26e2116101fc5780636352211e116101d65780636352211e146105695780636790a9de146105895780637035bf18146105a957600080fd5b80635bab26e2146104fc578063603f4d521461052c57806362dc6e211461055357600080fd5b80634f6ccce71161022d5780634f6ccce7146104a257806354214f69146104c25780635a67de07146104dc57600080fd5b80633ccfd60b1461046d57806342842e0e1461048257600080fd5b806316ddcd19116102aa5780632f745c59116102845780632f745c591461042157806332cb6b0c14610441578063378f33be1461045757600080fd5b806316ddcd19146103cc57806318160ddd146103ec57806323b872dd1461040157600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b314610386578063132d3f6a146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b506103176103123660046129a4565b610852565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b506103416108ae565b6040516103239190612a20565b34801561035a57600080fd5b5061036e610369366004612a33565b610940565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004612a61565b6109de565b005b3480156103b457600080fd5b506103be600e5481565b604051908152602001610323565b3480156103d857600080fd5b506103176103e7366004612b54565b610b0f565b3480156103f857600080fd5b506003546103be565b34801561040d57600080fd5b506103a661041c366004612b89565b610b69565b34801561042d57600080fd5b506103be61043c366004612a61565b610bf0565b34801561044d57600080fd5b506103be60095481565b34801561046357600080fd5b506103be600d5481565b34801561047957600080fd5b506103a6610d4e565b34801561048e57600080fd5b506103a661049d366004612b89565b610e46565b3480156104ae57600080fd5b506103be6104bd366004612a33565b610e61565b3480156104ce57600080fd5b506014546103179060ff1681565b3480156104e857600080fd5b506103a66104f7366004612bca565b610edf565b34801561050857600080fd5b50610317610517366004612beb565b60106020526000908152604090205460ff1681565b34801561053857600080fd5b506011546105469060ff1681565b6040516103239190612c1e565b34801561055f57600080fd5b506103be60085481565b34801561057557600080fd5b5061036e610584366004612a33565b610f60565b34801561059557600080fd5b506103a66105a4366004612cbe565b611000565b3480156105b557600080fd5b50610341611073565b3480156105ca57600080fd5b506103be6105d9366004612beb565b611101565b3480156105ea57600080fd5b506103a66111eb565b3480156105ff57600080fd5b506103a661060e366004612a33565b611251565b34801561061f57600080fd5b5061063361062e366004612beb565b6112b0565b6040516103239190612d22565b34801561064c57600080fd5b506103be60075481565b34801561066257600080fd5b506006546001600160a01b031661036e565b34801561068057600080fd5b50610341611352565b34801561069557600080fd5b506103a6611361565b6103a66106ac366004612a33565b6113cf565b3480156106bd57600080fd5b506103a66106cc366004612d66565b6115c1565b6103a66106df366004612da4565b6115cc565b3480156106f057600080fd5b506103a66106ff366004612a61565b6118af565b34801561071057600080fd5b506103a661071f366004612beb565b6119cb565b34801561073057600080fd5b506103a661073f366004612de9565b611a5f565b34801561075057600080fd5b506103be600b5481565b34801561076657600080fd5b50610341610775366004612a33565b611ae7565b34801561078657600080fd5b50600f5461036e906001600160a01b031681565b3480156107a657600080fd5b506103be6107b5366004612beb565b600c6020526000908152604090205481565b3480156107d357600080fd5b506103be600a5481565b3480156107e957600080fd5b506103176107f8366004612e69565b611c08565b34801561080957600080fd5b506103a6610818366004612beb565b611d05565b34801561082957600080fd5b506103a6610838366004612e97565b611de7565b34801561084957600080fd5b50610341611e4c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108a857506108a882611e59565b92915050565b6060600080546108bd90612eb9565b80601f01602080910402602001604051908101604052809291908181526020018280546108e990612eb9565b80156109365780601f1061090b57610100808354040283529160200191610936565b820191906000526020600020905b81548152906001019060200180831161091957829003601f168201915b5050505050905090565b600061094b82611f3c565b6109c25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109e982610f60565b9050806001600160a01b0316836001600160a01b031603610a725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109b9565b336001600160a01b0382161480610a8e5750610a8e8133611c08565b610b005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b9565b610b0a8383611f86565b505050565b600e546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526000916108a8918491906034015b6040516020818303038152906040528051906020012061200c565b610b733382612022565b610be55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b9565b610b0a8383836120f5565b6000610bfb83611101565b8210610c6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b9565b6000805b600354811015610cdf5760038181548110610c9057610c90612ef3565b6000918252602090912001546001600160a01b0390811690861603610ccd57838203610cbf5791506108a89050565b81610cc981612f1f565b9250505b80610cd781612f1f565b915050610c73565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b9565b6006546001600160a01b03163314610da85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6040514790600090339083908381818185875af1925050503d8060008114610dec576040519150601f19603f3d011682016040523d82523d6000602084013e610df1565b606091505b5050905080610e425760405162461bcd60e51b815260206004820152600f60248201527f7769746864726177206661696c6564000000000000000000000000000000000060448201526064016109b9565b5050565b610b0a83838360405180602001604052806000815250611a5f565b6003546000908210610edb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109b9565b5090565b6006546001600160a01b03163314610f395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6011805482919060ff19166001836002811115610f5857610f58612c08565b021790555050565b60008060038381548110610f7657610f76612ef3565b6000918252602090912001546001600160a01b03169050806108a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109b9565b6006546001600160a01b0316331461105a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b60136110668382612f87565b506012610b0a8282612f87565b6013805461108090612eb9565b80601f01602080910402602001604051908101604052809291908181526020018280546110ac90612eb9565b80156110f95780601f106110ce576101008083540402835291602001916110f9565b820191906000526020600020905b8154815290600101906020018083116110dc57829003601f168201915b505050505081565b60006001600160a01b03821661117f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109b9565b6000805b6003548110156111e457836001600160a01b0316600382815481106111aa576111aa612ef3565b6000918252602090912001546001600160a01b0316036111d257816111ce81612f1f565b9250505b806111dc81612f1f565b915050611183565b5092915050565b6006546001600160a01b031633146112455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b61124f6000612290565b565b6006546001600160a01b031633146112ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600e55565b606060006112bd83611101565b905060008167ffffffffffffffff8111156112da576112da612a8d565b604051908082528060200260200182016040528015611303578160200160208202803683370190505b50905060005b8281101561134a5761131b8582610bf0565b82828151811061132d5761132d612ef3565b60209081029190910101528061134281612f1f565b915050611309565b509392505050565b6060600180546108bd90612eb9565b6006546001600160a01b031633146113bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6014805460ff19811660ff90911615179055565b600260115460ff1660028111156113e8576113e8612c08565b146114355760405162461bcd60e51b815260206004820152601660248201527f7075626c69632073616c65206e6f74206163746976650000000000000000000060448201526064016109b9565b3332146114845760405162461bcd60e51b815260206004820152601560248201527f6e6f2070726f7879207472616e73616374696f6e73000000000000000000000060448201526064016109b9565b600b548111156114d65760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e74207065722073657373696f6e20657863656564656400000060448201526064016109b9565b6007546114e39082613047565b3410156115325760405162461bcd60e51b815260206004820152601360248201527f6e6f7420656e6f756768204554482073656e740000000000000000000000000060448201526064016109b9565b600061153d60035490565b60095490915061154d8383613066565b111561159b5760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d69742065786365656465640000000000000000000060448201526064016109b9565b60005b82811015610b0a576115b9336115b48385613066565b6122fa565b60010161159e565b610e4233838361243a565b600160115460ff1660028111156115e5576115e5612c08565b146116325760405162461bcd60e51b815260206004820152601260248201527f70726573616c65206e6f7420616374697665000000000000000000000000000060448201526064016109b9565b600381106116a85760405162461bcd60e51b815260206004820152602560248201527f6d61782070726573616c65206d696e74207065722073657373696f6e2065786360448201527f656564656400000000000000000000000000000000000000000000000000000060648201526084016109b9565b336000908152600c60205260409020546003906116c6908390613066565b106117135760405162461bcd60e51b815260206004820152601860248201527f6d6178207065722061646472657373206578636565646564000000000000000060448201526064016109b9565b600e546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152611752918491603401610b4e565b61179e5760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642073656e6465722070726f6f6600000000000000000000000060448201526064016109b9565b6008546117ab9082613047565b3410156117fa5760405162461bcd60e51b815260206004820152601360248201527f6e6f7420656e6f756768204554482073656e740000000000000000000000000060448201526064016109b9565b600061180560035490565b6009549091506118158383613066565b11156118635760405162461bcd60e51b815260206004820152601d60248201527f6d617820636f6c6c656374696f6e206c696d697420657863656564656400000060448201526064016109b9565b336000908152600c602052604081208054849290611882908490613066565b90915550600090505b828110156118a9576118a1336115b48385613066565b60010161188b565b50505050565b6006546001600160a01b031633146119095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6000811180156119315750600a54611922906001613066565b600d5461192f9083613066565b105b61197d5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d60448201526064016109b9565b600061198860035490565b905081600d546119989190613066565b600d5560005b828110156118a9576119b9846119b48385613066565b612508565b806119c381612f1f565b91505061199e565b6006546001600160a01b03163314611a255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611a693383612022565b611adb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b9565b6118a984848484612522565b6060611af282611f3c565b611b645760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109b9565b60145460ff1615611bcb57600060128054611b7e90612eb9565b905011611b9a57604051806020016040528060008152506108a8565b6012611ba5836125ab565b604051602001611bb69291906130f1565b60405160208183030381529060405292915050565b600060138054611bda90612eb9565b905011611bf657604051806020016040528060008152506108a8565b6013604051602001611bb69190613116565b600f546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613122565b6001600160a01b03161480611cc457506001600160a01b03831660009081526010602052604090205460ff165b15611cd35760019150506108a8565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b03163314611d5f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6001600160a01b038116611ddb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109b9565b611de481612290565b50565b6006546001600160a01b03163314611e415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600791909155600855565b6012805461108090612eb9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611eec57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108a857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108a8565b600354600090821080156108a8575060006001600160a01b031660038381548110611f6957611f69612ef3565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611fd382610f60565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261201985846126e0565b14949350505050565b600061202d82611f3c565b61209f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109b9565b60006120aa83610f60565b9050806001600160a01b0316846001600160a01b031614806120e55750836001600160a01b03166120da84610940565b6001600160a01b0316145b80611cfd5750611cfd8185611c08565b826001600160a01b031661210882610f60565b6001600160a01b0316146121845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109b9565b6001600160a01b0382166121ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109b9565b61220a600082611f86565b816003828154811061221e5761221e612ef3565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166123505760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b9565b61235981611f3c565b156123a65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b9565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361249b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610e4282826040518060200160405280600081525061274c565b61252d8484846120f5565b612539848484846127d5565b6118a95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b6060816000036125ee57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612618578061260281612f1f565b91506126119050600a83613155565b91506125f2565b60008167ffffffffffffffff81111561263357612633612a8d565b6040519080825280601f01601f19166020018201604052801561265d576020820181803683370190505b5090505b8415611cfd57612672600183613169565b915061267f600a86613180565b61268a906030613066565b60f81b81838151811061269f5761269f612ef3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126d9600a86613155565b9450612661565b600081815b845181101561134a57600085828151811061270257612702612ef3565b602002602001015190508083116127285760008381526020829052604090209250612739565b600081815260208490526040902092505b508061274481612f1f565b9150506126e5565b61275683836122fa565b61276360008484846127d5565b610b0a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b60006001600160a01b0384163b1561296b576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612832903390899088908890600401613194565b6020604051808303816000875af192505050801561286d575060408051601f3d908101601f1916820190925261286a918101906131d0565b60015b612920573d80801561289b576040519150601f19603f3d011682016040523d82523d6000602084013e6128a0565b606091505b5080516000036129185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611cfd565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611de457600080fd5b6000602082840312156129b657600080fd5b81356129c181612976565b9392505050565b60005b838110156129e35781810151838201526020016129cb565b838111156118a95750506000910152565b60008151808452612a0c8160208601602086016129c8565b601f01601f19169290920160200192915050565b6020815260006129c160208301846129f4565b600060208284031215612a4557600080fd5b5035919050565b6001600160a01b0381168114611de457600080fd5b60008060408385031215612a7457600080fd5b8235612a7f81612a4c565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612acc57612acc612a8d565b604052919050565b600082601f830112612ae557600080fd5b8135602067ffffffffffffffff821115612b0157612b01612a8d565b8160051b612b10828201612aa3565b9283528481018201928281019087851115612b2a57600080fd5b83870192505b84831015612b4957823582529183019190830190612b30565b979650505050505050565b600060208284031215612b6657600080fd5b813567ffffffffffffffff811115612b7d57600080fd5b611cfd84828501612ad4565b600080600060608486031215612b9e57600080fd5b8335612ba981612a4c565b92506020840135612bb981612a4c565b929592945050506040919091013590565b600060208284031215612bdc57600080fd5b8135600381106129c157600080fd5b600060208284031215612bfd57600080fd5b81356129c181612a4c565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c4057634e487b7160e01b600052602160045260246000fd5b91905290565b600067ffffffffffffffff831115612c6057612c60612a8d565b612c736020601f19601f86011601612aa3565b9050828152838383011115612c8757600080fd5b828260208301376000602084830101529392505050565b600082601f830112612caf57600080fd5b6129c183833560208501612c46565b60008060408385031215612cd157600080fd5b823567ffffffffffffffff80821115612ce957600080fd5b612cf586838701612c9e565b93506020850135915080821115612d0b57600080fd5b50612d1885828601612c9e565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612d5a57835183529284019291840191600101612d3e565b50909695505050505050565b60008060408385031215612d7957600080fd5b8235612d8481612a4c565b915060208301358015158114612d9957600080fd5b809150509250929050565b60008060408385031215612db757600080fd5b823567ffffffffffffffff811115612dce57600080fd5b612dda85828601612ad4565b95602094909401359450505050565b60008060008060808587031215612dff57600080fd5b8435612e0a81612a4c565b93506020850135612e1a81612a4c565b925060408501359150606085013567ffffffffffffffff811115612e3d57600080fd5b8501601f81018713612e4e57600080fd5b612e5d87823560208401612c46565b91505092959194509250565b60008060408385031215612e7c57600080fd5b8235612e8781612a4c565b91506020830135612d9981612a4c565b60008060408385031215612eaa57600080fd5b50508035926020909101359150565b600181811c90821680612ecd57607f821691505b602082108103612eed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203612f3257612f32612f09565b5060010190565b601f821115610b0a57600081815260208120601f850160051c81016020861015612f605750805b601f850160051c820191505b81811015612f7f57828155600101612f6c565b505050505050565b815167ffffffffffffffff811115612fa157612fa1612a8d565b612fb581612faf8454612eb9565b84612f39565b602080601f831160018114612fea5760008415612fd25750858301515b600019600386901b1c1916600185901b178555612f7f565b600085815260208120601f198616915b8281101561301957888601518255948401946001909101908401612ffa565b50858210156130375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081600019048311821515161561306157613061612f09565b500290565b6000821982111561307957613079612f09565b500190565b6000815461308b81612eb9565b600182811680156130a357600181146130b8576130e7565b60ff19841687528215158302870194506130e7565b8560005260208060002060005b858110156130de5781548a8201529084019082016130c5565b50505082870194505b5050505092915050565b60006130fd828561307e565b835161310d8183602088016129c8565b01949350505050565b60006129c1828461307e565b60006020828403121561313457600080fd5b81516129c181612a4c565b634e487b7160e01b600052601260045260246000fd5b6000826131645761316461313f565b500490565b60008282101561317b5761317b612f09565b500390565b60008261318f5761318f61313f565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131c660808301846129f4565b9695505050505050565b6000602082840312156131e257600080fd5b81516129c18161297656fea264697066735822122062d75f1a26a715d2a13934cee95f750299cd324c8fe192034651b09115486d6864736f6c634300080f0033697066733a2f2f516d597838687478556d665a73567369784b443479615561585635335757374c7a6a4232774c5a646536344d7767
Deployed Bytecode
0x6080604052600436106102f25760003560e01c806370a082311161018f578063add5a4fa116100e1578063d445b9781161008a578063f2fde38b11610064578063f2fde38b146107fd578063f7d975771461081d578063f7e8d6ea1461083d57600080fd5b8063d445b9781461079a578063def60e91146107c7578063e985e9c5146107dd57600080fd5b8063c81557e8116100bb578063c81557e814610744578063c87b56dd1461075a578063cd7c03261461077a57600080fd5b8063add5a4fa146106e4578063adfdeef914610704578063b88d4fde1461072457600080fd5b80638da5cb5b11610143578063a0712d681161011d578063a0712d681461069e578063a22cb465146106b1578063ad7f1ea1146106d157600080fd5b80638da5cb5b1461065657806395d89b41146106745780639c53a40b1461068957600080fd5b80637cb64759116101745780637cb64759146105f3578063859b584c146106135780638d859f3e1461064057600080fd5b806370a08231146105be578063715018a6146105de57600080fd5b80633ccfd60b116102485780635bab26e2116101fc5780636352211e116101d65780636352211e146105695780636790a9de146105895780637035bf18146105a957600080fd5b80635bab26e2146104fc578063603f4d521461052c57806362dc6e211461055357600080fd5b80634f6ccce71161022d5780634f6ccce7146104a257806354214f69146104c25780635a67de07146104dc57600080fd5b80633ccfd60b1461046d57806342842e0e1461048257600080fd5b806316ddcd19116102aa5780632f745c59116102845780632f745c591461042157806332cb6b0c14610441578063378f33be1461045757600080fd5b806316ddcd19146103cc57806318160ddd146103ec57806323b872dd1461040157600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b314610386578063132d3f6a146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b506103176103123660046129a4565b610852565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b506103416108ae565b6040516103239190612a20565b34801561035a57600080fd5b5061036e610369366004612a33565b610940565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004612a61565b6109de565b005b3480156103b457600080fd5b506103be600e5481565b604051908152602001610323565b3480156103d857600080fd5b506103176103e7366004612b54565b610b0f565b3480156103f857600080fd5b506003546103be565b34801561040d57600080fd5b506103a661041c366004612b89565b610b69565b34801561042d57600080fd5b506103be61043c366004612a61565b610bf0565b34801561044d57600080fd5b506103be60095481565b34801561046357600080fd5b506103be600d5481565b34801561047957600080fd5b506103a6610d4e565b34801561048e57600080fd5b506103a661049d366004612b89565b610e46565b3480156104ae57600080fd5b506103be6104bd366004612a33565b610e61565b3480156104ce57600080fd5b506014546103179060ff1681565b3480156104e857600080fd5b506103a66104f7366004612bca565b610edf565b34801561050857600080fd5b50610317610517366004612beb565b60106020526000908152604090205460ff1681565b34801561053857600080fd5b506011546105469060ff1681565b6040516103239190612c1e565b34801561055f57600080fd5b506103be60085481565b34801561057557600080fd5b5061036e610584366004612a33565b610f60565b34801561059557600080fd5b506103a66105a4366004612cbe565b611000565b3480156105b557600080fd5b50610341611073565b3480156105ca57600080fd5b506103be6105d9366004612beb565b611101565b3480156105ea57600080fd5b506103a66111eb565b3480156105ff57600080fd5b506103a661060e366004612a33565b611251565b34801561061f57600080fd5b5061063361062e366004612beb565b6112b0565b6040516103239190612d22565b34801561064c57600080fd5b506103be60075481565b34801561066257600080fd5b506006546001600160a01b031661036e565b34801561068057600080fd5b50610341611352565b34801561069557600080fd5b506103a6611361565b6103a66106ac366004612a33565b6113cf565b3480156106bd57600080fd5b506103a66106cc366004612d66565b6115c1565b6103a66106df366004612da4565b6115cc565b3480156106f057600080fd5b506103a66106ff366004612a61565b6118af565b34801561071057600080fd5b506103a661071f366004612beb565b6119cb565b34801561073057600080fd5b506103a661073f366004612de9565b611a5f565b34801561075057600080fd5b506103be600b5481565b34801561076657600080fd5b50610341610775366004612a33565b611ae7565b34801561078657600080fd5b50600f5461036e906001600160a01b031681565b3480156107a657600080fd5b506103be6107b5366004612beb565b600c6020526000908152604090205481565b3480156107d357600080fd5b506103be600a5481565b3480156107e957600080fd5b506103176107f8366004612e69565b611c08565b34801561080957600080fd5b506103a6610818366004612beb565b611d05565b34801561082957600080fd5b506103a6610838366004612e97565b611de7565b34801561084957600080fd5b50610341611e4c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108a857506108a882611e59565b92915050565b6060600080546108bd90612eb9565b80601f01602080910402602001604051908101604052809291908181526020018280546108e990612eb9565b80156109365780601f1061090b57610100808354040283529160200191610936565b820191906000526020600020905b81548152906001019060200180831161091957829003601f168201915b5050505050905090565b600061094b82611f3c565b6109c25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109e982610f60565b9050806001600160a01b0316836001600160a01b031603610a725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109b9565b336001600160a01b0382161480610a8e5750610a8e8133611c08565b610b005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b9565b610b0a8383611f86565b505050565b600e546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526000916108a8918491906034015b6040516020818303038152906040528051906020012061200c565b610b733382612022565b610be55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b9565b610b0a8383836120f5565b6000610bfb83611101565b8210610c6f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b9565b6000805b600354811015610cdf5760038181548110610c9057610c90612ef3565b6000918252602090912001546001600160a01b0390811690861603610ccd57838203610cbf5791506108a89050565b81610cc981612f1f565b9250505b80610cd781612f1f565b915050610c73565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b9565b6006546001600160a01b03163314610da85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6040514790600090339083908381818185875af1925050503d8060008114610dec576040519150601f19603f3d011682016040523d82523d6000602084013e610df1565b606091505b5050905080610e425760405162461bcd60e51b815260206004820152600f60248201527f7769746864726177206661696c6564000000000000000000000000000000000060448201526064016109b9565b5050565b610b0a83838360405180602001604052806000815250611a5f565b6003546000908210610edb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109b9565b5090565b6006546001600160a01b03163314610f395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6011805482919060ff19166001836002811115610f5857610f58612c08565b021790555050565b60008060038381548110610f7657610f76612ef3565b6000918252602090912001546001600160a01b03169050806108a85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109b9565b6006546001600160a01b0316331461105a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b60136110668382612f87565b506012610b0a8282612f87565b6013805461108090612eb9565b80601f01602080910402602001604051908101604052809291908181526020018280546110ac90612eb9565b80156110f95780601f106110ce576101008083540402835291602001916110f9565b820191906000526020600020905b8154815290600101906020018083116110dc57829003601f168201915b505050505081565b60006001600160a01b03821661117f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109b9565b6000805b6003548110156111e457836001600160a01b0316600382815481106111aa576111aa612ef3565b6000918252602090912001546001600160a01b0316036111d257816111ce81612f1f565b9250505b806111dc81612f1f565b915050611183565b5092915050565b6006546001600160a01b031633146112455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b61124f6000612290565b565b6006546001600160a01b031633146112ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600e55565b606060006112bd83611101565b905060008167ffffffffffffffff8111156112da576112da612a8d565b604051908082528060200260200182016040528015611303578160200160208202803683370190505b50905060005b8281101561134a5761131b8582610bf0565b82828151811061132d5761132d612ef3565b60209081029190910101528061134281612f1f565b915050611309565b509392505050565b6060600180546108bd90612eb9565b6006546001600160a01b031633146113bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6014805460ff19811660ff90911615179055565b600260115460ff1660028111156113e8576113e8612c08565b146114355760405162461bcd60e51b815260206004820152601660248201527f7075626c69632073616c65206e6f74206163746976650000000000000000000060448201526064016109b9565b3332146114845760405162461bcd60e51b815260206004820152601560248201527f6e6f2070726f7879207472616e73616374696f6e73000000000000000000000060448201526064016109b9565b600b548111156114d65760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e74207065722073657373696f6e20657863656564656400000060448201526064016109b9565b6007546114e39082613047565b3410156115325760405162461bcd60e51b815260206004820152601360248201527f6e6f7420656e6f756768204554482073656e740000000000000000000000000060448201526064016109b9565b600061153d60035490565b60095490915061154d8383613066565b111561159b5760405162461bcd60e51b815260206004820152601660248201527f6d6178204e4654206c696d69742065786365656465640000000000000000000060448201526064016109b9565b60005b82811015610b0a576115b9336115b48385613066565b6122fa565b60010161159e565b610e4233838361243a565b600160115460ff1660028111156115e5576115e5612c08565b146116325760405162461bcd60e51b815260206004820152601260248201527f70726573616c65206e6f7420616374697665000000000000000000000000000060448201526064016109b9565b600381106116a85760405162461bcd60e51b815260206004820152602560248201527f6d61782070726573616c65206d696e74207065722073657373696f6e2065786360448201527f656564656400000000000000000000000000000000000000000000000000000060648201526084016109b9565b336000908152600c60205260409020546003906116c6908390613066565b106117135760405162461bcd60e51b815260206004820152601860248201527f6d6178207065722061646472657373206578636565646564000000000000000060448201526064016109b9565b600e546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152611752918491603401610b4e565b61179e5760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642073656e6465722070726f6f6600000000000000000000000060448201526064016109b9565b6008546117ab9082613047565b3410156117fa5760405162461bcd60e51b815260206004820152601360248201527f6e6f7420656e6f756768204554482073656e740000000000000000000000000060448201526064016109b9565b600061180560035490565b6009549091506118158383613066565b11156118635760405162461bcd60e51b815260206004820152601d60248201527f6d617820636f6c6c656374696f6e206c696d697420657863656564656400000060448201526064016109b9565b336000908152600c602052604081208054849290611882908490613066565b90915550600090505b828110156118a9576118a1336115b48385613066565b60010161188b565b50505050565b6006546001600160a01b031633146119095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6000811180156119315750600a54611922906001613066565b600d5461192f9083613066565b105b61197d5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d60448201526064016109b9565b600061198860035490565b905081600d546119989190613066565b600d5560005b828110156118a9576119b9846119b48385613066565b612508565b806119c381612f1f565b91505061199e565b6006546001600160a01b03163314611a255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611a693383612022565b611adb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b9565b6118a984848484612522565b6060611af282611f3c565b611b645760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109b9565b60145460ff1615611bcb57600060128054611b7e90612eb9565b905011611b9a57604051806020016040528060008152506108a8565b6012611ba5836125ab565b604051602001611bb69291906130f1565b60405160208183030381529060405292915050565b600060138054611bda90612eb9565b905011611bf657604051806020016040528060008152506108a8565b6013604051602001611bb69190613116565b600f546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613122565b6001600160a01b03161480611cc457506001600160a01b03831660009081526010602052604090205460ff165b15611cd35760019150506108a8565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b03163314611d5f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b6001600160a01b038116611ddb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109b9565b611de481612290565b50565b6006546001600160a01b03163314611e415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109b9565b600791909155600855565b6012805461108090612eb9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611eec57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108a857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108a8565b600354600090821080156108a8575060006001600160a01b031660038381548110611f6957611f69612ef3565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611fd382610f60565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261201985846126e0565b14949350505050565b600061202d82611f3c565b61209f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109b9565b60006120aa83610f60565b9050806001600160a01b0316846001600160a01b031614806120e55750836001600160a01b03166120da84610940565b6001600160a01b0316145b80611cfd5750611cfd8185611c08565b826001600160a01b031661210882610f60565b6001600160a01b0316146121845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109b9565b6001600160a01b0382166121ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109b9565b61220a600082611f86565b816003828154811061221e5761221e612ef3565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166123505760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b9565b61235981611f3c565b156123a65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b9565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361249b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610e4282826040518060200160405280600081525061274c565b61252d8484846120f5565b612539848484846127d5565b6118a95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b6060816000036125ee57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612618578061260281612f1f565b91506126119050600a83613155565b91506125f2565b60008167ffffffffffffffff81111561263357612633612a8d565b6040519080825280601f01601f19166020018201604052801561265d576020820181803683370190505b5090505b8415611cfd57612672600183613169565b915061267f600a86613180565b61268a906030613066565b60f81b81838151811061269f5761269f612ef3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126d9600a86613155565b9450612661565b600081815b845181101561134a57600085828151811061270257612702612ef3565b602002602001015190508083116127285760008381526020829052604090209250612739565b600081815260208490526040902092505b508061274481612f1f565b9150506126e5565b61275683836122fa565b61276360008484846127d5565b610b0a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b60006001600160a01b0384163b1561296b576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612832903390899088908890600401613194565b6020604051808303816000875af192505050801561286d575060408051601f3d908101601f1916820190925261286a918101906131d0565b60015b612920573d80801561289b576040519150601f19603f3d011682016040523d82523d6000602084013e6128a0565b606091505b5080516000036129185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b9565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611cfd565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611de457600080fd5b6000602082840312156129b657600080fd5b81356129c181612976565b9392505050565b60005b838110156129e35781810151838201526020016129cb565b838111156118a95750506000910152565b60008151808452612a0c8160208601602086016129c8565b601f01601f19169290920160200192915050565b6020815260006129c160208301846129f4565b600060208284031215612a4557600080fd5b5035919050565b6001600160a01b0381168114611de457600080fd5b60008060408385031215612a7457600080fd5b8235612a7f81612a4c565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612acc57612acc612a8d565b604052919050565b600082601f830112612ae557600080fd5b8135602067ffffffffffffffff821115612b0157612b01612a8d565b8160051b612b10828201612aa3565b9283528481018201928281019087851115612b2a57600080fd5b83870192505b84831015612b4957823582529183019190830190612b30565b979650505050505050565b600060208284031215612b6657600080fd5b813567ffffffffffffffff811115612b7d57600080fd5b611cfd84828501612ad4565b600080600060608486031215612b9e57600080fd5b8335612ba981612a4c565b92506020840135612bb981612a4c565b929592945050506040919091013590565b600060208284031215612bdc57600080fd5b8135600381106129c157600080fd5b600060208284031215612bfd57600080fd5b81356129c181612a4c565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c4057634e487b7160e01b600052602160045260246000fd5b91905290565b600067ffffffffffffffff831115612c6057612c60612a8d565b612c736020601f19601f86011601612aa3565b9050828152838383011115612c8757600080fd5b828260208301376000602084830101529392505050565b600082601f830112612caf57600080fd5b6129c183833560208501612c46565b60008060408385031215612cd157600080fd5b823567ffffffffffffffff80821115612ce957600080fd5b612cf586838701612c9e565b93506020850135915080821115612d0b57600080fd5b50612d1885828601612c9e565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612d5a57835183529284019291840191600101612d3e565b50909695505050505050565b60008060408385031215612d7957600080fd5b8235612d8481612a4c565b915060208301358015158114612d9957600080fd5b809150509250929050565b60008060408385031215612db757600080fd5b823567ffffffffffffffff811115612dce57600080fd5b612dda85828601612ad4565b95602094909401359450505050565b60008060008060808587031215612dff57600080fd5b8435612e0a81612a4c565b93506020850135612e1a81612a4c565b925060408501359150606085013567ffffffffffffffff811115612e3d57600080fd5b8501601f81018713612e4e57600080fd5b612e5d87823560208401612c46565b91505092959194509250565b60008060408385031215612e7c57600080fd5b8235612e8781612a4c565b91506020830135612d9981612a4c565b60008060408385031215612eaa57600080fd5b50508035926020909101359150565b600181811c90821680612ecd57607f821691505b602082108103612eed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203612f3257612f32612f09565b5060010190565b601f821115610b0a57600081815260208120601f850160051c81016020861015612f605750805b601f850160051c820191505b81811015612f7f57828155600101612f6c565b505050505050565b815167ffffffffffffffff811115612fa157612fa1612a8d565b612fb581612faf8454612eb9565b84612f39565b602080601f831160018114612fea5760008415612fd25750858301515b600019600386901b1c1916600185901b178555612f7f565b600085815260208120601f198616915b8281101561301957888601518255948401946001909101908401612ffa565b50858210156130375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081600019048311821515161561306157613061612f09565b500290565b6000821982111561307957613079612f09565b500190565b6000815461308b81612eb9565b600182811680156130a357600181146130b8576130e7565b60ff19841687528215158302870194506130e7565b8560005260208060002060005b858110156130de5781548a8201529084019082016130c5565b50505082870194505b5050505092915050565b60006130fd828561307e565b835161310d8183602088016129c8565b01949350505050565b60006129c1828461307e565b60006020828403121561313457600080fd5b81516129c181612a4c565b634e487b7160e01b600052601260045260246000fd5b6000826131645761316461313f565b500490565b60008282101561317b5761317b612f09565b500390565b60008261318f5761318f61313f565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131c660808301846129f4565b9695505050505050565b6000602082840312156131e257600080fd5b81516129c18161297656fea264697066735822122062d75f1a26a715d2a13934cee95f750299cd324c8fe192034651b09115486d6864736f6c634300080f0033
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.