ERC-1155
Overview
Max Total Supply
261 CC
Holders
92
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ClubCards
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Author: ClubCards // Developed by Max J. Rux // Dev Twitter: @Rux_eth pragma solidity ^0.8.7; // openzeppelin imports import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; // local imports import "../interfaces/IClubCards.sol"; import "./CCEditions.sol"; contract ClubCards is ReentrancyGuard, CCEditions, IClubCards { using Address for address; using Strings for uint256; string public constant name = "ClubCards"; string public constant symbol = "CC"; string private conURI; uint256 private _maxMint = 10; bool private _allStatus = false; address private dev; constructor(address _dev) ERC1155("") { dev = _dev; } function mintCard(uint256 numMints, uint256 waveId) external payable override nonReentrant { prepMint(false, numMints, waveId); uint256 ti = totalSupply(); if (numMints == 1) { _mint(_msgSender(), ti, 1, abi.encodePacked(waveId.toString())); } else { uint256[] memory mints = new uint256[](numMints); uint256[] memory amts = new uint256[](numMints); for (uint256 i = 0; i < numMints; i++) { mints[i] = ti + i; amts[i] = 1; } _mintBatch( _msgSender(), mints, amts, abi.encodePacked(waveId.toString()) ); } _checkReveal(waveId); delete ti; } function whitelistMint( uint256 numMints, uint256 waveId, uint256 nonce, uint256 timestamp, bytes calldata signature ) external payable override nonReentrant { prepMint(true, numMints, waveId); address sender = _msgSender(); address recovered = ECDSA.recover( ECDSA.toEthSignedMessageHash( keccak256( abi.encode(sender, numMints, waveId, nonce, timestamp) ) ), signature ); require( recovered == admin() || recovered == owner(), "Not authorized to mint" ); uint256 ti = totalSupply(); if (numMints == 1) { _mint(_msgSender(), ti, 1, abi.encodePacked((waveId.toString()))); } else { uint256[] memory mints = new uint256[](numMints); uint256[] memory amts = new uint256[](numMints); for (uint256 i = 0; i < numMints; i++) { mints[i] = ti + i; amts[i] = 1; } _mintBatch( _msgSender(), mints, amts, abi.encodePacked(waveId.toString()) ); } _checkReveal(waveId); delete ti; } // claim txs will revert if any tokenids are not claimable function claim( uint256[] memory tokenIds, uint256[] memory amounts, uint256 nonce, uint256 timestamp, bytes memory signature ) external payable override nonReentrant { address sender = _msgSender(); address recovered = ECDSA.recover( ECDSA.toEthSignedMessageHash( keccak256( abi.encode(sender, tokenIds, amounts, nonce, timestamp) ) ), signature ); require( tokenIds.length > 0 && tokenIds.length == amounts.length, "Array lengths are invalid" ); require( recovered == admin() || recovered == owner(), "Not authorized to claim" ); _mintBatch(sender, tokenIds, amounts, ""); delete recovered; delete sender; } function manualSetBlock(uint256 waveId) external onlyTeam { _setWaveStartIndexBlock(waveId); } function setAllStatus(bool newAllStatus) external onlyTeam { _allStatus = newAllStatus; } function setContractURI(string memory newContractURI) external onlyTeam { conURI = newContractURI; } function withdraw() external payable onlyOwner { uint256 _each = address(this).balance / 100; require(payable(owner()).send(_each * 85)); require(payable(dev).send(_each * 15)); } function allStatus() public view override returns (bool) { return _allStatus; } function uri(uint256 id) public view override(ERC1155, IClubCards) returns (string memory) { return _getURI(id); } function contractURI() public view override returns (string memory) { return conURI; } function prepMint( bool privateSale, uint256 numMints, uint256 waveId ) private { require(_waveExists(waveId), "Wave does not exist"); ( , uint256 MAX_SUPPLY, , uint256 price, , , bool status, bool whitelistStatus, uint256 circSupply, , ) = getWave(waveId); require(whitelistStatus == privateSale, "Not authorized to mint"); require(allStatus() && status, "Sale is paused"); require(msg.value >= price * numMints, "Not enough ether sent"); require(numMints <= _maxMint && numMints > 0, "Invalid mint amount"); require( numMints + circSupply <= MAX_SUPPLY, "New mint exceeds maximum supply allowed for wave" ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // Author: Club Cards // Developed by Max J. Rux pragma solidity ^0.8.7; interface IClubCards { function mintCard(uint256 numMints, uint256 waveId) external payable; function whitelistMint( uint256 numMints, uint256 waveId, uint256 nonce, uint256 timestamp, bytes calldata signature ) external payable; function claim( uint256[] memory tokenIds, uint256[] memory amounts, uint256 nonce, uint256 timestamp, bytes memory signature ) external payable; function allStatus() external view returns (bool); function uri(uint256 id) external view returns (string memory); function contractURI() external view returns (string memory); }
// SPDX-License-Identifier: MIT // Author: ClubCards // Developed by Max J. Rux // Dev Twitter: @Rux_eth pragma solidity ^0.8.7; // openzeppelin imports import "./Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // local imports import "../interfaces/ICCEditions.sol"; abstract contract CCEditions is ERC1155, Ownable, ICCEditions { using Strings for uint256; /* * Tracks waves. */ mapping(uint256 => uint256) private _waves; /* * Tracks claims. */ mapping(uint256 => uint72) private _claims; /* * Stores the provenance hash of each wave. * * Read about the importance of provenance hashes in * NFTs here: https://medium.com/coinmonks/the-elegance-of-the-nft-provenance-hash-solution-823b39f99473 */ mapping(uint256 => string) private waveProv; mapping(uint256 => string) private waveURI; mapping(uint256 => string) private claimURI; /* * Stores edition information for each tokenId * * Each index in tokens represents a tokenId. * * byte 1: Boolean to determine if a tokenId associates with a Wave * or Claim. * bytes 2-3: EditionId(waveId/claimId) * bytes 4-5: TokenIdOfEdition */ uint40[] private tokens; // track authorized transaction nonces mapping(address => uint256) private _authTxNonce; function setWaveStartIndex(uint256 waveId) external override { ( , uint256 MAX_SUPPLY, , , uint256 startIndex, uint256 startIndexBlock, , , , , ) = getWave(waveId); require( startIndexBlock != 0, "CCEditions: Starting index block not set" ); require(startIndex == 0, "CCEditions: Starting index already set"); bytes32 blockHash = blockhash(startIndexBlock); uint256 si = uint256(blockHash) % MAX_SUPPLY; if (blockHash == bytes32(0)) { si = uint256(blockhash(block.number - 1)) % MAX_SUPPLY; } if (si == 0) { si += 1; } _waves[waveId] = _waves[waveId] |= si << 144; emit WaveStartIndexSet(waveId, si); delete si; delete blockHash; } function setWave( uint256 waveId, uint256 MAX_SUPPLY, uint256 REVEAL_TIMESTAMP, uint256 price, bool status, bool whitelistStatus, string calldata provHash, string calldata _waveURI ) external onlyTeam { require(!_waveExists(waveId), "CCEditions: Wave already exists"); require( waveId <= type(uint8).max && MAX_SUPPLY <= type(uint16).max && REVEAL_TIMESTAMP <= type(uint56).max && price <= type(uint64).max, "CCEditions: Value is too big!" ); uint256 wave = waveId; wave |= MAX_SUPPLY << 8; wave |= REVEAL_TIMESTAMP << 24; wave |= price << 80; wave |= uint256(status ? 1 : 0) << 224; wave |= uint256(whitelistStatus ? 1 : 0) << 232; _waves[waveId] = wave; waveProv[waveId] = provHash; waveURI[waveId] = _waveURI; } function setWavePrice(uint256 waveId, uint256 newPrice) external onlyTeam { require(_waveExists(waveId), "CCEditions: Wave does not exist"); require(newPrice <= type(uint64).max, "CCEditions: Too high"); ( , , , , uint256 startIndex, uint256 startIndexBlock, bool status, bool whitelistStatus, uint256 supply, , ) = getWave(waveId); uint256 wave = uint256(uint88(_waves[waveId])); wave |= newPrice << 80; wave |= startIndex << 144; wave |= startIndexBlock << 160; wave |= uint256(status ? 1 : 0) << 224; wave |= uint256(whitelistStatus ? 1 : 0) << 232; wave |= supply << 240; _waves[waveId] = wave; } function setWaveStatus(uint256 waveId, bool newStatus) external onlyTeam { require(_waveExists(waveId), "CCEditions: Wave does not exist"); ( , , , uint256 price, uint256 startIndex, uint256 startIndexBlock, , bool whitelistStatus, uint256 supply, , ) = getWave(waveId); uint256 wave = uint256(uint88(_waves[waveId])); wave |= price << 80; wave |= startIndex << 144; wave |= startIndexBlock << 160; wave |= uint256(newStatus ? 1 : 0) << 224; wave |= uint256(whitelistStatus ? 1 : 0) << 232; wave |= supply << 240; _waves[waveId] = wave; } function setWaveWLStatus(uint256 waveId, bool newWLStatus) external onlyTeam { require(_waveExists(waveId), "CCEditions: Wave does not exist"); ( , , , uint256 price, uint256 startIndex, uint256 startIndexBlock, bool status, , uint256 supply, , ) = getWave(waveId); uint256 wave = uint256(uint88(_waves[waveId])); wave |= price << 80; wave |= startIndex << 144; wave |= startIndexBlock << 160; wave |= uint256(status ? 1 : 0) << 224; wave |= uint256(newWLStatus ? 1 : 0) << 232; wave |= supply << 240; _waves[waveId] = wave; } function setWaveURI(uint256 waveId, string memory newURI) external onlyTeam { waveURI[waveId] = newURI; } function setClaimURI(uint256 claimId, string memory newURI) external onlyTeam { require(_claimExists(claimId), "ClaimId does not exist"); require(claimId > 0, "ClaimId cannot be zero"); claimURI[claimId] = newURI; } function setClaimStatus(uint256 claimId, bool newStatus) external onlyTeam { require(_claimExists(claimId), "ClaimId does not exist"); require(claimId > 0, "ClaimId cannot be zero"); (, , , uint256 supply, ) = getClaim(claimId); uint256 claim = uint40(_claims[claimId]); claim |= uint8(newStatus ? 1 : 0) << 40; claim |= supply << 48; _claims[claimId] = uint72(claim); } function setClaim( uint256 claimId, string memory uri, bool status ) external onlyTeam { require(!_claimExists(claimId), "CCEditions: Claim already exists"); uint256 ti = totalSupply(); require( claimId <= type(uint16).max && ti <= type(uint24).max, "CCEditions: Value is too big!" ); uint256 claim = claimId; claim |= ti << 16; claim |= uint256(status ? 1 : 0) << 40; _claims[claimId] = uint72(claim); uint256 token = 1; token |= uint256(claimId << 8); tokens.push(uint40(token)); claimURI[claimId] = uri; emit ClaimSet(ti, claimId); } function getClaim(uint256 claimId) public view override returns ( uint256 CLAIM_INDEX, uint256 TOKEN_INDEX, bool status, uint256 supply, string memory uri ) { require(_claimExists(claimId), "CCEditions: Claim does not exist"); uint256 claim = _claims[claimId]; CLAIM_INDEX = uint16(claim); TOKEN_INDEX = uint24(claim >> 16); status = uint8(claim >> 40) == 1; supply = uint24(claim >> 48); uri = claimURI[claimId]; } function authTxNonce(address _address) public view override returns (uint256) { return _authTxNonce[_address]; } function getToken(uint256 id) public view override returns ( bool isClaim, uint256 editionId, uint256 tokenIdOfEdition ) { require(_exists(id), "Token does not exist"); (isClaim, editionId, tokenIdOfEdition) = _getToken(tokens[id]); } function totalSupply() public view override returns (uint256) { return tokens.length; } function getWave(uint256 waveId) public view override returns ( uint256 WAVE_INDEX, uint256 MAX_SUPPLY, uint256 REVEAL_TIMESTAMP, uint256 price, uint256 startIndex, uint256 startIndexBlock, bool status, bool whitelistStatus, uint256 supply, string memory provHash, string memory _waveURI ) { require(_waveExists(waveId), "CCEditions: Wave does not exist"); uint256 wave = _waves[waveId]; WAVE_INDEX = uint8(wave); MAX_SUPPLY = uint16(wave >> 8); REVEAL_TIMESTAMP = uint56(wave >> 24); price = uint64(wave >> 80); startIndex = uint16(wave >> 144); startIndexBlock = uint64(wave >> 160); status = uint8(wave >> 224) == 1; whitelistStatus = uint8(wave >> 232) == 1; supply = uint16(wave >> 240); provHash = waveProv[waveId]; _waveURI = waveURI[waveId]; } // check if tokenId exists function _exists(uint256 id) internal view returns (bool) { return id >= 0 && id < totalSupply(); } function _setWaveStartIndexBlock(uint256 waveId) internal { ( , , , uint256 price, uint256 startIndex, uint256 startIndexBlock, bool status, bool whitelistStatus, uint256 supply, , ) = getWave(waveId); if (startIndexBlock == 0) { uint256 bn = block.number; uint256 wave = uint256(uint88(_waves[waveId])); wave |= price << 80; wave |= startIndex << 144; wave |= bn << 160; wave |= uint256(status ? 1 : 0) << 224; wave |= uint256(whitelistStatus ? 1 : 0) << 232; wave |= supply << 240; _waves[waveId] = wave; emit WaveStartIndexBlockSet(waveId, bn); } } function _checkReveal(uint256 waveId) internal { ( , uint256 MAX_SUPPLY, // 16 uint256 REVEAL_TIMESTAMP, // 64 , uint256 startIndex, // 8 , , , uint256 supply, , ) = getWave(waveId); if ( startIndex == 0 && ((supply == MAX_SUPPLY) || block.timestamp >= REVEAL_TIMESTAMP) ) { _setWaveStartIndexBlock(waveId); } } function _getURI(uint256 id) internal view returns (string memory) { require(_exists(id), "CCEditions: TokenId does not exist"); (bool isClaim, uint256 editionId, uint256 tokenIdOfEdition) = _getToken( tokens[id] ); if (isClaim) { return claimURI[editionId]; } else { return string( abi.encodePacked( waveURI[editionId], tokenIdOfEdition.toString() ) ); } } // check if a wave exists function _waveExists(uint256 waveId) internal view returns (bool) { return _waves[waveId] != 0; } // check if a claim exists function _claimExists(uint256 claimId) internal view returns (bool) { return _claims[claimId] != 0; } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { uint256 edId = st2num(string(data)); if (edId == 0) { for (uint256 i = 0; i < ids.length; i++) { (bool isClaim, uint256 claimId, ) = _getToken( tokens[ids[i]] ); require(isClaim, "Token is not claimable"); _increaseClaimSupply(claimId, amounts[i]); } emit Claimed(to, _authTxNonce[to], ids, amounts); } else { for (uint256 i = 0; i < ids.length; i++) { require(!_exists(ids[i]), "Token already exists"); require(amounts[i] == 1, "Invalid mint amount"); } if (_increaseWaveSupply(edId, ids.length)) { _authTxNonce[to]++; emit WhitelistMinted( to, ids.length, edId, _authTxNonce[to] ); } } } } function _getToken(uint256 tokenData) private pure returns ( bool isClaim, uint256 editionId, uint256 tokenIdOfEdition ) { isClaim = uint8(tokenData) == 1; editionId = uint16(tokenData >> 8); tokenIdOfEdition = uint16(tokenData >> 24); } function _increaseClaimSupply(uint256 claimId, uint256 amount) private { (, , bool status, uint256 supply, ) = getClaim(claimId); require(status, "Claim is paused"); uint256 temp = _claims[claimId]; temp = uint256(uint48(temp)); temp |= uint256(supply + amount) << 48; _claims[claimId] = uint72(temp); } function st2num(string memory numString) private pure returns (uint256) { uint256 val = 0; bytes memory stringBytes = bytes(numString); for (uint256 i = 0; i < stringBytes.length; i++) { uint256 exp = stringBytes.length - i; bytes1 ival = stringBytes[i]; uint8 uval = uint8(ival); uint256 jval = uval - uint256(0x30); val += (uint256(jval) * (10**(exp - 1))); } return val; } function _increaseWaveSupply(uint256 waveId, uint256 numMints) private returns (bool) { (, , , , , , , bool whitelistStatus, uint256 supply, , ) = getWave( waveId ); uint256 temp = _waves[waveId]; temp = uint256(uint240(temp)); _waves[waveId] = temp |= uint256(supply + numMints) << 240; for (uint256 i = 0; i < numMints; i++) { temp = 0; temp |= uint24(waveId << 8); temp |= uint40((supply + i) << 24); tokens.push(uint40(temp)); } return whitelistStatus; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; address private _admin; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); event AdminChanged(address indexed previousAdmin, address indexed newAdmin); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); _setAdmin(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } // returns the address of the current admin function admin() public view virtual returns (address) { return _admin; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } modifier onlyTeam() { require( msg.sender == _admin || msg.sender == owner(), "Not authorized" ); _; } /** * @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); } function setAdmin(address newAdmin) public virtual onlyOwner { require( newAdmin != address(0), "Ownable: new admin is the zero address" ); _setAdmin(newAdmin); } /** * @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); } function _setAdmin(address newAdmin) internal virtual { address oldAdmin = _admin; _admin = newAdmin; emit AdminChanged(oldAdmin, newAdmin); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @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, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // Author: Club Cards // Developed by Max J. Rux pragma solidity ^0.8.7; interface ICCEditions { event Claimed( address indexed _address, uint256 authTxNonce, uint256[] ids, uint256[] amounts ); event WhitelistMinted( address indexed _address, uint256 numMints, uint256 waveId, uint256 authTxNonce ); event ClaimSet(uint256 indexed tokenIndex, uint256 indexed claimId); event WaveStartIndexBlockSet( uint256 indexed waveId, uint256 startIndexBlock ); event WaveStartIndexSet(uint256 indexed waveId, uint256 startIndex); function setWaveStartIndex(uint256 waveId) external; function getClaim(uint256 claimId) external view returns ( uint256 CLAIM_INDEX, uint256 TOKEN_INDEX, bool status, uint256 supply, string memory uri ); function authTxNonce(address _address) external view returns (uint256); function getToken(uint256 id) external view returns ( bool isClaim, uint256 editionId, uint256 tokenIdOfEdition ); function totalSupply() external view returns (uint256); function getWave(uint256 waveId) external view returns ( uint256 WAVE_INDEX, uint256 MAX_SUPPLY, uint256 REVEAL_TIMESTAMP, uint256 price, uint256 startIndex, uint256 startIndexBlock, bool status, bool whitelistStatus, uint256 supply, string memory provHash, string memory _waveURI ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_dev","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"claimId","type":"uint256"}],"name":"ClaimSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"authTxNonce","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"Claimed","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"waveId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startIndexBlock","type":"uint256"}],"name":"WaveStartIndexBlockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"waveId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startIndex","type":"uint256"}],"name":"WaveStartIndexSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"numMints","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"waveId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"authTxNonce","type":"uint256"}],"name":"WhitelistMinted","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"authTxNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimId","type":"uint256"}],"name":"getClaim","outputs":[{"internalType":"uint256","name":"CLAIM_INDEX","type":"uint256"},{"internalType":"uint256","name":"TOKEN_INDEX","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getToken","outputs":[{"internalType":"bool","name":"isClaim","type":"bool"},{"internalType":"uint256","name":"editionId","type":"uint256"},{"internalType":"uint256","name":"tokenIdOfEdition","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"}],"name":"getWave","outputs":[{"internalType":"uint256","name":"WAVE_INDEX","type":"uint256"},{"internalType":"uint256","name":"MAX_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"REVEAL_TIMESTAMP","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"startIndexBlock","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"bool","name":"whitelistStatus","type":"bool"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"string","name":"provHash","type":"string"},{"internalType":"string","name":"_waveURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"}],"name":"manualSetBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numMints","type":"uint256"},{"internalType":"uint256","name":"waveId","type":"uint256"}],"name":"mintCard","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newAllStatus","type":"bool"}],"name":"setAllStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimId","type":"uint256"},{"internalType":"bool","name":"newStatus","type":"bool"}],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimId","type":"uint256"},{"internalType":"string","name":"newURI","type":"string"}],"name":"setClaimURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"uint256","name":"MAX_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"REVEAL_TIMESTAMP","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"bool","name":"whitelistStatus","type":"bool"},{"internalType":"string","name":"provHash","type":"string"},{"internalType":"string","name":"_waveURI","type":"string"}],"name":"setWave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWavePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"}],"name":"setWaveStartIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"bool","name":"newStatus","type":"bool"}],"name":"setWaveStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"string","name":"newURI","type":"string"}],"name":"setWaveURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"bool","name":"newWLStatus","type":"bool"}],"name":"setWaveWLStatus","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numMints","type":"uint256"},{"internalType":"uint256","name":"waveId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600a600e55600f805460ff191690553480156200002057600080fd5b5060405162004ea938038062004ea9833981016040819052620000439162000208565b60408051602081019091526000808252600190556200006281620000a5565b506200006e33620000be565b620000793362000110565b600f80546001600160a01b0390921661010002610100600160a81b031990921691909117905562000277565b8051620000ba90600390602084019062000162565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f90600090a35050565b82805462000170906200023a565b90600052602060002090601f016020900481019282620001945760008555620001df565b82601f10620001af57805160ff1916838001178555620001df565b82800160010185558215620001df579182015b82811115620001df578251825591602001919060010190620001c2565b50620001ed929150620001f1565b5090565b5b80821115620001ed5760008155600101620001f2565b6000602082840312156200021b57600080fd5b81516001600160a01b03811681146200023357600080fd5b9392505050565b600181811c908216806200024f57607f821691505b602082108114156200027157634e487b7160e01b600052602260045260246000fd5b50919050565b614c2280620002876000396000f3fe6080604052600436106102245760003560e01c806378f8ac1211610123578063c6664180116100ab578063e985e9c51161006f578063e985e9c5146106bd578063f029da5c14610706578063f242432a14610719578063f2fde38b14610739578063f851a4401461075957600080fd5b8063c666418014610601578063df215f3014610621578063df3a97ea14610658578063e4b50cb81461066b578063e8a3d485146106a857600080fd5b8063a22cb465116100f2578063a22cb46514610569578063a3b9871a14610589578063aa4246b7146105a9578063ab96a83d146105c9578063b0691427146105e957600080fd5b806378f8ac12146104c95780638da5cb5b146104e9578063938e3d7b1461051b57806395d89b411461053b57600080fd5b80632eb2c2d6116101b15780635aef2447116101755780635aef244714610423578063704b6c021461045457806370ee0c5714610474578063715018a614610494578063725723d7146104a957600080fd5b80632eb2c2d61461038e5780633ccfd60b146103ae5780634a004a69146103b65780634e1273f4146103d657806353f6bd701461040357600080fd5b80630e427f17116101f85780630e427f17146102f05780630e89341c1461030357806318160ddd146103235780631a1bcf67146103385780632073a1621461035857600080fd5b8062fdd58e1461022957806301ffc9a71461025c57806306fdde031461028c5780630c39e34e146102ce575b600080fd5b34801561023557600080fd5b50610249610244366004613ef3565b610777565b6040519081526020015b60405180910390f35b34801561026857600080fd5b5061027c610277366004614089565b610813565b6040519015158152602001610253565b34801561029857600080fd5b506102c160405180604001604052806009815260200168436c7562436172647360b81b81525081565b6040516102539190614576565b3480156102da57600080fd5b506102ee6102e9366004614110565b610863565b005b6102ee6102fe3660046141c5565b61097a565b34801561030f57600080fd5b506102c161031e3660046140f7565b610b38565b34801561032f57600080fd5b50600b54610249565b34801561034457600080fd5b506102ee6103533660046140f7565b610b43565b34801561036457600080fd5b50610249610373366004613d67565b6001600160a01b03166000908152600c602052604090205490565b34801561039a57600080fd5b506102ee6103a9366004613dbc565b610b8e565b6102ee610c25565b3480156103c257600080fd5b506102ee6103d13660046140f7565b610ce9565b3480156103e257600080fd5b506103f66103f1366004613f1d565b610e62565b604051610253919061453e565b34801561040f57600080fd5b506102ee61041e36600461416f565b610f8b565b34801561042f57600080fd5b5061044361043e3660046140f7565b6111a3565b6040516102539594939291906147e9565b34801561046057600080fd5b506102ee61046f366004613d67565b6112fc565b34801561048057600080fd5b506102ee61048f3660046141e7565b611394565b3480156104a057600080fd5b506102ee61154b565b3480156104b557600080fd5b506102ee6104c43660046141c5565b611581565b3480156104d557600080fd5b506102ee6104e4366004614133565b6116bb565b3480156104f557600080fd5b506004546001600160a01b03165b6040516001600160a01b039091168152602001610253565b34801561052757600080fd5b506102ee6105363660046140c3565b61171e565b34801561054757600080fd5b506102c160405180604001604052806002815260200161434360f01b81525081565b34801561057557600080fd5b506102ee610584366004613ec9565b611774565b34801561059557600080fd5b506102ee6105a4366004614110565b61177f565b3480156105b557600080fd5b506102ee6105c4366004614133565b6118e6565b3480156105d557600080fd5b506102ee6105e436600461406e565b6119ea565b3480156105f557600080fd5b50600f5460ff1661027c565b34801561060d57600080fd5b506102ee61061c366004614110565b611a3c565b34801561062d57600080fd5b5061064161063c3660046140f7565b611b11565b6040516102539b9a99989796959493929190614816565b6102ee610666366004613fed565b611d12565b34801561067757600080fd5b5061068b6106863660046140f7565b611ec4565b604080519315158452602084019290925290820152606001610253565b3480156106b457600080fd5b506102c1611f80565b3480156106c957600080fd5b5061027c6106d8366004613d89565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102ee6107143660046142a1565b612012565b34801561072557600080fd5b506102ee610734366004613e65565b612288565b34801561074557600080fd5b506102ee610754366004613d67565b61230f565b34801561076557600080fd5b506005546001600160a01b0316610503565b60006001600160a01b0383166107e85760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061084457506001600160e01b031982166303a24d0760e21b145b8061080d57506301ffc9a760e01b6001600160e01b031983161461080d565b6005546001600160a01b031633148061088657506004546001600160a01b031633145b6108a25760405162461bcd60e51b81526004016107df9061478c565b6000828152600660205260409020546108cd5760405162461bcd60e51b81526004016107df90614695565b60008060008060006108de87611b11565b50509850509750975097509750505050600060066000898152602001908152602001600020546001600160581b03169050605086901b81179050609085901b8117905060a084901b8117905060e08361093857600061093b565b60015b60ff16901b1760e88761094f576000610952565b60015b6000998a526006602052604090992060ff909916901b1760f09190911b179095555050505050565b6002600054141561099d5760405162461bcd60e51b81526004016107df90614755565b600260009081556109af9083836123a7565b60006109ba600b5490565b905082600114156109fe576109f9338260016109d5866125d2565b6040516020016109e5919061438d565b6040516020818303038152906040526126d7565b610b25565b6000836001600160401b03811115610a1857610a18614b1b565b604051908082528060200260200182016040528015610a41578160200160208202803683370190505b5090506000846001600160401b03811115610a5e57610a5e614b1b565b604051908082528060200260200182016040528015610a87578160200160208202803683370190505b50905060005b85811015610aee57610a9f81856148b0565b838281518110610ab157610ab1614b05565b6020026020010181815250506001828281518110610ad157610ad1614b05565b602090810291909101015280610ae681614a94565b915050610a8d565b50610b22338383610afe886125d2565b604051602001610b0e919061438d565b6040516020818303038152906040526127af565b50505b610b2e8261290a565b5050600160005550565b606061080d8261294f565b6005546001600160a01b0316331480610b6657506004546001600160a01b031633145b610b825760405162461bcd60e51b81526004016107df9061478c565b610b8b81612aba565b50565b6001600160a01b038516331480610baa5750610baa85336106d8565b610c115760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107df565b610c1e8585858585612baa565b5050505050565b6004546001600160a01b03163314610c4f5760405162461bcd60e51b81526004016107df90614660565b6000610c5c6064476148c8565b9050610c706004546001600160a01b031690565b6001600160a01b03166108fc610c878360556149c7565b6040518115909202916000818181858888f19350505050610ca757600080fd5b600f805461010090046001600160a01b0316906108fc90610cc99084906149c7565b6040518115909202916000818181858888f19350505050610b8b57600080fd5b6000806000610cf784611b11565b50505050509550955050509350508060001415610d675760405162461bcd60e51b815260206004820152602860248201527f434345646974696f6e733a205374617274696e6720696e64657820626c6f636b604482015267081b9bdd081cd95d60c21b60648201526084016107df565b8115610dc45760405162461bcd60e51b815260206004820152602660248201527f434345646974696f6e733a205374617274696e6720696e64657820616c726561604482015265191e481cd95d60d21b60648201526084016107df565b80406000610dd28583614aaf565b905081610df35784610de56001436149e6565b610df0919040614aaf565b90505b80610e0657610e036001826148b0565b90505b600086815260066020526040908190208054609084901b1790555186907f8dcffd58be258b0748e69e1191a794bb098eb18e271a394c882b87b1d2f055a490610e529084815260200190565b60405180910390a2505050505050565b60608151835114610ec75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107df565b600083516001600160401b03811115610ee257610ee2614b1b565b604051908082528060200260200182016040528015610f0b578160200160208202803683370190505b50905060005b8451811015610f8357610f56858281518110610f2f57610f2f614b05565b6020026020010151858381518110610f4957610f49614b05565b6020026020010151610777565b828281518110610f6857610f68614b05565b6020908102919091010152610f7c81614a94565b9050610f11565b509392505050565b6005546001600160a01b0316331480610fae57506004546001600160a01b031633145b610fca5760405162461bcd60e51b81526004016107df9061478c565b6000838152600760205260409020546001600160481b03161561102f5760405162461bcd60e51b815260206004820181905260248201527f434345646974696f6e733a20436c61696d20616c72656164792065786973747360448201526064016107df565b600061103a600b5490565b905061ffff8411801590611051575062ffffff8111155b61109d5760405162461bcd60e51b815260206004820152601d60248201527f434345646974696f6e733a2056616c756520697320746f6f206269672100000060448201526064016107df565b601081901b84176028836110b25760006110b5565b60015b6000878152600760209081526040808320805468ffffffffffffffffff191660ff9590951690951b959095176001600160481b03811693909317909355600b805460018181019092557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96006808304919091018054919092066005026101000a64ffffffffff8181021990921660088d901b90941791821602929092179055600a8452939020865191939261116d9290880190613b03565b50604051869084907f718b6651ddf77705c1ff192eb906f851f91c10914c0c800fcd399b3d8fda6f8990600090a3505050505050565b60008060008060606111cc866000908152600760205260409020546001600160481b0316151590565b6112185760405162461bcd60e51b815260206004820181905260248201527f434345646974696f6e733a20436c61696d20646f6573206e6f7420657869737460448201526064016107df565b600086815260076020908152604080832054600a909252909120805461ffff8316975062ffffff601084901c8116975060ff602885901c166001149650603084901c1694506001600160481b039092169161127290614a2d565b80601f016020809104026020016040519081016040528092919081815260200182805461129e90614a2d565b80156112eb5780601f106112c0576101008083540402835291602001916112eb565b820191906000526020600020905b8154815290600101906020018083116112ce57829003601f168201915b505050505091505091939590929450565b6004546001600160a01b031633146113265760405162461bcd60e51b81526004016107df90614660565b6001600160a01b03811661138b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084016107df565b610b8b81612d57565b6005546001600160a01b03163314806113b757506004546001600160a01b031633145b6113d35760405162461bcd60e51b81526004016107df9061478c565b60008a8152600660205260409020541561142f5760405162461bcd60e51b815260206004820152601f60248201527f434345646974696f6e733a205761766520616c7265616479206578697374730060448201526064016107df565b60ff8a11801590611442575061ffff8911155b8015611455575066ffffffffffffff8811155b801561146857506001600160401b038711155b6114b45760405162461bcd60e51b815260206004820152601d60248201527f434345646974696f6e733a2056616c756520697320746f6f206269672100000060448201526064016107df565b605087901b601889901b60088b901b8c17171760e0876114d55760006114d8565b60015b60ff16901b1760e8866114ec5760006114ef565b60015b60008d815260066020908152604080832060ff9490941690941b949094179182905560089093529120611523908686613b87565b5060008b815260096020526040902061153d908484613b87565b505050505050505050505050565b6004546001600160a01b031633146115755760405162461bcd60e51b81526004016107df90614660565b61157f6000612da9565b565b6005546001600160a01b03163314806115a457506004546001600160a01b031633145b6115c05760405162461bcd60e51b81526004016107df9061478c565b6000828152600660205260409020546115eb5760405162461bcd60e51b81526004016107df90614695565b6001600160401b038111156116395760405162461bcd60e51b8152602060048201526014602482015273086868ac8d2e8d2dedce67440a8dede40d0d2ced60631b60448201526064016107df565b600080600080600061164a87611b11565b50509850985098509850985050505050600060066000898152602001908152602001600020546001600160581b03169050605087901b81179050609086901b8117905060a085901b8117905060e0846116a45760006116a7565b60015b60ff16901b1760e88361094f576000610952565b6005546001600160a01b03163314806116de57506004546001600160a01b031633145b6116fa5760405162461bcd60e51b81526004016107df9061478c565b6000828152600960209081526040909120825161171992840190613b03565b505050565b6005546001600160a01b031633148061174157506004546001600160a01b031633145b61175d5760405162461bcd60e51b81526004016107df9061478c565b805161177090600d906020840190613b03565b5050565b611770338383612dfb565b6005546001600160a01b03163314806117a257506004546001600160a01b031633145b6117be5760405162461bcd60e51b81526004016107df9061478c565b6000828152600760205260409020546001600160481b031661181b5760405162461bcd60e51b815260206004820152601660248201527510db185a5b525908191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107df565b600082116118645760405162461bcd60e51b8152602060048201526016602482015275436c61696d49642063616e6e6f74206265207a65726f60501b60448201526064016107df565b600061186f836111a3565b5060008781526007602052604090205490945064ffffffffff1692506028915084905061189d5760006118a0565b60015b600095865260076020526040909520805468ffffffffffffffffff191660ff96871690921b9095169190911760309290921b919091176001600160481b03161790915550565b6005546001600160a01b031633148061190957506004546001600160a01b031633145b6119255760405162461bcd60e51b81526004016107df9061478c565b6000828152600760205260409020546001600160481b03166119825760405162461bcd60e51b815260206004820152601660248201527510db185a5b525908191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107df565b600082116119cb5760405162461bcd60e51b8152602060048201526016602482015275436c61696d49642063616e6e6f74206265207a65726f60501b60448201526064016107df565b6000828152600a60209081526040909120825161171992840190613b03565b6005546001600160a01b0316331480611a0d57506004546001600160a01b031633145b611a295760405162461bcd60e51b81526004016107df9061478c565b600f805460ff1916911515919091179055565b6005546001600160a01b0316331480611a5f57506004546001600160a01b031633145b611a7b5760405162461bcd60e51b81526004016107df9061478c565b600082815260066020526040902054611aa65760405162461bcd60e51b81526004016107df90614695565b6000806000806000611ab787611b11565b50509850985050975097509750505050600060066000898152602001908152602001600020546001600160581b03169050605086901b81179050609085901b8117905060a084901b8117905060e0876116a45760006116a7565b6000806000806000806000806000606080611b3a8c600090815260066020526040902054151590565b611b565760405162461bcd60e51b81526004016107df90614695565b60008c8152600660209081526040808320546008928390529220805460ff8085169f5061ffff9385901c84169e5066ffffffffffffff601886901c169d506001600160401b03605086901c81169d50609086901c9094169b5060a085901c9093169950600160e085901c84168114995060e885901c909316909214965060f083901c955090611be490614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1090614a2d565b8015611c5d5780601f10611c3257610100808354040283529160200191611c5d565b820191906000526020600020905b815481529060010190602001808311611c4057829003601f168201915b50505050509250600960008e81526020019081526020016000208054611c8290614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611cae90614a2d565b8015611cfb5780601f10611cd057610100808354040283529160200191611cfb565b820191906000526020600020905b815481529060010190602001808311611cde57829003601f168201915b505050505091505091939597999b90929496989a50565b60026000541415611d355760405162461bcd60e51b81526004016107df90614755565b600260009081553390506000611dc6611dc08389898989604051602001611d609594939291906144f3565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b84612edc565b905060008751118015611dda575085518751145b611e265760405162461bcd60e51b815260206004820152601960248201527f4172726179206c656e677468732061726520696e76616c69640000000000000060448201526064016107df565b6005546001600160a01b0382811691161480611e4f57506004546001600160a01b038281169116145b611e9b5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420617574686f72697a656420746f20636c61696d00000000000000000060448201526064016107df565b611eb6828888604051806020016040528060008152506127af565b505060016000555050505050565b6000806000611ed284612ef8565b611f155760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016107df565b611f73600b8581548110611f2b57611f2b614b05565b90600052602060002090600691828204019190066005029054906101000a900464ffffffffff1664ffffffffff16600160ff8216149161ffff600883901c81169260181c1690565b9196909550909350915050565b6060600d8054611f8f90614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbb90614a2d565b80156120085780601f10611fdd57610100808354040283529160200191612008565b820191906000526020600020905b815481529060010190602001808311611feb57829003601f168201915b5050505050905090565b600260005414156120355760405162461bcd60e51b81526004016107df90614755565b6002600055612046600187876123a7565b604080513360208201819052918101889052606081018790526080810186905260a081018590526000906120bc906120809060c001611d60565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612edc92505050565b90506120d06005546001600160a01b031690565b6001600160a01b0316816001600160a01b031614806120fc57506004546001600160a01b038281169116145b6121415760405162461bcd60e51b8152602060048201526016602482015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b60448201526064016107df565b600061214c600b5490565b9050886001141561216c57612167338260016109d58c6125d2565b61226f565b6000896001600160401b0381111561218657612186614b1b565b6040519080825280602002602001820160405280156121af578160200160208202803683370190505b50905060008a6001600160401b038111156121cc576121cc614b1b565b6040519080825280602002602001820160405280156121f5578160200160208202803683370190505b50905060005b8b81101561225c5761220d81856148b0565b83828151811061221f5761221f614b05565b602002602001018181525050600182828151811061223f5761223f614b05565b60209081029190910101528061225481614a94565b9150506121fb565b5061226c338383610afe8e6125d2565b50505b6122788861290a565b5050600160005550505050505050565b6001600160a01b0385163314806122a457506122a485336106d8565b6123025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107df565b610c1e8585858585612f0b565b6004546001600160a01b031633146123395760405162461bcd60e51b81526004016107df90614660565b6001600160a01b03811661239e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107df565b610b8b81612da9565b6000818152600660205260409020546123f85760405162461bcd60e51b815260206004820152601360248201527215d85d9948191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016107df565b600080600080600061240986611b11565b50509850985098505050965050955050871515821515146124655760405162461bcd60e51b8152602060048201526016602482015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b60448201526064016107df565b600f5460ff1680156124745750825b6124b15760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064016107df565b6124bb87856149c7565b3410156125025760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107df565b600e5487111580156125145750600087115b6125565760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016107df565b8461256182896148b0565b11156125c85760405162461bcd60e51b815260206004820152603060248201527f4e6577206d696e742065786365656473206d6178696d756d20737570706c792060448201526f616c6c6f77656420666f72207761766560801b60648201526084016107df565b5050505050505050565b6060816125f65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612620578061260a81614a94565b91506126199050600a836148c8565b91506125fa565b6000816001600160401b0381111561263a5761263a614b1b565b6040519080825280601f01601f191660200182016040528015612664576020820181803683370190505b5090505b84156126cf576126796001836149e6565b9150612686600a86614aaf565b6126919060306148b0565b60f81b8183815181106126a6576126a6614b05565b60200101906001600160f81b031916908160001a9053506126c8600a866148c8565b9450612668565b949350505050565b6001600160a01b0384166126fd5760405162461bcd60e51b81526004016107df90614714565b3361271d8160008761270e88613023565b61271788613023565b8761306e565b60008481526001602090815260408083206001600160a01b03891684529091528120805485929061274f9084906148b0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c1e8160008787878761332b565b6001600160a01b0384166127d55760405162461bcd60e51b81526004016107df90614714565b81518351146127f65760405162461bcd60e51b81526004016107df906146cc565b336128068160008787878761306e565b60005b84518110156128a25783818151811061282457612824614b05565b60200260200101516001600087848151811061284257612842614b05565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461288a91906148b0565b9091555081905061289a81614a94565b915050612809565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128f3929190614551565b60405180910390a4610c1e81600087878787613496565b60008060008061291985611b11565b5050985050505095505094509450508160001480156129415750838114806129415750824210155b15610c1e57610c1e85612aba565b606061295a82612ef8565b6129b15760405162461bcd60e51b815260206004820152602260248201527f434345646974696f6e733a20546f6b656e496420646f6573206e6f74206578696044820152611cdd60f21b60648201526084016107df565b60008060006129cc600b8681548110611f2b57611f2b614b05565b9250925092508215612a79576000828152600a6020526040902080546129f190614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a1d90614a2d565b8015612a6a5780601f10612a3f57610100808354040283529160200191612a6a565b820191906000526020600020905b815481529060010190602001808311612a4d57829003601f168201915b50505050509350505050919050565b6000828152600960205260409020612a90826125d2565b604051602001612aa19291906143a9565b6040516020818303038152906040529350505050919050565b600080600080600080612acc87611b11565b50509850985098509850985098505050508360001415612ba15760008781526006602052604090205443906001600160581b0316605088901b17609087901b1760a082901b1760e085612b20576000612b23565b60015b60ff16901b1760e884612b37576000612b3a565b60015b60ff16901b8117905060f083901b8117905080600660008b815260200190815260200160002081905550887fc45999a4382887613cb500f0aa968546383f3e9e8c6f1c872f6f6a33adb3769e83604051612b9691815260200190565b60405180910390a250505b50505050505050565b8151835114612bcb5760405162461bcd60e51b81526004016107df906146cc565b6001600160a01b038416612bf15760405162461bcd60e51b81526004016107df906145d1565b33612c0081878787878761306e565b60005b8451811015612ce9576000858281518110612c2057612c20614b05565b602002602001015190506000858381518110612c3e57612c3e614b05565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612c8f5760405162461bcd60e51b81526004016107df90614616565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612cce9084906148b0565b9250508190555050505080612ce290614a94565b9050612c03565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d39929190614551565b60405180910390a4612d4f818787878787613496565b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f90600090a35050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612e6f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107df565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000806000612eeb8585613560565b91509150610f83816135d0565b6000612f03600b5490565b821092915050565b6001600160a01b038416612f315760405162461bcd60e51b81526004016107df906145d1565b33612f4181878761270e88613023565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612f845760405162461bcd60e51b81526004016107df90614616565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612fc39084906148b0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ba182888888888861332b565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061305d5761305d614b05565b602090810291909101015292915050565b6001600160a01b038516612d4f5760006130878261378b565b9050806131a95760005b845181101561314f576000806130cc600b8885815181106130b4576130b4614b05565b602002602001015181548110611f2b57611f2b614b05565b5091509150816131175760405162461bcd60e51b8152602060048201526016602482015275546f6b656e206973206e6f7420636c61696d61626c6560501b60448201526064016107df565b61313a8187858151811061312d5761312d614b05565b602002602001015161382f565b5050808061314790614a94565b915050613091565b506001600160a01b0385166000818152600c6020526040908190205490517f42103fa0eeaa26645ba1c99347e3c5a902bdf5fe04e611affb25c41d72e438aa9161319c91889088906147b4565b60405180910390a2612ba1565b60005b845181101561328c576131d78582815181106131ca576131ca614b05565b6020026020010151612ef8565b1561321b5760405162461bcd60e51b8152602060048201526014602482015273546f6b656e20616c72656164792065786973747360601b60448201526064016107df565b83818151811061322d5761322d614b05565b602002602001015160011461327a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016107df565b8061328481614a94565b9150506131ac565b506132988185516138de565b15612ba1576001600160a01b0385166000908152600c602052604081208054916132c183614a94565b909155505083516001600160a01b0386166000818152600c602090815260409182902054825194855290840185905290830152907f90d3145a2d81fc0f378acfe52a82e0bbfaac7438c3268ad73c01e37681570c5f9060600160405180910390a250505050505050565b6001600160a01b0384163b15612d4f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061336f90899089908890889088906004016144ae565b602060405180830381600087803b15801561338957600080fd5b505af19250505080156133b9575060408051601f3d908101601f191682019092526133b6918101906140a6565b60015b613466576133c5614b31565b806308c379a014156133ff57506133da614b4d565b806133e55750613401565b8060405162461bcd60e51b81526004016107df9190614576565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107df565b6001600160e01b0319811663f23a6e6160e01b14612ba15760405162461bcd60e51b81526004016107df90614589565b6001600160a01b0384163b15612d4f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906134da9089908990889088908890600401614450565b602060405180830381600087803b1580156134f457600080fd5b505af1925050508015613524575060408051601f3d908101601f19168201909252613521918101906140a6565b60015b613530576133c5614b31565b6001600160e01b0319811663bc197c8160e01b14612ba15760405162461bcd60e51b81526004016107df90614589565b6000808251604114156135975760208301516040840151606085015160001a61358b878285856139e7565b945094505050506135c9565b8251604014156135c157602083015160408401516135b6868383613ad4565b9350935050506135c9565b506000905060025b9250929050565b60008160048111156135e4576135e4614aef565b14156135ed5750565b600181600481111561360157613601614aef565b141561364f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107df565b600281600481111561366357613663614aef565b14156136b15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107df565b60038160048111156136c5576136c5614aef565b141561371e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107df565b600481600481111561373257613732614aef565b1415610b8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107df565b60008082815b81518110156138265760008183516137a991906149e6565b905060008383815181106137bf576137bf614b05565b01602001516001600160f81b03198116915060f81c60006137e16030836149e6565b90506137ee6001856149e6565b6137f990600a61491f565b61380390826149c7565b61380d90886148b0565b965050505050808061381e90614a94565b915050613791565b50909392505050565b60008061383b846111a3565b50935093505050816138815760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b60448201526064016107df565b60008481526007602052604090205465ffffffffffff1660306138a485846148b0565b600096875260076020526040909620805468ffffffffffffffffff19169690911b919091176001600160481b031694909417909355505050565b60008060006138ec85611b11565b505060008e815260066020526040902054919a5098506001600160f01b0316965060f0955061392494508a93508792506148b0915050565b60008881526006602052604081209190921b92909217918290555b858110156139dc5762ffffff600888901b169150601861395f82856148b0565b600b805460018101825560009190915260068082047f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901805464ffffffffff8881169590961b8616948517600593909406929092026101000a928302929094021916179091559190911790806139d481614a94565b91505061393f565b509195945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613a1e5750600090506003613acb565b8460ff16601b14158015613a3657508460ff16601c14155b15613a475750600090506004613acb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a9b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613ac457600060019250925050613acb565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01613af5878288856139e7565b935093505050935093915050565b828054613b0f90614a2d565b90600052602060002090601f016020900481019282613b315760008555613b77565b82601f10613b4a57805160ff1916838001178555613b77565b82800160010185558215613b77579182015b82811115613b77578251825591602001919060010190613b5c565b50613b83929150613bfb565b5090565b828054613b9390614a2d565b90600052602060002090601f016020900481019282613bb55760008555613b77565b82601f10613bce5782800160ff19823516178555613b77565b82800160010185558215613b77579182015b82811115613b77578235825591602001919060010190613be0565b5b80821115613b835760008155600101613bfc565b80356001600160a01b0381168114613c2757600080fd5b919050565b600082601f830112613c3d57600080fd5b81356020613c4a8261488d565b604051613c578282614a68565b8381528281019150858301600585901b87018401881015613c7757600080fd5b60005b85811015613c9657813584529284019290840190600101613c7a565b5090979650505050505050565b80358015158114613c2757600080fd5b60008083601f840112613cc557600080fd5b5081356001600160401b03811115613cdc57600080fd5b6020830191508360208285010111156135c957600080fd5b600082601f830112613d0557600080fd5b81356001600160401b03811115613d1e57613d1e614b1b565b604051613d35601f8301601f191660200182614a68565b818152846020838601011115613d4a57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215613d7957600080fd5b613d8282613c10565b9392505050565b60008060408385031215613d9c57600080fd5b613da583613c10565b9150613db360208401613c10565b90509250929050565b600080600080600060a08688031215613dd457600080fd5b613ddd86613c10565b9450613deb60208701613c10565b935060408601356001600160401b0380821115613e0757600080fd5b613e1389838a01613c2c565b94506060880135915080821115613e2957600080fd5b613e3589838a01613c2c565b93506080880135915080821115613e4b57600080fd5b50613e5888828901613cf4565b9150509295509295909350565b600080600080600060a08688031215613e7d57600080fd5b613e8686613c10565b9450613e9460208701613c10565b9350604086013592506060860135915060808601356001600160401b03811115613ebd57600080fd5b613e5888828901613cf4565b60008060408385031215613edc57600080fd5b613ee583613c10565b9150613db360208401613ca3565b60008060408385031215613f0657600080fd5b613f0f83613c10565b946020939093013593505050565b60008060408385031215613f3057600080fd5b82356001600160401b0380821115613f4757600080fd5b818501915085601f830112613f5b57600080fd5b81356020613f688261488d565b604051613f758282614a68565b8381528281019150858301600585901b870184018b1015613f9557600080fd5b600096505b84871015613fbf57613fab81613c10565b835260019690960195918301918301613f9a565b5096505086013592505080821115613fd657600080fd5b50613fe385828601613c2c565b9150509250929050565b600080600080600060a0868803121561400557600080fd5b85356001600160401b038082111561401c57600080fd5b61402889838a01613c2c565b9650602088013591508082111561403e57600080fd5b61404a89838a01613c2c565b955060408801359450606088013593506080880135915080821115613e4b57600080fd5b60006020828403121561408057600080fd5b613d8282613ca3565b60006020828403121561409b57600080fd5b8135613d8281614bd6565b6000602082840312156140b857600080fd5b8151613d8281614bd6565b6000602082840312156140d557600080fd5b81356001600160401b038111156140eb57600080fd5b6126cf84828501613cf4565b60006020828403121561410957600080fd5b5035919050565b6000806040838503121561412357600080fd5b82359150613db360208401613ca3565b6000806040838503121561414657600080fd5b8235915060208301356001600160401b0381111561416357600080fd5b613fe385828601613cf4565b60008060006060848603121561418457600080fd5b8335925060208401356001600160401b038111156141a157600080fd5b6141ad86828701613cf4565b9250506141bc60408501613ca3565b90509250925092565b600080604083850312156141d857600080fd5b50508035926020909101359150565b6000806000806000806000806000806101008b8d03121561420757600080fd5b8a35995060208b0135985060408b0135975060608b0135965061422c60808c01613ca3565b955061423a60a08c01613ca3565b945060c08b01356001600160401b038082111561425657600080fd5b6142628e838f01613cb3565b909650945060e08d013591508082111561427b57600080fd5b506142888d828e01613cb3565b915080935050809150509295989b9194979a5092959850565b60008060008060008060a087890312156142ba57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156142ec57600080fd5b6142f889828a01613cb3565b979a9699509497509295939492505050565b600081518084526020808501945080840160005b8381101561433a5781518752958201959082019060010161431e565b509495945050505050565b6000815180845261435d8160208601602086016149fd565b601f01601f19169290920160200192915050565b600081516143838185602086016149fd565b9290920192915050565b6000825161439f8184602087016149fd565b9190910192915050565b600080845481600182811c9150808316806143c557607f831692505b60208084108214156143e557634e487b7160e01b86526022600452602486fd5b8180156143f9576001811461440a57614437565b60ff19861689528489019650614437565b60008b81526020902060005b8681101561442f5781548b820152908501908301614416565b505084890196505b5050505050506144478185614371565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061447c9083018661430a565b828103606084015261448e818661430a565b905082810360808401526144a28185614345565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906144e890830184614345565b979650505050505050565b6001600160a01b038616815260a0602082018190526000906145179083018761430a565b8281036040840152614529818761430a565b60608401959095525050608001529392505050565b602081526000613d82602083018461430a565b604081526000614564604083018561430a565b8281036020840152614447818561430a565b602081526000613d826020830184614345565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f434345646974696f6e733a205761766520646f6573206e6f7420657869737400604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b8381526060602082015260006147cd606083018561430a565b82810360408401526147df818561430a565b9695505050505050565b858152846020820152831515604082015282606082015260a0608082015260006144e860a0830184614345565b60006101608d83528c60208401528b60408401528a60608401528960808401528860a084015287151560c084015286151560e0840152856101008401528061012084015261486681840186614345565b905082810361014084015261487b8185614345565b9e9d5050505050505050505050505050565b60006001600160401b038211156148a6576148a6614b1b565b5060051b60200190565b600082198211156148c3576148c3614ac3565b500190565b6000826148d7576148d7614ad9565b500490565b600181815b808511156149175781600019048211156148fd576148fd614ac3565b8085161561490a57918102915b93841c93908002906148e1565b509250929050565b6000613d8283836000826149355750600161080d565b816149425750600061080d565b816001811461495857600281146149625761497e565b600191505061080d565b60ff84111561497357614973614ac3565b50506001821b61080d565b5060208310610133831016604e8410600b84101617156149a1575081810a61080d565b6149ab83836148dc565b80600019048211156149bf576149bf614ac3565b029392505050565b60008160001904831182151516156149e1576149e1614ac3565b500290565b6000828210156149f8576149f8614ac3565b500390565b60005b83811015614a18578181015183820152602001614a00565b83811115614a27576000848401525b50505050565b600181811c90821680614a4157607f821691505b60208210811415614a6257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715614a8d57614a8d614b1b565b6040525050565b6000600019821415614aa857614aa8614ac3565b5060010190565b600082614abe57614abe614ad9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115614b4a5760046000803e5060005160e01c5b90565b600060443d1015614b5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614b8a57505050505090565b8285019150815181811115614ba25750505050505090565b843d8701016020828501011115614bbc5750505050505090565b614bcb60208286010187614a68565b509095945050505050565b6001600160e01b031981168114610b8b57600080fdfea2646970667358221220149c494d77f3f3d8004398c1411f5220a49b4424b49d576acf505317ccf936da64736f6c634300080700330000000000000000000000004f65cdffe6c48ad287f005ad14e78ff6433c8d67
Deployed Bytecode
0x6080604052600436106102245760003560e01c806378f8ac1211610123578063c6664180116100ab578063e985e9c51161006f578063e985e9c5146106bd578063f029da5c14610706578063f242432a14610719578063f2fde38b14610739578063f851a4401461075957600080fd5b8063c666418014610601578063df215f3014610621578063df3a97ea14610658578063e4b50cb81461066b578063e8a3d485146106a857600080fd5b8063a22cb465116100f2578063a22cb46514610569578063a3b9871a14610589578063aa4246b7146105a9578063ab96a83d146105c9578063b0691427146105e957600080fd5b806378f8ac12146104c95780638da5cb5b146104e9578063938e3d7b1461051b57806395d89b411461053b57600080fd5b80632eb2c2d6116101b15780635aef2447116101755780635aef244714610423578063704b6c021461045457806370ee0c5714610474578063715018a614610494578063725723d7146104a957600080fd5b80632eb2c2d61461038e5780633ccfd60b146103ae5780634a004a69146103b65780634e1273f4146103d657806353f6bd701461040357600080fd5b80630e427f17116101f85780630e427f17146102f05780630e89341c1461030357806318160ddd146103235780631a1bcf67146103385780632073a1621461035857600080fd5b8062fdd58e1461022957806301ffc9a71461025c57806306fdde031461028c5780630c39e34e146102ce575b600080fd5b34801561023557600080fd5b50610249610244366004613ef3565b610777565b6040519081526020015b60405180910390f35b34801561026857600080fd5b5061027c610277366004614089565b610813565b6040519015158152602001610253565b34801561029857600080fd5b506102c160405180604001604052806009815260200168436c7562436172647360b81b81525081565b6040516102539190614576565b3480156102da57600080fd5b506102ee6102e9366004614110565b610863565b005b6102ee6102fe3660046141c5565b61097a565b34801561030f57600080fd5b506102c161031e3660046140f7565b610b38565b34801561032f57600080fd5b50600b54610249565b34801561034457600080fd5b506102ee6103533660046140f7565b610b43565b34801561036457600080fd5b50610249610373366004613d67565b6001600160a01b03166000908152600c602052604090205490565b34801561039a57600080fd5b506102ee6103a9366004613dbc565b610b8e565b6102ee610c25565b3480156103c257600080fd5b506102ee6103d13660046140f7565b610ce9565b3480156103e257600080fd5b506103f66103f1366004613f1d565b610e62565b604051610253919061453e565b34801561040f57600080fd5b506102ee61041e36600461416f565b610f8b565b34801561042f57600080fd5b5061044361043e3660046140f7565b6111a3565b6040516102539594939291906147e9565b34801561046057600080fd5b506102ee61046f366004613d67565b6112fc565b34801561048057600080fd5b506102ee61048f3660046141e7565b611394565b3480156104a057600080fd5b506102ee61154b565b3480156104b557600080fd5b506102ee6104c43660046141c5565b611581565b3480156104d557600080fd5b506102ee6104e4366004614133565b6116bb565b3480156104f557600080fd5b506004546001600160a01b03165b6040516001600160a01b039091168152602001610253565b34801561052757600080fd5b506102ee6105363660046140c3565b61171e565b34801561054757600080fd5b506102c160405180604001604052806002815260200161434360f01b81525081565b34801561057557600080fd5b506102ee610584366004613ec9565b611774565b34801561059557600080fd5b506102ee6105a4366004614110565b61177f565b3480156105b557600080fd5b506102ee6105c4366004614133565b6118e6565b3480156105d557600080fd5b506102ee6105e436600461406e565b6119ea565b3480156105f557600080fd5b50600f5460ff1661027c565b34801561060d57600080fd5b506102ee61061c366004614110565b611a3c565b34801561062d57600080fd5b5061064161063c3660046140f7565b611b11565b6040516102539b9a99989796959493929190614816565b6102ee610666366004613fed565b611d12565b34801561067757600080fd5b5061068b6106863660046140f7565b611ec4565b604080519315158452602084019290925290820152606001610253565b3480156106b457600080fd5b506102c1611f80565b3480156106c957600080fd5b5061027c6106d8366004613d89565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102ee6107143660046142a1565b612012565b34801561072557600080fd5b506102ee610734366004613e65565b612288565b34801561074557600080fd5b506102ee610754366004613d67565b61230f565b34801561076557600080fd5b506005546001600160a01b0316610503565b60006001600160a01b0383166107e85760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061084457506001600160e01b031982166303a24d0760e21b145b8061080d57506301ffc9a760e01b6001600160e01b031983161461080d565b6005546001600160a01b031633148061088657506004546001600160a01b031633145b6108a25760405162461bcd60e51b81526004016107df9061478c565b6000828152600660205260409020546108cd5760405162461bcd60e51b81526004016107df90614695565b60008060008060006108de87611b11565b50509850509750975097509750505050600060066000898152602001908152602001600020546001600160581b03169050605086901b81179050609085901b8117905060a084901b8117905060e08361093857600061093b565b60015b60ff16901b1760e88761094f576000610952565b60015b6000998a526006602052604090992060ff909916901b1760f09190911b179095555050505050565b6002600054141561099d5760405162461bcd60e51b81526004016107df90614755565b600260009081556109af9083836123a7565b60006109ba600b5490565b905082600114156109fe576109f9338260016109d5866125d2565b6040516020016109e5919061438d565b6040516020818303038152906040526126d7565b610b25565b6000836001600160401b03811115610a1857610a18614b1b565b604051908082528060200260200182016040528015610a41578160200160208202803683370190505b5090506000846001600160401b03811115610a5e57610a5e614b1b565b604051908082528060200260200182016040528015610a87578160200160208202803683370190505b50905060005b85811015610aee57610a9f81856148b0565b838281518110610ab157610ab1614b05565b6020026020010181815250506001828281518110610ad157610ad1614b05565b602090810291909101015280610ae681614a94565b915050610a8d565b50610b22338383610afe886125d2565b604051602001610b0e919061438d565b6040516020818303038152906040526127af565b50505b610b2e8261290a565b5050600160005550565b606061080d8261294f565b6005546001600160a01b0316331480610b6657506004546001600160a01b031633145b610b825760405162461bcd60e51b81526004016107df9061478c565b610b8b81612aba565b50565b6001600160a01b038516331480610baa5750610baa85336106d8565b610c115760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107df565b610c1e8585858585612baa565b5050505050565b6004546001600160a01b03163314610c4f5760405162461bcd60e51b81526004016107df90614660565b6000610c5c6064476148c8565b9050610c706004546001600160a01b031690565b6001600160a01b03166108fc610c878360556149c7565b6040518115909202916000818181858888f19350505050610ca757600080fd5b600f805461010090046001600160a01b0316906108fc90610cc99084906149c7565b6040518115909202916000818181858888f19350505050610b8b57600080fd5b6000806000610cf784611b11565b50505050509550955050509350508060001415610d675760405162461bcd60e51b815260206004820152602860248201527f434345646974696f6e733a205374617274696e6720696e64657820626c6f636b604482015267081b9bdd081cd95d60c21b60648201526084016107df565b8115610dc45760405162461bcd60e51b815260206004820152602660248201527f434345646974696f6e733a205374617274696e6720696e64657820616c726561604482015265191e481cd95d60d21b60648201526084016107df565b80406000610dd28583614aaf565b905081610df35784610de56001436149e6565b610df0919040614aaf565b90505b80610e0657610e036001826148b0565b90505b600086815260066020526040908190208054609084901b1790555186907f8dcffd58be258b0748e69e1191a794bb098eb18e271a394c882b87b1d2f055a490610e529084815260200190565b60405180910390a2505050505050565b60608151835114610ec75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107df565b600083516001600160401b03811115610ee257610ee2614b1b565b604051908082528060200260200182016040528015610f0b578160200160208202803683370190505b50905060005b8451811015610f8357610f56858281518110610f2f57610f2f614b05565b6020026020010151858381518110610f4957610f49614b05565b6020026020010151610777565b828281518110610f6857610f68614b05565b6020908102919091010152610f7c81614a94565b9050610f11565b509392505050565b6005546001600160a01b0316331480610fae57506004546001600160a01b031633145b610fca5760405162461bcd60e51b81526004016107df9061478c565b6000838152600760205260409020546001600160481b03161561102f5760405162461bcd60e51b815260206004820181905260248201527f434345646974696f6e733a20436c61696d20616c72656164792065786973747360448201526064016107df565b600061103a600b5490565b905061ffff8411801590611051575062ffffff8111155b61109d5760405162461bcd60e51b815260206004820152601d60248201527f434345646974696f6e733a2056616c756520697320746f6f206269672100000060448201526064016107df565b601081901b84176028836110b25760006110b5565b60015b6000878152600760209081526040808320805468ffffffffffffffffff191660ff9590951690951b959095176001600160481b03811693909317909355600b805460018181019092557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96006808304919091018054919092066005026101000a64ffffffffff8181021990921660088d901b90941791821602929092179055600a8452939020865191939261116d9290880190613b03565b50604051869084907f718b6651ddf77705c1ff192eb906f851f91c10914c0c800fcd399b3d8fda6f8990600090a3505050505050565b60008060008060606111cc866000908152600760205260409020546001600160481b0316151590565b6112185760405162461bcd60e51b815260206004820181905260248201527f434345646974696f6e733a20436c61696d20646f6573206e6f7420657869737460448201526064016107df565b600086815260076020908152604080832054600a909252909120805461ffff8316975062ffffff601084901c8116975060ff602885901c166001149650603084901c1694506001600160481b039092169161127290614a2d565b80601f016020809104026020016040519081016040528092919081815260200182805461129e90614a2d565b80156112eb5780601f106112c0576101008083540402835291602001916112eb565b820191906000526020600020905b8154815290600101906020018083116112ce57829003601f168201915b505050505091505091939590929450565b6004546001600160a01b031633146113265760405162461bcd60e51b81526004016107df90614660565b6001600160a01b03811661138b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084016107df565b610b8b81612d57565b6005546001600160a01b03163314806113b757506004546001600160a01b031633145b6113d35760405162461bcd60e51b81526004016107df9061478c565b60008a8152600660205260409020541561142f5760405162461bcd60e51b815260206004820152601f60248201527f434345646974696f6e733a205761766520616c7265616479206578697374730060448201526064016107df565b60ff8a11801590611442575061ffff8911155b8015611455575066ffffffffffffff8811155b801561146857506001600160401b038711155b6114b45760405162461bcd60e51b815260206004820152601d60248201527f434345646974696f6e733a2056616c756520697320746f6f206269672100000060448201526064016107df565b605087901b601889901b60088b901b8c17171760e0876114d55760006114d8565b60015b60ff16901b1760e8866114ec5760006114ef565b60015b60008d815260066020908152604080832060ff9490941690941b949094179182905560089093529120611523908686613b87565b5060008b815260096020526040902061153d908484613b87565b505050505050505050505050565b6004546001600160a01b031633146115755760405162461bcd60e51b81526004016107df90614660565b61157f6000612da9565b565b6005546001600160a01b03163314806115a457506004546001600160a01b031633145b6115c05760405162461bcd60e51b81526004016107df9061478c565b6000828152600660205260409020546115eb5760405162461bcd60e51b81526004016107df90614695565b6001600160401b038111156116395760405162461bcd60e51b8152602060048201526014602482015273086868ac8d2e8d2dedce67440a8dede40d0d2ced60631b60448201526064016107df565b600080600080600061164a87611b11565b50509850985098509850985050505050600060066000898152602001908152602001600020546001600160581b03169050605087901b81179050609086901b8117905060a085901b8117905060e0846116a45760006116a7565b60015b60ff16901b1760e88361094f576000610952565b6005546001600160a01b03163314806116de57506004546001600160a01b031633145b6116fa5760405162461bcd60e51b81526004016107df9061478c565b6000828152600960209081526040909120825161171992840190613b03565b505050565b6005546001600160a01b031633148061174157506004546001600160a01b031633145b61175d5760405162461bcd60e51b81526004016107df9061478c565b805161177090600d906020840190613b03565b5050565b611770338383612dfb565b6005546001600160a01b03163314806117a257506004546001600160a01b031633145b6117be5760405162461bcd60e51b81526004016107df9061478c565b6000828152600760205260409020546001600160481b031661181b5760405162461bcd60e51b815260206004820152601660248201527510db185a5b525908191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107df565b600082116118645760405162461bcd60e51b8152602060048201526016602482015275436c61696d49642063616e6e6f74206265207a65726f60501b60448201526064016107df565b600061186f836111a3565b5060008781526007602052604090205490945064ffffffffff1692506028915084905061189d5760006118a0565b60015b600095865260076020526040909520805468ffffffffffffffffff191660ff96871690921b9095169190911760309290921b919091176001600160481b03161790915550565b6005546001600160a01b031633148061190957506004546001600160a01b031633145b6119255760405162461bcd60e51b81526004016107df9061478c565b6000828152600760205260409020546001600160481b03166119825760405162461bcd60e51b815260206004820152601660248201527510db185a5b525908191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107df565b600082116119cb5760405162461bcd60e51b8152602060048201526016602482015275436c61696d49642063616e6e6f74206265207a65726f60501b60448201526064016107df565b6000828152600a60209081526040909120825161171992840190613b03565b6005546001600160a01b0316331480611a0d57506004546001600160a01b031633145b611a295760405162461bcd60e51b81526004016107df9061478c565b600f805460ff1916911515919091179055565b6005546001600160a01b0316331480611a5f57506004546001600160a01b031633145b611a7b5760405162461bcd60e51b81526004016107df9061478c565b600082815260066020526040902054611aa65760405162461bcd60e51b81526004016107df90614695565b6000806000806000611ab787611b11565b50509850985050975097509750505050600060066000898152602001908152602001600020546001600160581b03169050605086901b81179050609085901b8117905060a084901b8117905060e0876116a45760006116a7565b6000806000806000806000806000606080611b3a8c600090815260066020526040902054151590565b611b565760405162461bcd60e51b81526004016107df90614695565b60008c8152600660209081526040808320546008928390529220805460ff8085169f5061ffff9385901c84169e5066ffffffffffffff601886901c169d506001600160401b03605086901c81169d50609086901c9094169b5060a085901c9093169950600160e085901c84168114995060e885901c909316909214965060f083901c955090611be490614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1090614a2d565b8015611c5d5780601f10611c3257610100808354040283529160200191611c5d565b820191906000526020600020905b815481529060010190602001808311611c4057829003601f168201915b50505050509250600960008e81526020019081526020016000208054611c8290614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611cae90614a2d565b8015611cfb5780601f10611cd057610100808354040283529160200191611cfb565b820191906000526020600020905b815481529060010190602001808311611cde57829003601f168201915b505050505091505091939597999b90929496989a50565b60026000541415611d355760405162461bcd60e51b81526004016107df90614755565b600260009081553390506000611dc6611dc08389898989604051602001611d609594939291906144f3565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b84612edc565b905060008751118015611dda575085518751145b611e265760405162461bcd60e51b815260206004820152601960248201527f4172726179206c656e677468732061726520696e76616c69640000000000000060448201526064016107df565b6005546001600160a01b0382811691161480611e4f57506004546001600160a01b038281169116145b611e9b5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420617574686f72697a656420746f20636c61696d00000000000000000060448201526064016107df565b611eb6828888604051806020016040528060008152506127af565b505060016000555050505050565b6000806000611ed284612ef8565b611f155760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016107df565b611f73600b8581548110611f2b57611f2b614b05565b90600052602060002090600691828204019190066005029054906101000a900464ffffffffff1664ffffffffff16600160ff8216149161ffff600883901c81169260181c1690565b9196909550909350915050565b6060600d8054611f8f90614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbb90614a2d565b80156120085780601f10611fdd57610100808354040283529160200191612008565b820191906000526020600020905b815481529060010190602001808311611feb57829003601f168201915b5050505050905090565b600260005414156120355760405162461bcd60e51b81526004016107df90614755565b6002600055612046600187876123a7565b604080513360208201819052918101889052606081018790526080810186905260a081018590526000906120bc906120809060c001611d60565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612edc92505050565b90506120d06005546001600160a01b031690565b6001600160a01b0316816001600160a01b031614806120fc57506004546001600160a01b038281169116145b6121415760405162461bcd60e51b8152602060048201526016602482015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b60448201526064016107df565b600061214c600b5490565b9050886001141561216c57612167338260016109d58c6125d2565b61226f565b6000896001600160401b0381111561218657612186614b1b565b6040519080825280602002602001820160405280156121af578160200160208202803683370190505b50905060008a6001600160401b038111156121cc576121cc614b1b565b6040519080825280602002602001820160405280156121f5578160200160208202803683370190505b50905060005b8b81101561225c5761220d81856148b0565b83828151811061221f5761221f614b05565b602002602001018181525050600182828151811061223f5761223f614b05565b60209081029190910101528061225481614a94565b9150506121fb565b5061226c338383610afe8e6125d2565b50505b6122788861290a565b5050600160005550505050505050565b6001600160a01b0385163314806122a457506122a485336106d8565b6123025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107df565b610c1e8585858585612f0b565b6004546001600160a01b031633146123395760405162461bcd60e51b81526004016107df90614660565b6001600160a01b03811661239e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107df565b610b8b81612da9565b6000818152600660205260409020546123f85760405162461bcd60e51b815260206004820152601360248201527215d85d9948191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016107df565b600080600080600061240986611b11565b50509850985098505050965050955050871515821515146124655760405162461bcd60e51b8152602060048201526016602482015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b60448201526064016107df565b600f5460ff1680156124745750825b6124b15760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064016107df565b6124bb87856149c7565b3410156125025760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107df565b600e5487111580156125145750600087115b6125565760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016107df565b8461256182896148b0565b11156125c85760405162461bcd60e51b815260206004820152603060248201527f4e6577206d696e742065786365656473206d6178696d756d20737570706c792060448201526f616c6c6f77656420666f72207761766560801b60648201526084016107df565b5050505050505050565b6060816125f65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612620578061260a81614a94565b91506126199050600a836148c8565b91506125fa565b6000816001600160401b0381111561263a5761263a614b1b565b6040519080825280601f01601f191660200182016040528015612664576020820181803683370190505b5090505b84156126cf576126796001836149e6565b9150612686600a86614aaf565b6126919060306148b0565b60f81b8183815181106126a6576126a6614b05565b60200101906001600160f81b031916908160001a9053506126c8600a866148c8565b9450612668565b949350505050565b6001600160a01b0384166126fd5760405162461bcd60e51b81526004016107df90614714565b3361271d8160008761270e88613023565b61271788613023565b8761306e565b60008481526001602090815260408083206001600160a01b03891684529091528120805485929061274f9084906148b0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c1e8160008787878761332b565b6001600160a01b0384166127d55760405162461bcd60e51b81526004016107df90614714565b81518351146127f65760405162461bcd60e51b81526004016107df906146cc565b336128068160008787878761306e565b60005b84518110156128a25783818151811061282457612824614b05565b60200260200101516001600087848151811061284257612842614b05565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461288a91906148b0565b9091555081905061289a81614a94565b915050612809565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128f3929190614551565b60405180910390a4610c1e81600087878787613496565b60008060008061291985611b11565b5050985050505095505094509450508160001480156129415750838114806129415750824210155b15610c1e57610c1e85612aba565b606061295a82612ef8565b6129b15760405162461bcd60e51b815260206004820152602260248201527f434345646974696f6e733a20546f6b656e496420646f6573206e6f74206578696044820152611cdd60f21b60648201526084016107df565b60008060006129cc600b8681548110611f2b57611f2b614b05565b9250925092508215612a79576000828152600a6020526040902080546129f190614a2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a1d90614a2d565b8015612a6a5780601f10612a3f57610100808354040283529160200191612a6a565b820191906000526020600020905b815481529060010190602001808311612a4d57829003601f168201915b50505050509350505050919050565b6000828152600960205260409020612a90826125d2565b604051602001612aa19291906143a9565b6040516020818303038152906040529350505050919050565b600080600080600080612acc87611b11565b50509850985098509850985098505050508360001415612ba15760008781526006602052604090205443906001600160581b0316605088901b17609087901b1760a082901b1760e085612b20576000612b23565b60015b60ff16901b1760e884612b37576000612b3a565b60015b60ff16901b8117905060f083901b8117905080600660008b815260200190815260200160002081905550887fc45999a4382887613cb500f0aa968546383f3e9e8c6f1c872f6f6a33adb3769e83604051612b9691815260200190565b60405180910390a250505b50505050505050565b8151835114612bcb5760405162461bcd60e51b81526004016107df906146cc565b6001600160a01b038416612bf15760405162461bcd60e51b81526004016107df906145d1565b33612c0081878787878761306e565b60005b8451811015612ce9576000858281518110612c2057612c20614b05565b602002602001015190506000858381518110612c3e57612c3e614b05565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612c8f5760405162461bcd60e51b81526004016107df90614616565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612cce9084906148b0565b9250508190555050505080612ce290614a94565b9050612c03565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612d39929190614551565b60405180910390a4612d4f818787878787613496565b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f90600090a35050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612e6f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107df565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000806000612eeb8585613560565b91509150610f83816135d0565b6000612f03600b5490565b821092915050565b6001600160a01b038416612f315760405162461bcd60e51b81526004016107df906145d1565b33612f4181878761270e88613023565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612f845760405162461bcd60e51b81526004016107df90614616565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612fc39084906148b0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ba182888888888861332b565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061305d5761305d614b05565b602090810291909101015292915050565b6001600160a01b038516612d4f5760006130878261378b565b9050806131a95760005b845181101561314f576000806130cc600b8885815181106130b4576130b4614b05565b602002602001015181548110611f2b57611f2b614b05565b5091509150816131175760405162461bcd60e51b8152602060048201526016602482015275546f6b656e206973206e6f7420636c61696d61626c6560501b60448201526064016107df565b61313a8187858151811061312d5761312d614b05565b602002602001015161382f565b5050808061314790614a94565b915050613091565b506001600160a01b0385166000818152600c6020526040908190205490517f42103fa0eeaa26645ba1c99347e3c5a902bdf5fe04e611affb25c41d72e438aa9161319c91889088906147b4565b60405180910390a2612ba1565b60005b845181101561328c576131d78582815181106131ca576131ca614b05565b6020026020010151612ef8565b1561321b5760405162461bcd60e51b8152602060048201526014602482015273546f6b656e20616c72656164792065786973747360601b60448201526064016107df565b83818151811061322d5761322d614b05565b602002602001015160011461327a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016107df565b8061328481614a94565b9150506131ac565b506132988185516138de565b15612ba1576001600160a01b0385166000908152600c602052604081208054916132c183614a94565b909155505083516001600160a01b0386166000818152600c602090815260409182902054825194855290840185905290830152907f90d3145a2d81fc0f378acfe52a82e0bbfaac7438c3268ad73c01e37681570c5f9060600160405180910390a250505050505050565b6001600160a01b0384163b15612d4f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061336f90899089908890889088906004016144ae565b602060405180830381600087803b15801561338957600080fd5b505af19250505080156133b9575060408051601f3d908101601f191682019092526133b6918101906140a6565b60015b613466576133c5614b31565b806308c379a014156133ff57506133da614b4d565b806133e55750613401565b8060405162461bcd60e51b81526004016107df9190614576565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107df565b6001600160e01b0319811663f23a6e6160e01b14612ba15760405162461bcd60e51b81526004016107df90614589565b6001600160a01b0384163b15612d4f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906134da9089908990889088908890600401614450565b602060405180830381600087803b1580156134f457600080fd5b505af1925050508015613524575060408051601f3d908101601f19168201909252613521918101906140a6565b60015b613530576133c5614b31565b6001600160e01b0319811663bc197c8160e01b14612ba15760405162461bcd60e51b81526004016107df90614589565b6000808251604114156135975760208301516040840151606085015160001a61358b878285856139e7565b945094505050506135c9565b8251604014156135c157602083015160408401516135b6868383613ad4565b9350935050506135c9565b506000905060025b9250929050565b60008160048111156135e4576135e4614aef565b14156135ed5750565b600181600481111561360157613601614aef565b141561364f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107df565b600281600481111561366357613663614aef565b14156136b15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107df565b60038160048111156136c5576136c5614aef565b141561371e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107df565b600481600481111561373257613732614aef565b1415610b8b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107df565b60008082815b81518110156138265760008183516137a991906149e6565b905060008383815181106137bf576137bf614b05565b01602001516001600160f81b03198116915060f81c60006137e16030836149e6565b90506137ee6001856149e6565b6137f990600a61491f565b61380390826149c7565b61380d90886148b0565b965050505050808061381e90614a94565b915050613791565b50909392505050565b60008061383b846111a3565b50935093505050816138815760405162461bcd60e51b815260206004820152600f60248201526e10db185a5b481a5cc81c185d5cd959608a1b60448201526064016107df565b60008481526007602052604090205465ffffffffffff1660306138a485846148b0565b600096875260076020526040909620805468ffffffffffffffffff19169690911b919091176001600160481b031694909417909355505050565b60008060006138ec85611b11565b505060008e815260066020526040902054919a5098506001600160f01b0316965060f0955061392494508a93508792506148b0915050565b60008881526006602052604081209190921b92909217918290555b858110156139dc5762ffffff600888901b169150601861395f82856148b0565b600b805460018101825560009190915260068082047f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901805464ffffffffff8881169590961b8616948517600593909406929092026101000a928302929094021916179091559190911790806139d481614a94565b91505061393f565b509195945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613a1e5750600090506003613acb565b8460ff16601b14158015613a3657508460ff16601c14155b15613a475750600090506004613acb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a9b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613ac457600060019250925050613acb565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01613af5878288856139e7565b935093505050935093915050565b828054613b0f90614a2d565b90600052602060002090601f016020900481019282613b315760008555613b77565b82601f10613b4a57805160ff1916838001178555613b77565b82800160010185558215613b77579182015b82811115613b77578251825591602001919060010190613b5c565b50613b83929150613bfb565b5090565b828054613b9390614a2d565b90600052602060002090601f016020900481019282613bb55760008555613b77565b82601f10613bce5782800160ff19823516178555613b77565b82800160010185558215613b77579182015b82811115613b77578235825591602001919060010190613be0565b5b80821115613b835760008155600101613bfc565b80356001600160a01b0381168114613c2757600080fd5b919050565b600082601f830112613c3d57600080fd5b81356020613c4a8261488d565b604051613c578282614a68565b8381528281019150858301600585901b87018401881015613c7757600080fd5b60005b85811015613c9657813584529284019290840190600101613c7a565b5090979650505050505050565b80358015158114613c2757600080fd5b60008083601f840112613cc557600080fd5b5081356001600160401b03811115613cdc57600080fd5b6020830191508360208285010111156135c957600080fd5b600082601f830112613d0557600080fd5b81356001600160401b03811115613d1e57613d1e614b1b565b604051613d35601f8301601f191660200182614a68565b818152846020838601011115613d4a57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215613d7957600080fd5b613d8282613c10565b9392505050565b60008060408385031215613d9c57600080fd5b613da583613c10565b9150613db360208401613c10565b90509250929050565b600080600080600060a08688031215613dd457600080fd5b613ddd86613c10565b9450613deb60208701613c10565b935060408601356001600160401b0380821115613e0757600080fd5b613e1389838a01613c2c565b94506060880135915080821115613e2957600080fd5b613e3589838a01613c2c565b93506080880135915080821115613e4b57600080fd5b50613e5888828901613cf4565b9150509295509295909350565b600080600080600060a08688031215613e7d57600080fd5b613e8686613c10565b9450613e9460208701613c10565b9350604086013592506060860135915060808601356001600160401b03811115613ebd57600080fd5b613e5888828901613cf4565b60008060408385031215613edc57600080fd5b613ee583613c10565b9150613db360208401613ca3565b60008060408385031215613f0657600080fd5b613f0f83613c10565b946020939093013593505050565b60008060408385031215613f3057600080fd5b82356001600160401b0380821115613f4757600080fd5b818501915085601f830112613f5b57600080fd5b81356020613f688261488d565b604051613f758282614a68565b8381528281019150858301600585901b870184018b1015613f9557600080fd5b600096505b84871015613fbf57613fab81613c10565b835260019690960195918301918301613f9a565b5096505086013592505080821115613fd657600080fd5b50613fe385828601613c2c565b9150509250929050565b600080600080600060a0868803121561400557600080fd5b85356001600160401b038082111561401c57600080fd5b61402889838a01613c2c565b9650602088013591508082111561403e57600080fd5b61404a89838a01613c2c565b955060408801359450606088013593506080880135915080821115613e4b57600080fd5b60006020828403121561408057600080fd5b613d8282613ca3565b60006020828403121561409b57600080fd5b8135613d8281614bd6565b6000602082840312156140b857600080fd5b8151613d8281614bd6565b6000602082840312156140d557600080fd5b81356001600160401b038111156140eb57600080fd5b6126cf84828501613cf4565b60006020828403121561410957600080fd5b5035919050565b6000806040838503121561412357600080fd5b82359150613db360208401613ca3565b6000806040838503121561414657600080fd5b8235915060208301356001600160401b0381111561416357600080fd5b613fe385828601613cf4565b60008060006060848603121561418457600080fd5b8335925060208401356001600160401b038111156141a157600080fd5b6141ad86828701613cf4565b9250506141bc60408501613ca3565b90509250925092565b600080604083850312156141d857600080fd5b50508035926020909101359150565b6000806000806000806000806000806101008b8d03121561420757600080fd5b8a35995060208b0135985060408b0135975060608b0135965061422c60808c01613ca3565b955061423a60a08c01613ca3565b945060c08b01356001600160401b038082111561425657600080fd5b6142628e838f01613cb3565b909650945060e08d013591508082111561427b57600080fd5b506142888d828e01613cb3565b915080935050809150509295989b9194979a5092959850565b60008060008060008060a087890312156142ba57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156142ec57600080fd5b6142f889828a01613cb3565b979a9699509497509295939492505050565b600081518084526020808501945080840160005b8381101561433a5781518752958201959082019060010161431e565b509495945050505050565b6000815180845261435d8160208601602086016149fd565b601f01601f19169290920160200192915050565b600081516143838185602086016149fd565b9290920192915050565b6000825161439f8184602087016149fd565b9190910192915050565b600080845481600182811c9150808316806143c557607f831692505b60208084108214156143e557634e487b7160e01b86526022600452602486fd5b8180156143f9576001811461440a57614437565b60ff19861689528489019650614437565b60008b81526020902060005b8681101561442f5781548b820152908501908301614416565b505084890196505b5050505050506144478185614371565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061447c9083018661430a565b828103606084015261448e818661430a565b905082810360808401526144a28185614345565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906144e890830184614345565b979650505050505050565b6001600160a01b038616815260a0602082018190526000906145179083018761430a565b8281036040840152614529818761430a565b60608401959095525050608001529392505050565b602081526000613d82602083018461430a565b604081526000614564604083018561430a565b8281036020840152614447818561430a565b602081526000613d826020830184614345565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f434345646974696f6e733a205761766520646f6573206e6f7420657869737400604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b8381526060602082015260006147cd606083018561430a565b82810360408401526147df818561430a565b9695505050505050565b858152846020820152831515604082015282606082015260a0608082015260006144e860a0830184614345565b60006101608d83528c60208401528b60408401528a60608401528960808401528860a084015287151560c084015286151560e0840152856101008401528061012084015261486681840186614345565b905082810361014084015261487b8185614345565b9e9d5050505050505050505050505050565b60006001600160401b038211156148a6576148a6614b1b565b5060051b60200190565b600082198211156148c3576148c3614ac3565b500190565b6000826148d7576148d7614ad9565b500490565b600181815b808511156149175781600019048211156148fd576148fd614ac3565b8085161561490a57918102915b93841c93908002906148e1565b509250929050565b6000613d8283836000826149355750600161080d565b816149425750600061080d565b816001811461495857600281146149625761497e565b600191505061080d565b60ff84111561497357614973614ac3565b50506001821b61080d565b5060208310610133831016604e8410600b84101617156149a1575081810a61080d565b6149ab83836148dc565b80600019048211156149bf576149bf614ac3565b029392505050565b60008160001904831182151516156149e1576149e1614ac3565b500290565b6000828210156149f8576149f8614ac3565b500390565b60005b83811015614a18578181015183820152602001614a00565b83811115614a27576000848401525b50505050565b600181811c90821680614a4157607f821691505b60208210811415614a6257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715614a8d57614a8d614b1b565b6040525050565b6000600019821415614aa857614aa8614ac3565b5060010190565b600082614abe57614abe614ad9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115614b4a5760046000803e5060005160e01c5b90565b600060443d1015614b5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614b8a57505050505090565b8285019150815181811115614ba25750505050505090565b843d8701016020828501011115614bbc5750505050505090565b614bcb60208286010187614a68565b509095945050505050565b6001600160e01b031981168114610b8b57600080fdfea2646970667358221220149c494d77f3f3d8004398c1411f5220a49b4424b49d576acf505317ccf936da64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004f65cdffe6c48ad287f005ad14e78ff6433c8d67
-----Decoded View---------------
Arg [0] : _dev (address): 0x4f65cDFfE6c48ad287f005AD14E78ff6433c8d67
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004f65cdffe6c48ad287f005ad14e78ff6433c8d67
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.