Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
7,148 TTT
Holders
1,567
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TTTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TTT
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; /** * @title Time Travel Tots * A Contract for the Time Travel Tots */ contract TTT is ERC721Tradable { constructor(address _proxyRegistryAddress) ERC721Tradable("Time Travel Tots", "TTT", _proxyRegistryAddress) {} function baseTokenURI() override public pure returns (string memory) { return "https://api2.shaggysheep.life/api/meta/time-travel-tots-2/"; } function contractURI() public pure returns (string memory) { return "https://api2.shaggysheep.life/api/meta/contract/time/travel-tots-2/"; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ //TODO need function to update current token id, current reserved token id and total supply abstract contract ERC721Tradable is ERC721Enumerable, ContextMixin, NativeMetaTransaction, Ownable, AccessControl{ using SafeMath for uint256; using Strings for string; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); address proxyRegistryAddress; uint256 private _currentTokenId = 1521; uint256 private _maxReservedTokenId = 350; uint256 TOTAL_SUPPLY = 7777; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(BURNER_ROLE, _msgSender()); } function reserveMint(address _to, uint256 _quantity, uint256 _startTokenId) public onlyOwner { require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter"); assert((_startTokenId + _quantity) <= TOTAL_SUPPLY); for (uint256 i = _startTokenId; i < _startTokenId+_quantity; i++) { _mint(_to, i); } } function reMint(address _to, uint256 _newTokenId) public { require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter"); assert(_newTokenId > 19); assert(_newTokenId < 1522); _mint(_to, _newTokenId); } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) public { require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter"); uint256 newTokenId = _getNextTokenId(); assert(newTokenId <= TOTAL_SUPPLY); _mint(_to, newTokenId); _incrementTokenId(); } function bulkMint(address _to, uint256 _quantity) public { require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter"); uint256 newTokenId = _getNextTokenId(); assert(newTokenId + _quantity <= TOTAL_SUPPLY); for (uint256 i = newTokenId; i < newTokenId + _quantity; i++) { _mint(_to, i); _incrementTokenId(); } } /** * @dev calculates the next token ID based on value of _currentTokenId * @return uint256 for the next token ID */ function _getNextTokenId() private view returns (uint256) { return _currentTokenId.add(1); } function getCurrentTokenId() public view returns (uint256) { return _currentTokenId; } /** * @dev increments the value of _currentTokenId */ function _incrementTokenId() private { _currentTokenId++; } function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(hasRole(BURNER_ROLE, _msgSender()), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } function baseTokenURI() virtual public pure returns (string memory); function tokenURI(uint256 _tokenId) override public pure returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId))); } function transferOwnership(address newOwner) override public onlyOwner { } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function updateTotalSupply(uint256 _newTotalSupply) public onlyOwner { TOTAL_SUPPLY = _newTotalSupply; } function updateCurrentTokenId(uint256 _newCurrentTokenId) public onlyOwner { _currentTokenId = _newCurrentTokenId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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.0 (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.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"bulkMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_newTokenId","type":"uint256"}],"name":"reMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_startTokenId","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCurrentTokenId","type":"uint256"}],"name":"updateCurrentTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTotalSupply","type":"uint256"}],"name":"updateTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff0219169083151502179055506105f160105561015e601155611e616012553480156200003e57600080fd5b5060405162005e0438038062005e04833981810160405281019062000064919062000789565b6040518060400160405280601081526020017f54696d652054726176656c20546f7473000000000000000000000000000000008152506040518060400160405280600381526020017f54545400000000000000000000000000000000000000000000000000000000008152508282828160009080519060200190620000eb9291906200066f565b508060019080519060200190620001049291906200066f565b505050620001276200011b6200022960201b60201c565b6200024560201b60201c565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000179836200030b60201b60201c565b6200019d6000801b620001916200022960201b60201c565b6200038d60201b60201c565b620001de7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620001d26200022960201b60201c565b6200038d60201b60201c565b6200021f7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848620002136200022960201b60201c565b6200038d60201b60201c565b505050506200092c565b600062000240620003a360201b62001ca71760201c565b905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a60009054906101000a900460ff16156200035e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000355906200081c565b60405180910390fd5b6200036f816200045660201b60201c565b6001600a60006101000a81548160ff02191690831515021790555050565b6200039f82826200050560201b60201c565b5050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200044f57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505062000453565b3390505b90565b6040518060800160405280604f815260200162005db5604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620004cd620005f760201b60201c565b60001b604051602001620004e69594939291906200086a565b60405160208183030381529060405280519060200120600b8190555050565b6200051782826200060460201b60201c565b620005f3576001600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620005986200022960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000804690508091505090565b6000600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200067d90620008f6565b90600052602060002090601f016020900481019282620006a15760008555620006ed565b82601f10620006bc57805160ff1916838001178555620006ed565b82800160010185558215620006ed579182015b82811115620006ec578251825591602001919060010190620006cf565b5b509050620006fc919062000700565b5090565b5b808211156200071b57600081600090555060010162000701565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007518262000724565b9050919050565b620007638162000744565b81146200076f57600080fd5b50565b600081519050620007838162000758565b92915050565b600060208284031215620007a257620007a16200071f565b5b6000620007b28482850162000772565b91505092915050565b600082825260208201905092915050565b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b600062000804600e83620007bb565b91506200081182620007cc565b602082019050919050565b600060208201905081810360008301526200083781620007f5565b9050919050565b6000819050919050565b62000853816200083e565b82525050565b620008648162000744565b82525050565b600060a08201905062000881600083018862000848565b62000890602083018762000848565b6200089f604083018662000848565b620008ae606083018562000859565b620008bd608083018462000848565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200090f57607f821691505b60208210811415620009265762000925620008c7565b5b50919050565b615479806200093c6000396000f3fe6080604052600436106102515760003560e01c80636352211e11610139578063a8c90cb2116100b6578063d547741f1161007a578063d547741f146108ed578063d547cfb714610916578063e20eedc814610941578063e8a3d4851461096a578063e985e9c514610995578063f2fde38b146109d257610251565b8063a8c90cb21461080a578063b88d4fde14610833578063b9bc85db1461085c578063c87b56dd14610885578063d5391393146108c257610251565b80638da5cb5b116100fd5780638da5cb5b1461072357806391d148541461074e57806395d89b411461078b578063a217fddf146107b6578063a22cb465146107e157610251565b80636352211e1461064057806366d49bab1461067d57806370a08231146106a6578063715018a6146106e3578063755edd17146106fa57610251565b8063282c51f3116101d257806336568abe1161019657806336568abe146105345780633bac75531461055d57806342842e0e1461058657806342966c68146105af5780634f6ccce7146105d8578063561892361461061557610251565b8063282c51f31461043b5780632d0335ab146104665780632f2ff15d146104a35780632f745c59146104cc5780633408e4701461050957610251565b80630f7e5970116102195780630f7e59701461035457806318160ddd1461037f57806320379ee5146103aa57806323b872dd146103d5578063248a9ca3146103fe57610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb5780630c53c51c14610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613822565b6109fb565b60405161028a919061386a565b60405180910390f35b34801561029f57600080fd5b506102a8610a0d565b6040516102b5919061391e565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613976565b610a9f565b6040516102f291906139e4565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613a2b565b610b24565b005b61033e60048036038101906103399190613c0f565b610c3c565b60405161034b9190613cfb565b60405180910390f35b34801561036057600080fd5b50610369610eae565b604051610376919061391e565b60405180910390f35b34801561038b57600080fd5b50610394610ee7565b6040516103a19190613d2c565b60405180910390f35b3480156103b657600080fd5b506103bf610ef4565b6040516103cc9190613d56565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190613d71565b610efe565b005b34801561040a57600080fd5b5061042560048036038101906104209190613dc4565b610f5e565b6040516104329190613d56565b60405180910390f35b34801561044757600080fd5b50610450610f7e565b60405161045d9190613d56565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190613df1565b610fa2565b60405161049a9190613d2c565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613e1e565b610feb565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613a2b565b611014565b6040516105009190613d2c565b60405180910390f35b34801561051557600080fd5b5061051e6110b9565b60405161052b9190613d2c565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190613e1e565b6110c6565b005b34801561056957600080fd5b50610584600480360381019061057f9190613e5e565b611149565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613d71565b61128f565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190613976565b6112af565b005b3480156105e457600080fd5b506105ff60048036038101906105fa9190613976565b61132b565b60405161060c9190613d2c565b60405180910390f35b34801561062157600080fd5b5061062a61139c565b6040516106379190613d2c565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613976565b6113a6565b60405161067491906139e4565b60405180910390f35b34801561068957600080fd5b506106a4600480360381019061069f9190613976565b611458565b005b3480156106b257600080fd5b506106cd60048036038101906106c89190613df1565b6114de565b6040516106da9190613d2c565b60405180910390f35b3480156106ef57600080fd5b506106f8611596565b005b34801561070657600080fd5b50610721600480360381019061071c9190613df1565b61161e565b005b34801561072f57600080fd5b506107386116c3565b60405161074591906139e4565b60405180910390f35b34801561075a57600080fd5b5061077560048036038101906107709190613e1e565b6116ed565b604051610782919061386a565b60405180910390f35b34801561079757600080fd5b506107a0611758565b6040516107ad919061391e565b60405180910390f35b3480156107c257600080fd5b506107cb6117ea565b6040516107d89190613d56565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190613edd565b6117f1565b005b34801561081657600080fd5b50610831600480360381019061082c9190613a2b565b611807565b005b34801561083f57600080fd5b5061085a60048036038101906108559190613f1d565b6118e5565b005b34801561086857600080fd5b50610883600480360381019061087e9190613a2b565b611947565b005b34801561089157600080fd5b506108ac60048036038101906108a79190613976565b6119e8565b6040516108b9919061391e565b60405180910390f35b3480156108ce57600080fd5b506108d7611a22565b6040516108e49190613d56565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f9190613e1e565b611a46565b005b34801561092257600080fd5b5061092b611a6f565b604051610938919061391e565b60405180910390f35b34801561094d57600080fd5b5061096860048036038101906109639190613976565b611a8f565b005b34801561097657600080fd5b5061097f611b15565b60405161098c919061391e565b60405180910390f35b3480156109a157600080fd5b506109bc60048036038101906109b79190613fa0565b611b35565b6040516109c9919061386a565b60405180910390f35b3480156109de57600080fd5b506109f960048036038101906109f49190613df1565b611c28565b005b6000610a0682611d58565b9050919050565b606060008054610a1c9061400f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a489061400f565b8015610a955780601f10610a6a57610100808354040283529160200191610a95565b820191906000526020600020905b815481529060010190602001808311610a7857829003601f168201915b5050505050905090565b6000610aaa82611dd2565b610ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae0906140b3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2f826113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9790614145565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbf611e3e565b73ffffffffffffffffffffffffffffffffffffffff161480610bee5750610bed81610be8611e3e565b611b35565b5b610c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c24906141d7565b60405180910390fd5b610c378383611e4d565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610cbf8782878787611f06565b610cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf590614269565b60405180910390fd5b610d516001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461200f90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610dc7939291906142aa565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610dfc92919061436c565b604051602081830303815290604052604051610e189190614394565b6000604051808303816000865af19150503d8060008114610e55576040519150601f19603f3d011682016040523d82523d6000602084013e610e5a565b606091505b509150915081610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e96906143f7565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610f0f610f09611e3e565b82612025565b610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590614489565b60405180910390fd5b610f59838383612103565b505050565b6000600e6000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ff482610f5e565b61100581611000611e3e565b61235f565b61100f83836123fc565b505050565b600061101f836114de565b8210611060576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110579061451b565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b6110ce611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461113b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611132906145ad565b60405180910390fd5b61114582826124dd565b5050565b611151611e3e565b73ffffffffffffffffffffffffffffffffffffffff1661116f6116c3565b73ffffffffffffffffffffffffffffffffffffffff16146111c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bc90614619565b60405180910390fd5b6111f67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66111f1611e3e565b6116ed565b611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c90614685565b60405180910390fd5b601254828261124491906146d4565b11156112535761125261472a565b5b60008190505b828261126591906146d4565b8110156112895761127684826125bf565b808061128190614759565b915050611259565b50505050565b6112aa838383604051806020016040528060008152506118e5565b505050565b6112e07f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8486112db611e3e565b6116ed565b61131f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131690614814565b60405180910390fd5b6113288161278d565b50565b6000611335610ee7565b8210611376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136d906148a6565b60405180910390fd5b6008828154811061138a576113896148c6565b5b90600052602060002001549050919050565b6000601054905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614967565b60405180910390fd5b80915050919050565b611460611e3e565b73ffffffffffffffffffffffffffffffffffffffff1661147e6116c3565b73ffffffffffffffffffffffffffffffffffffffff16146114d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cb90614619565b60405180910390fd5b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561154f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611546906149f9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61159e611e3e565b73ffffffffffffffffffffffffffffffffffffffff166115bc6116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160990614619565b60405180910390fd5b61161c600061289e565b565b61164f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661164a611e3e565b6116ed565b61168e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168590614685565b60405180910390fd5b6000611698612964565b90506012548111156116ad576116ac61472a565b5b6116b782826125bf565b6116bf612981565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546117679061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546117939061400f565b80156117e05780601f106117b5576101008083540402835291602001916117e0565b820191906000526020600020905b8154815290600101906020018083116117c357829003601f168201915b5050505050905090565b6000801b81565b6118036117fc611e3e565b838361299b565b5050565b6118387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611833611e3e565b6116ed565b611877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186e90614685565b60405180910390fd5b6000611881612964565b9050601254828261189291906146d4565b11156118a1576118a061472a565b5b60008190505b82826118b391906146d4565b8110156118df576118c484826125bf565b6118cc612981565b80806118d790614759565b9150506118a7565b50505050565b6118f66118f0611e3e565b83612025565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c90614489565b60405180910390fd5b61194184848484612b08565b50505050565b6119787f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611973611e3e565b6116ed565b6119b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ae90614685565b60405180910390fd5b601381116119c8576119c761472a565b5b6105f281106119da576119d961472a565b5b6119e482826125bf565b5050565b60606119f2611a6f565b6119fb83612b64565b604051602001611a0c929190614a55565b6040516020818303038152906040529050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611a4f82610f5e565b611a6081611a5b611e3e565b61235f565b611a6a83836124dd565b505050565b60606040518060600160405280603a81526020016153c7603a9139905090565b611a97611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611ab56116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0290614619565b60405180910390fd5b8060108190555050565b606060405180608001604052806043815260200161540160439139905090565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611bad91906139e4565b602060405180830381865afa158015611bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bee9190614ab7565b73ffffffffffffffffffffffffffffffffffffffff161415611c14576001915050611c22565b611c1e8484612cc5565b9150505b92915050565b611c30611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611c4e6116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614619565b60405180910390fd5b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d5157600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611d55565b3390505b90565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dcb5750611dca82612d59565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611e48611ca7565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ec0836113a6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6e90614b56565b60405180910390fd5b6001611f8a611f8587612dd3565b612e3b565b83868660405160008152602001604052604051611faa9493929190614b85565b6020604051602081039080840390855afa158015611fcc573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361201d91906146d4565b905092915050565b600061203082611dd2565b61206f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206690614c3c565b60405180910390fd5b600061207a836113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e957508373ffffffffffffffffffffffffffffffffffffffff166120d184610a9f565b73ffffffffffffffffffffffffffffffffffffffff16145b806120fa57506120f98185611b35565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612123826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217090614cce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e090614d60565b60405180910390fd5b6121f4838383612e74565b6121ff600082611e4d565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224f9190614d80565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122a691906146d4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61236982826116ed565b6123f85761238e8173ffffffffffffffffffffffffffffffffffffffff166014612f88565b61239c8360001c6020612f88565b6040516020016123ad929190614e4c565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef919061391e565b60405180910390fd5b5050565b61240682826116ed565b6124d9576001600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061247e611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6124e782826116ed565b156125bb576000600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612560611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561262f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262690614ed2565b60405180910390fd5b61263881611dd2565b15612678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266f90614f3e565b60405180910390fd5b61268460008383612e74565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126d491906146d4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000612798826113a6565b90506127a681600084612e74565b6127b1600083611e4d565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128019190614d80565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061297c600160105461200f90919063ffffffff16565b905090565b6010600081548092919061299490614759565b9190505550565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0190614faa565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612afb919061386a565b60405180910390a3505050565b612b13848484612103565b612b1f848484846131c4565b612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b559061503c565b60405180910390fd5b50505050565b60606000821415612bac576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612cc0565b600082905060005b60008214612bde578080612bc790614759565b915050600a82612bd7919061508b565b9150612bb4565b60008167ffffffffffffffff811115612bfa57612bf9613a75565b5b6040519080825280601f01601f191660200182016040528015612c2c5781602001600182028036833780820191505090505b5090505b60008514612cb957600182612c459190614d80565b9150600a85612c5491906150bc565b6030612c6091906146d4565b60f81b818381518110612c7657612c756148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612cb2919061508b565b9450612c30565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612dcc5750612dcb8261334c565b5b9050919050565b6000604051806080016040528060438152602001615384604391398051906020012082600001518360200151846040015180519060200120604051602001612e1e94939291906150ed565b604051602081830303815290604052805190602001209050919050565b6000612e45610ef4565b82604051602001612e5792919061519f565b604051602081830303815290604052805190602001209050919050565b612e7f83838361342e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ec257612ebd81613433565b612f01565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f0057612eff838261347c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f4457612f3f816135e9565b612f83565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f8257612f8182826136ba565b5b5b505050565b606060006002836002612f9b91906151d6565b612fa591906146d4565b67ffffffffffffffff811115612fbe57612fbd613a75565b5b6040519080825280601f01601f191660200182016040528015612ff05781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613028576130276148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061308c5761308b6148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026130cc91906151d6565b6130d691906146d4565b90505b6001811115613176577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613118576131176148c6565b5b1a60f81b82828151811061312f5761312e6148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061316f90615230565b90506130d9565b50600084146131ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b1906152a6565b60405180910390fd5b8091505092915050565b60006131e58473ffffffffffffffffffffffffffffffffffffffff16613739565b1561333f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261320e611e3e565b8786866040518563ffffffff1660e01b815260040161323094939291906152c6565b6020604051808303816000875af192505050801561326c57506040513d601f19601f820116820180604052508101906132699190615327565b60015b6132ef573d806000811461329c576040519150601f19603f3d011682016040523d82523d6000602084013e6132a1565b606091505b506000815114156132e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132de9061503c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613344565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061341757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061342757506134268261374c565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613489846114de565b6134939190614d80565b9050600060076000848152602001908152602001600020549050818114613578576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135fd9190614d80565b905060006009600084815260200190815260200160002054905060006008838154811061362d5761362c6148c6565b5b90600052602060002001549050806008838154811061364f5761364e6148c6565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061369e5761369d615354565b5b6001900381819060005260206000200160009055905550505050565b60006136c5836114de565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137ff816137ca565b811461380a57600080fd5b50565b60008135905061381c816137f6565b92915050565b600060208284031215613838576138376137c0565b5b60006138468482850161380d565b91505092915050565b60008115159050919050565b6138648161384f565b82525050565b600060208201905061387f600083018461385b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138bf5780820151818401526020810190506138a4565b838111156138ce576000848401525b50505050565b6000601f19601f8301169050919050565b60006138f082613885565b6138fa8185613890565b935061390a8185602086016138a1565b613913816138d4565b840191505092915050565b6000602082019050818103600083015261393881846138e5565b905092915050565b6000819050919050565b61395381613940565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b6137c0565b5b600061399a84828501613961565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139ce826139a3565b9050919050565b6139de816139c3565b82525050565b60006020820190506139f960008301846139d5565b92915050565b613a08816139c3565b8114613a1357600080fd5b50565b600081359050613a25816139ff565b92915050565b60008060408385031215613a4257613a416137c0565b5b6000613a5085828601613a16565b9250506020613a6185828601613961565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613aad826138d4565b810181811067ffffffffffffffff82111715613acc57613acb613a75565b5b80604052505050565b6000613adf6137b6565b9050613aeb8282613aa4565b919050565b600067ffffffffffffffff821115613b0b57613b0a613a75565b5b613b14826138d4565b9050602081019050919050565b82818337600083830152505050565b6000613b43613b3e84613af0565b613ad5565b905082815260208101848484011115613b5f57613b5e613a70565b5b613b6a848285613b21565b509392505050565b600082601f830112613b8757613b86613a6b565b5b8135613b97848260208601613b30565b91505092915050565b6000819050919050565b613bb381613ba0565b8114613bbe57600080fd5b50565b600081359050613bd081613baa565b92915050565b600060ff82169050919050565b613bec81613bd6565b8114613bf757600080fd5b50565b600081359050613c0981613be3565b92915050565b600080600080600060a08688031215613c2b57613c2a6137c0565b5b6000613c3988828901613a16565b955050602086013567ffffffffffffffff811115613c5a57613c596137c5565b5b613c6688828901613b72565b9450506040613c7788828901613bc1565b9350506060613c8888828901613bc1565b9250506080613c9988828901613bfa565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613ccd82613ca6565b613cd78185613cb1565b9350613ce78185602086016138a1565b613cf0816138d4565b840191505092915050565b60006020820190508181036000830152613d158184613cc2565b905092915050565b613d2681613940565b82525050565b6000602082019050613d416000830184613d1d565b92915050565b613d5081613ba0565b82525050565b6000602082019050613d6b6000830184613d47565b92915050565b600080600060608486031215613d8a57613d896137c0565b5b6000613d9886828701613a16565b9350506020613da986828701613a16565b9250506040613dba86828701613961565b9150509250925092565b600060208284031215613dda57613dd96137c0565b5b6000613de884828501613bc1565b91505092915050565b600060208284031215613e0757613e066137c0565b5b6000613e1584828501613a16565b91505092915050565b60008060408385031215613e3557613e346137c0565b5b6000613e4385828601613bc1565b9250506020613e5485828601613a16565b9150509250929050565b600080600060608486031215613e7757613e766137c0565b5b6000613e8586828701613a16565b9350506020613e9686828701613961565b9250506040613ea786828701613961565b9150509250925092565b613eba8161384f565b8114613ec557600080fd5b50565b600081359050613ed781613eb1565b92915050565b60008060408385031215613ef457613ef36137c0565b5b6000613f0285828601613a16565b9250506020613f1385828601613ec8565b9150509250929050565b60008060008060808587031215613f3757613f366137c0565b5b6000613f4587828801613a16565b9450506020613f5687828801613a16565b9350506040613f6787828801613961565b925050606085013567ffffffffffffffff811115613f8857613f876137c5565b5b613f9487828801613b72565b91505092959194509250565b60008060408385031215613fb757613fb66137c0565b5b6000613fc585828601613a16565b9250506020613fd685828601613a16565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061402757607f821691505b6020821081141561403b5761403a613fe0565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061409d602c83613890565b91506140a882614041565b604082019050919050565b600060208201905081810360008301526140cc81614090565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061412f602183613890565b915061413a826140d3565b604082019050919050565b6000602082019050818103600083015261415e81614122565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141c1603883613890565b91506141cc82614165565b604082019050919050565b600060208201905081810360008301526141f0816141b4565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000614253602183613890565b915061425e826141f7565b604082019050919050565b6000602082019050818103600083015261428281614246565b9050919050565b6000614294826139a3565b9050919050565b6142a481614289565b82525050565b60006060820190506142bf60008301866139d5565b6142cc602083018561429b565b81810360408301526142de8184613cc2565b9050949350505050565b600081905092915050565b60006142fe82613ca6565b61430881856142e8565b93506143188185602086016138a1565b80840191505092915050565b60008160601b9050919050565b600061433c82614324565b9050919050565b600061434e82614331565b9050919050565b614366614361826139c3565b614343565b82525050565b600061437882856142f3565b91506143848284614355565b6014820191508190509392505050565b60006143a082846142f3565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b60006143e1601c83613890565b91506143ec826143ab565b602082019050919050565b60006020820190508181036000830152614410816143d4565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614473603183613890565b915061447e82614417565b604082019050919050565b600060208201905081810360008301526144a281614466565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614505602b83613890565b9150614510826144a9565b604082019050919050565b60006020820190508181036000830152614534816144f8565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614597602f83613890565b91506145a28261453b565b604082019050919050565b600060208201905081810360008301526145c68161458a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614603602083613890565b915061460e826145cd565b602082019050919050565b60006020820190508181036000830152614632816145f6565b9050919050565b7f43616c6c6572206973206e6f742061206d696e74657200000000000000000000600082015250565b600061466f601683613890565b915061467a82614639565b602082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146df82613940565b91506146ea83613940565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561471f5761471e6146a5565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b600061476482613940565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614797576147966146a5565b5b600182019050919050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b60006147fe603083613890565b9150614809826147a2565b604082019050919050565b6000602082019050818103600083015261482d816147f1565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614890602c83613890565b915061489b82614834565b604082019050919050565b600060208201905081810360008301526148bf81614883565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614951602983613890565b915061495c826148f5565b604082019050919050565b6000602082019050818103600083015261498081614944565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006149e3602a83613890565b91506149ee82614987565b604082019050919050565b60006020820190508181036000830152614a12816149d6565b9050919050565b600081905092915050565b6000614a2f82613885565b614a398185614a19565b9350614a498185602086016138a1565b80840191505092915050565b6000614a618285614a24565b9150614a6d8284614a24565b91508190509392505050565b6000614a84826139c3565b9050919050565b614a9481614a79565b8114614a9f57600080fd5b50565b600081519050614ab181614a8b565b92915050565b600060208284031215614acd57614acc6137c0565b5b6000614adb84828501614aa2565b91505092915050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614b40602583613890565b9150614b4b82614ae4565b604082019050919050565b60006020820190508181036000830152614b6f81614b33565b9050919050565b614b7f81613bd6565b82525050565b6000608082019050614b9a6000830187613d47565b614ba76020830186614b76565b614bb46040830185613d47565b614bc16060830184613d47565b95945050505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c26602c83613890565b9150614c3182614bca565b604082019050919050565b60006020820190508181036000830152614c5581614c19565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614cb8602983613890565b9150614cc382614c5c565b604082019050919050565b60006020820190508181036000830152614ce781614cab565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d4a602483613890565b9150614d5582614cee565b604082019050919050565b60006020820190508181036000830152614d7981614d3d565b9050919050565b6000614d8b82613940565b9150614d9683613940565b925082821015614da957614da86146a5565b5b828203905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614dea601783614a19565b9150614df582614db4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614e36601183614a19565b9150614e4182614e00565b601182019050919050565b6000614e5782614ddd565b9150614e638285614a24565b9150614e6e82614e29565b9150614e7a8284614a24565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614ebc602083613890565b9150614ec782614e86565b602082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614f28601c83613890565b9150614f3382614ef2565b602082019050919050565b60006020820190508181036000830152614f5781614f1b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614f94601983613890565b9150614f9f82614f5e565b602082019050919050565b60006020820190508181036000830152614fc381614f87565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615026603283613890565b915061503182614fca565b604082019050919050565b6000602082019050818103600083015261505581615019565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061509682613940565b91506150a183613940565b9250826150b1576150b061505c565b5b828204905092915050565b60006150c782613940565b91506150d283613940565b9250826150e2576150e161505c565b5b828206905092915050565b60006080820190506151026000830187613d47565b61510f6020830186613d1d565b61511c60408301856139d5565b6151296060830184613d47565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615168600283614a19565b915061517382615132565b600282019050919050565b6000819050919050565b61519961519482613ba0565b61517e565b82525050565b60006151aa8261515b565b91506151b68285615188565b6020820191506151c68284615188565b6020820191508190509392505050565b60006151e182613940565b91506151ec83613940565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615225576152246146a5565b5b828202905092915050565b600061523b82613940565b9150600082141561524f5761524e6146a5565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615290602083613890565b915061529b8261525a565b602082019050919050565b600060208201905081810360008301526152bf81615283565b9050919050565b60006080820190506152db60008301876139d5565b6152e860208301866139d5565b6152f56040830185613d1d565b81810360608301526153078184613cc2565b905095945050505050565b600081519050615321816137f6565b92915050565b60006020828403121561533d5761533c6137c0565b5b600061534b84828501615312565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f617069322e73686167677973686565702e6c6966652f6170692f6d6574612f74696d652d74726176656c2d746f74732d322f68747470733a2f2f617069322e73686167677973686565702e6c6966652f6170692f6d6574612f636f6e74726163742f74696d652f74726176656c2d746f74732d322fa264697066735822122025fb1a138c6032ae8a9915835b8c9d22bb0216a7a30861b7aca41a6d981d4da464736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102515760003560e01c80636352211e11610139578063a8c90cb2116100b6578063d547741f1161007a578063d547741f146108ed578063d547cfb714610916578063e20eedc814610941578063e8a3d4851461096a578063e985e9c514610995578063f2fde38b146109d257610251565b8063a8c90cb21461080a578063b88d4fde14610833578063b9bc85db1461085c578063c87b56dd14610885578063d5391393146108c257610251565b80638da5cb5b116100fd5780638da5cb5b1461072357806391d148541461074e57806395d89b411461078b578063a217fddf146107b6578063a22cb465146107e157610251565b80636352211e1461064057806366d49bab1461067d57806370a08231146106a6578063715018a6146106e3578063755edd17146106fa57610251565b8063282c51f3116101d257806336568abe1161019657806336568abe146105345780633bac75531461055d57806342842e0e1461058657806342966c68146105af5780634f6ccce7146105d8578063561892361461061557610251565b8063282c51f31461043b5780632d0335ab146104665780632f2ff15d146104a35780632f745c59146104cc5780633408e4701461050957610251565b80630f7e5970116102195780630f7e59701461035457806318160ddd1461037f57806320379ee5146103aa57806323b872dd146103d5578063248a9ca3146103fe57610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb5780630c53c51c14610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613822565b6109fb565b60405161028a919061386a565b60405180910390f35b34801561029f57600080fd5b506102a8610a0d565b6040516102b5919061391e565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613976565b610a9f565b6040516102f291906139e4565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613a2b565b610b24565b005b61033e60048036038101906103399190613c0f565b610c3c565b60405161034b9190613cfb565b60405180910390f35b34801561036057600080fd5b50610369610eae565b604051610376919061391e565b60405180910390f35b34801561038b57600080fd5b50610394610ee7565b6040516103a19190613d2c565b60405180910390f35b3480156103b657600080fd5b506103bf610ef4565b6040516103cc9190613d56565b60405180910390f35b3480156103e157600080fd5b506103fc60048036038101906103f79190613d71565b610efe565b005b34801561040a57600080fd5b5061042560048036038101906104209190613dc4565b610f5e565b6040516104329190613d56565b60405180910390f35b34801561044757600080fd5b50610450610f7e565b60405161045d9190613d56565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190613df1565b610fa2565b60405161049a9190613d2c565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613e1e565b610feb565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613a2b565b611014565b6040516105009190613d2c565b60405180910390f35b34801561051557600080fd5b5061051e6110b9565b60405161052b9190613d2c565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190613e1e565b6110c6565b005b34801561056957600080fd5b50610584600480360381019061057f9190613e5e565b611149565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613d71565b61128f565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190613976565b6112af565b005b3480156105e457600080fd5b506105ff60048036038101906105fa9190613976565b61132b565b60405161060c9190613d2c565b60405180910390f35b34801561062157600080fd5b5061062a61139c565b6040516106379190613d2c565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613976565b6113a6565b60405161067491906139e4565b60405180910390f35b34801561068957600080fd5b506106a4600480360381019061069f9190613976565b611458565b005b3480156106b257600080fd5b506106cd60048036038101906106c89190613df1565b6114de565b6040516106da9190613d2c565b60405180910390f35b3480156106ef57600080fd5b506106f8611596565b005b34801561070657600080fd5b50610721600480360381019061071c9190613df1565b61161e565b005b34801561072f57600080fd5b506107386116c3565b60405161074591906139e4565b60405180910390f35b34801561075a57600080fd5b5061077560048036038101906107709190613e1e565b6116ed565b604051610782919061386a565b60405180910390f35b34801561079757600080fd5b506107a0611758565b6040516107ad919061391e565b60405180910390f35b3480156107c257600080fd5b506107cb6117ea565b6040516107d89190613d56565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190613edd565b6117f1565b005b34801561081657600080fd5b50610831600480360381019061082c9190613a2b565b611807565b005b34801561083f57600080fd5b5061085a60048036038101906108559190613f1d565b6118e5565b005b34801561086857600080fd5b50610883600480360381019061087e9190613a2b565b611947565b005b34801561089157600080fd5b506108ac60048036038101906108a79190613976565b6119e8565b6040516108b9919061391e565b60405180910390f35b3480156108ce57600080fd5b506108d7611a22565b6040516108e49190613d56565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f9190613e1e565b611a46565b005b34801561092257600080fd5b5061092b611a6f565b604051610938919061391e565b60405180910390f35b34801561094d57600080fd5b5061096860048036038101906109639190613976565b611a8f565b005b34801561097657600080fd5b5061097f611b15565b60405161098c919061391e565b60405180910390f35b3480156109a157600080fd5b506109bc60048036038101906109b79190613fa0565b611b35565b6040516109c9919061386a565b60405180910390f35b3480156109de57600080fd5b506109f960048036038101906109f49190613df1565b611c28565b005b6000610a0682611d58565b9050919050565b606060008054610a1c9061400f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a489061400f565b8015610a955780601f10610a6a57610100808354040283529160200191610a95565b820191906000526020600020905b815481529060010190602001808311610a7857829003601f168201915b5050505050905090565b6000610aaa82611dd2565b610ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae0906140b3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2f826113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9790614145565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbf611e3e565b73ffffffffffffffffffffffffffffffffffffffff161480610bee5750610bed81610be8611e3e565b611b35565b5b610c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c24906141d7565b60405180910390fd5b610c378383611e4d565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610cbf8782878787611f06565b610cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf590614269565b60405180910390fd5b610d516001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461200f90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610dc7939291906142aa565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610dfc92919061436c565b604051602081830303815290604052604051610e189190614394565b6000604051808303816000865af19150503d8060008114610e55576040519150601f19603f3d011682016040523d82523d6000602084013e610e5a565b606091505b509150915081610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e96906143f7565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610f0f610f09611e3e565b82612025565b610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590614489565b60405180910390fd5b610f59838383612103565b505050565b6000600e6000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ff482610f5e565b61100581611000611e3e565b61235f565b61100f83836123fc565b505050565b600061101f836114de565b8210611060576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110579061451b565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b6110ce611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461113b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611132906145ad565b60405180910390fd5b61114582826124dd565b5050565b611151611e3e565b73ffffffffffffffffffffffffffffffffffffffff1661116f6116c3565b73ffffffffffffffffffffffffffffffffffffffff16146111c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bc90614619565b60405180910390fd5b6111f67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66111f1611e3e565b6116ed565b611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c90614685565b60405180910390fd5b601254828261124491906146d4565b11156112535761125261472a565b5b60008190505b828261126591906146d4565b8110156112895761127684826125bf565b808061128190614759565b915050611259565b50505050565b6112aa838383604051806020016040528060008152506118e5565b505050565b6112e07f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8486112db611e3e565b6116ed565b61131f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131690614814565b60405180910390fd5b6113288161278d565b50565b6000611335610ee7565b8210611376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136d906148a6565b60405180910390fd5b6008828154811061138a576113896148c6565b5b90600052602060002001549050919050565b6000601054905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614967565b60405180910390fd5b80915050919050565b611460611e3e565b73ffffffffffffffffffffffffffffffffffffffff1661147e6116c3565b73ffffffffffffffffffffffffffffffffffffffff16146114d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cb90614619565b60405180910390fd5b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561154f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611546906149f9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61159e611e3e565b73ffffffffffffffffffffffffffffffffffffffff166115bc6116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160990614619565b60405180910390fd5b61161c600061289e565b565b61164f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661164a611e3e565b6116ed565b61168e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168590614685565b60405180910390fd5b6000611698612964565b90506012548111156116ad576116ac61472a565b5b6116b782826125bf565b6116bf612981565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546117679061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546117939061400f565b80156117e05780601f106117b5576101008083540402835291602001916117e0565b820191906000526020600020905b8154815290600101906020018083116117c357829003601f168201915b5050505050905090565b6000801b81565b6118036117fc611e3e565b838361299b565b5050565b6118387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611833611e3e565b6116ed565b611877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186e90614685565b60405180910390fd5b6000611881612964565b9050601254828261189291906146d4565b11156118a1576118a061472a565b5b60008190505b82826118b391906146d4565b8110156118df576118c484826125bf565b6118cc612981565b80806118d790614759565b9150506118a7565b50505050565b6118f66118f0611e3e565b83612025565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c90614489565b60405180910390fd5b61194184848484612b08565b50505050565b6119787f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611973611e3e565b6116ed565b6119b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ae90614685565b60405180910390fd5b601381116119c8576119c761472a565b5b6105f281106119da576119d961472a565b5b6119e482826125bf565b5050565b60606119f2611a6f565b6119fb83612b64565b604051602001611a0c929190614a55565b6040516020818303038152906040529050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611a4f82610f5e565b611a6081611a5b611e3e565b61235f565b611a6a83836124dd565b505050565b60606040518060600160405280603a81526020016153c7603a9139905090565b611a97611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611ab56116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0290614619565b60405180910390fd5b8060108190555050565b606060405180608001604052806043815260200161540160439139905090565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611bad91906139e4565b602060405180830381865afa158015611bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bee9190614ab7565b73ffffffffffffffffffffffffffffffffffffffff161415611c14576001915050611c22565b611c1e8484612cc5565b9150505b92915050565b611c30611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611c4e6116c3565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614619565b60405180910390fd5b50565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d5157600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611d55565b3390505b90565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dcb5750611dca82612d59565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611e48611ca7565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ec0836113a6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6e90614b56565b60405180910390fd5b6001611f8a611f8587612dd3565b612e3b565b83868660405160008152602001604052604051611faa9493929190614b85565b6020604051602081039080840390855afa158015611fcc573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361201d91906146d4565b905092915050565b600061203082611dd2565b61206f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206690614c3c565b60405180910390fd5b600061207a836113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e957508373ffffffffffffffffffffffffffffffffffffffff166120d184610a9f565b73ffffffffffffffffffffffffffffffffffffffff16145b806120fa57506120f98185611b35565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612123826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217090614cce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e090614d60565b60405180910390fd5b6121f4838383612e74565b6121ff600082611e4d565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224f9190614d80565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122a691906146d4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61236982826116ed565b6123f85761238e8173ffffffffffffffffffffffffffffffffffffffff166014612f88565b61239c8360001c6020612f88565b6040516020016123ad929190614e4c565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef919061391e565b60405180910390fd5b5050565b61240682826116ed565b6124d9576001600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061247e611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6124e782826116ed565b156125bb576000600e600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612560611e3e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561262f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262690614ed2565b60405180910390fd5b61263881611dd2565b15612678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266f90614f3e565b60405180910390fd5b61268460008383612e74565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126d491906146d4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000612798826113a6565b90506127a681600084612e74565b6127b1600083611e4d565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128019190614d80565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061297c600160105461200f90919063ffffffff16565b905090565b6010600081548092919061299490614759565b9190505550565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0190614faa565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612afb919061386a565b60405180910390a3505050565b612b13848484612103565b612b1f848484846131c4565b612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b559061503c565b60405180910390fd5b50505050565b60606000821415612bac576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612cc0565b600082905060005b60008214612bde578080612bc790614759565b915050600a82612bd7919061508b565b9150612bb4565b60008167ffffffffffffffff811115612bfa57612bf9613a75565b5b6040519080825280601f01601f191660200182016040528015612c2c5781602001600182028036833780820191505090505b5090505b60008514612cb957600182612c459190614d80565b9150600a85612c5491906150bc565b6030612c6091906146d4565b60f81b818381518110612c7657612c756148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612cb2919061508b565b9450612c30565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612dcc5750612dcb8261334c565b5b9050919050565b6000604051806080016040528060438152602001615384604391398051906020012082600001518360200151846040015180519060200120604051602001612e1e94939291906150ed565b604051602081830303815290604052805190602001209050919050565b6000612e45610ef4565b82604051602001612e5792919061519f565b604051602081830303815290604052805190602001209050919050565b612e7f83838361342e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ec257612ebd81613433565b612f01565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f0057612eff838261347c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f4457612f3f816135e9565b612f83565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f8257612f8182826136ba565b5b5b505050565b606060006002836002612f9b91906151d6565b612fa591906146d4565b67ffffffffffffffff811115612fbe57612fbd613a75565b5b6040519080825280601f01601f191660200182016040528015612ff05781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613028576130276148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061308c5761308b6148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026130cc91906151d6565b6130d691906146d4565b90505b6001811115613176577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613118576131176148c6565b5b1a60f81b82828151811061312f5761312e6148c6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061316f90615230565b90506130d9565b50600084146131ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b1906152a6565b60405180910390fd5b8091505092915050565b60006131e58473ffffffffffffffffffffffffffffffffffffffff16613739565b1561333f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261320e611e3e565b8786866040518563ffffffff1660e01b815260040161323094939291906152c6565b6020604051808303816000875af192505050801561326c57506040513d601f19601f820116820180604052508101906132699190615327565b60015b6132ef573d806000811461329c576040519150601f19603f3d011682016040523d82523d6000602084013e6132a1565b606091505b506000815114156132e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132de9061503c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613344565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061341757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061342757506134268261374c565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613489846114de565b6134939190614d80565b9050600060076000848152602001908152602001600020549050818114613578576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135fd9190614d80565b905060006009600084815260200190815260200160002054905060006008838154811061362d5761362c6148c6565b5b90600052602060002001549050806008838154811061364f5761364e6148c6565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061369e5761369d615354565b5b6001900381819060005260206000200160009055905550505050565b60006136c5836114de565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6137ff816137ca565b811461380a57600080fd5b50565b60008135905061381c816137f6565b92915050565b600060208284031215613838576138376137c0565b5b60006138468482850161380d565b91505092915050565b60008115159050919050565b6138648161384f565b82525050565b600060208201905061387f600083018461385b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138bf5780820151818401526020810190506138a4565b838111156138ce576000848401525b50505050565b6000601f19601f8301169050919050565b60006138f082613885565b6138fa8185613890565b935061390a8185602086016138a1565b613913816138d4565b840191505092915050565b6000602082019050818103600083015261393881846138e5565b905092915050565b6000819050919050565b61395381613940565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b6137c0565b5b600061399a84828501613961565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139ce826139a3565b9050919050565b6139de816139c3565b82525050565b60006020820190506139f960008301846139d5565b92915050565b613a08816139c3565b8114613a1357600080fd5b50565b600081359050613a25816139ff565b92915050565b60008060408385031215613a4257613a416137c0565b5b6000613a5085828601613a16565b9250506020613a6185828601613961565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613aad826138d4565b810181811067ffffffffffffffff82111715613acc57613acb613a75565b5b80604052505050565b6000613adf6137b6565b9050613aeb8282613aa4565b919050565b600067ffffffffffffffff821115613b0b57613b0a613a75565b5b613b14826138d4565b9050602081019050919050565b82818337600083830152505050565b6000613b43613b3e84613af0565b613ad5565b905082815260208101848484011115613b5f57613b5e613a70565b5b613b6a848285613b21565b509392505050565b600082601f830112613b8757613b86613a6b565b5b8135613b97848260208601613b30565b91505092915050565b6000819050919050565b613bb381613ba0565b8114613bbe57600080fd5b50565b600081359050613bd081613baa565b92915050565b600060ff82169050919050565b613bec81613bd6565b8114613bf757600080fd5b50565b600081359050613c0981613be3565b92915050565b600080600080600060a08688031215613c2b57613c2a6137c0565b5b6000613c3988828901613a16565b955050602086013567ffffffffffffffff811115613c5a57613c596137c5565b5b613c6688828901613b72565b9450506040613c7788828901613bc1565b9350506060613c8888828901613bc1565b9250506080613c9988828901613bfa565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613ccd82613ca6565b613cd78185613cb1565b9350613ce78185602086016138a1565b613cf0816138d4565b840191505092915050565b60006020820190508181036000830152613d158184613cc2565b905092915050565b613d2681613940565b82525050565b6000602082019050613d416000830184613d1d565b92915050565b613d5081613ba0565b82525050565b6000602082019050613d6b6000830184613d47565b92915050565b600080600060608486031215613d8a57613d896137c0565b5b6000613d9886828701613a16565b9350506020613da986828701613a16565b9250506040613dba86828701613961565b9150509250925092565b600060208284031215613dda57613dd96137c0565b5b6000613de884828501613bc1565b91505092915050565b600060208284031215613e0757613e066137c0565b5b6000613e1584828501613a16565b91505092915050565b60008060408385031215613e3557613e346137c0565b5b6000613e4385828601613bc1565b9250506020613e5485828601613a16565b9150509250929050565b600080600060608486031215613e7757613e766137c0565b5b6000613e8586828701613a16565b9350506020613e9686828701613961565b9250506040613ea786828701613961565b9150509250925092565b613eba8161384f565b8114613ec557600080fd5b50565b600081359050613ed781613eb1565b92915050565b60008060408385031215613ef457613ef36137c0565b5b6000613f0285828601613a16565b9250506020613f1385828601613ec8565b9150509250929050565b60008060008060808587031215613f3757613f366137c0565b5b6000613f4587828801613a16565b9450506020613f5687828801613a16565b9350506040613f6787828801613961565b925050606085013567ffffffffffffffff811115613f8857613f876137c5565b5b613f9487828801613b72565b91505092959194509250565b60008060408385031215613fb757613fb66137c0565b5b6000613fc585828601613a16565b9250506020613fd685828601613a16565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061402757607f821691505b6020821081141561403b5761403a613fe0565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061409d602c83613890565b91506140a882614041565b604082019050919050565b600060208201905081810360008301526140cc81614090565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061412f602183613890565b915061413a826140d3565b604082019050919050565b6000602082019050818103600083015261415e81614122565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141c1603883613890565b91506141cc82614165565b604082019050919050565b600060208201905081810360008301526141f0816141b4565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000614253602183613890565b915061425e826141f7565b604082019050919050565b6000602082019050818103600083015261428281614246565b9050919050565b6000614294826139a3565b9050919050565b6142a481614289565b82525050565b60006060820190506142bf60008301866139d5565b6142cc602083018561429b565b81810360408301526142de8184613cc2565b9050949350505050565b600081905092915050565b60006142fe82613ca6565b61430881856142e8565b93506143188185602086016138a1565b80840191505092915050565b60008160601b9050919050565b600061433c82614324565b9050919050565b600061434e82614331565b9050919050565b614366614361826139c3565b614343565b82525050565b600061437882856142f3565b91506143848284614355565b6014820191508190509392505050565b60006143a082846142f3565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b60006143e1601c83613890565b91506143ec826143ab565b602082019050919050565b60006020820190508181036000830152614410816143d4565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614473603183613890565b915061447e82614417565b604082019050919050565b600060208201905081810360008301526144a281614466565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614505602b83613890565b9150614510826144a9565b604082019050919050565b60006020820190508181036000830152614534816144f8565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614597602f83613890565b91506145a28261453b565b604082019050919050565b600060208201905081810360008301526145c68161458a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614603602083613890565b915061460e826145cd565b602082019050919050565b60006020820190508181036000830152614632816145f6565b9050919050565b7f43616c6c6572206973206e6f742061206d696e74657200000000000000000000600082015250565b600061466f601683613890565b915061467a82614639565b602082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146df82613940565b91506146ea83613940565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561471f5761471e6146a5565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b600061476482613940565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614797576147966146a5565b5b600182019050919050565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b60006147fe603083613890565b9150614809826147a2565b604082019050919050565b6000602082019050818103600083015261482d816147f1565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614890602c83613890565b915061489b82614834565b604082019050919050565b600060208201905081810360008301526148bf81614883565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614951602983613890565b915061495c826148f5565b604082019050919050565b6000602082019050818103600083015261498081614944565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006149e3602a83613890565b91506149ee82614987565b604082019050919050565b60006020820190508181036000830152614a12816149d6565b9050919050565b600081905092915050565b6000614a2f82613885565b614a398185614a19565b9350614a498185602086016138a1565b80840191505092915050565b6000614a618285614a24565b9150614a6d8284614a24565b91508190509392505050565b6000614a84826139c3565b9050919050565b614a9481614a79565b8114614a9f57600080fd5b50565b600081519050614ab181614a8b565b92915050565b600060208284031215614acd57614acc6137c0565b5b6000614adb84828501614aa2565b91505092915050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614b40602583613890565b9150614b4b82614ae4565b604082019050919050565b60006020820190508181036000830152614b6f81614b33565b9050919050565b614b7f81613bd6565b82525050565b6000608082019050614b9a6000830187613d47565b614ba76020830186614b76565b614bb46040830185613d47565b614bc16060830184613d47565b95945050505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c26602c83613890565b9150614c3182614bca565b604082019050919050565b60006020820190508181036000830152614c5581614c19565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614cb8602983613890565b9150614cc382614c5c565b604082019050919050565b60006020820190508181036000830152614ce781614cab565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d4a602483613890565b9150614d5582614cee565b604082019050919050565b60006020820190508181036000830152614d7981614d3d565b9050919050565b6000614d8b82613940565b9150614d9683613940565b925082821015614da957614da86146a5565b5b828203905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614dea601783614a19565b9150614df582614db4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614e36601183614a19565b9150614e4182614e00565b601182019050919050565b6000614e5782614ddd565b9150614e638285614a24565b9150614e6e82614e29565b9150614e7a8284614a24565b91508190509392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614ebc602083613890565b9150614ec782614e86565b602082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614f28601c83613890565b9150614f3382614ef2565b602082019050919050565b60006020820190508181036000830152614f5781614f1b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614f94601983613890565b9150614f9f82614f5e565b602082019050919050565b60006020820190508181036000830152614fc381614f87565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615026603283613890565b915061503182614fca565b604082019050919050565b6000602082019050818103600083015261505581615019565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061509682613940565b91506150a183613940565b9250826150b1576150b061505c565b5b828204905092915050565b60006150c782613940565b91506150d283613940565b9250826150e2576150e161505c565b5b828206905092915050565b60006080820190506151026000830187613d47565b61510f6020830186613d1d565b61511c60408301856139d5565b6151296060830184613d47565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615168600283614a19565b915061517382615132565b600282019050919050565b6000819050919050565b61519961519482613ba0565b61517e565b82525050565b60006151aa8261515b565b91506151b68285615188565b6020820191506151c68284615188565b6020820191508190509392505050565b60006151e182613940565b91506151ec83613940565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615225576152246146a5565b5b828202905092915050565b600061523b82613940565b9150600082141561524f5761524e6146a5565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615290602083613890565b915061529b8261525a565b602082019050919050565b600060208201905081810360008301526152bf81615283565b9050919050565b60006080820190506152db60008301876139d5565b6152e860208301866139d5565b6152f56040830185613d1d565b81810360608301526153078184613cc2565b905095945050505050565b600081519050615321816137f6565b92915050565b60006020828403121561533d5761533c6137c0565b5b600061534b84828501615312565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f617069322e73686167677973686565702e6c6966652f6170692f6d6574612f74696d652d74726176656c2d746f74732d322f68747470733a2f2f617069322e73686167677973686565702e6c6966652f6170692f6d6574612f636f6e74726163742f74696d652f74726176656c2d746f74732d322fa264697066735822122025fb1a138c6032ae8a9915835b8c9d22bb0216a7a30861b7aca41a6d981d4da464736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.