Overview
TokenID
2
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
cybercity
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.4.22 <0.9.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract cybercity is ERC1155, Ownable { using SafeMath for uint256; using Strings for uint256; // Events event sellStart(uint256 tokenId); event sellStop(uint256 tokenId); // Constants // Token IDs uint256 private constant REDEMPTION_TOKEN = 1; uint256 private constant RESIDENT_PASS = 2; // Sell lifecycle states uint256 private constant REDEMPTION_WHITELIST = 1; uint256 private constant REDEMPTION_PUBLIC = 2; uint256 private constant RESIDENT_WHITELIST = 3; uint256 private constant RESIDENT_FREEMINT = 4; uint256 private constant RESIDENT_PUBLIC = 5; uint256 private constant SELL_DISABLED = 9; string private constant _metaDataUri = "ipfs://Qmb3udsjQrejVrZDKcRjALYG7bCpWvDhF1iwTqccpdaBQV/"; string private constant _contractURI = "https://ipfs.io/ipfs/QmdUFj45bezoLNocd9zc7u8MLSeNta2Rdpe8F5TFCQcMxJ"; uint256 private constant _MaxMint = 5; uint256 private constant _maxRedemptionSupply = 3000; uint256 private constant _maxResidentSupply = 10000; uint256 private constant _redemptionWLPrice = 0.08 ether; uint256 private constant _redemptionPrice = 0.12 ether; address private constant _withdrawWallet = address(0xa3206DCDbfd313eEEb6F028fF27837421AfF7b20); // State Variables string public name = "Cyber City"; string public symbol = "CCY"; bool private _paused; bool private _redemptionSellStarted = false; bool private _ResidentSellStarted = false; uint256 private _lastMinted = 0; mapping(address => uint256) private _redemptionWhitelist; // Mapping address and whitelisted round mapping(address => uint256) private _residentWhitelist; // Mapping address and whitelisted round uint256 private _redemptionCurrentSupply = 0; uint256 private _residentCurrentSupply = 0; uint256 private _redemptionSelltimeStamp = 0; uint256 private _residentSelltimeStamp = 0; address private _proxyRegistryAddress; // OpenSea proxy registry address uint256 private _residentWLPrice = 0.0003 ether; uint256 private _residentPrice = 0.0003 ether; constructor(address __proxyRegistryAddress) ERC1155(_metaDataUri) { _proxyRegistryAddress = __proxyRegistryAddress; } /** * @dev Pauses / Resume contract operation. * */ function Pause() public onlyOwner { _paused = !_paused; } /** * @dev Mints tokens * * Requirements: * * - Contract not paused * - Valid token ID value 1 = REDEMPTION_TOKEN / 2 = RESIDENT_PASS * - Sell must be enabled * - Posible sell stages: * - REDEMPTION_WHITELIST(1): Only round 1 whitelisted wallts can mint * - REDEMPTION_PUBLIC(2): Every wallet can mint * - RESIDENT_WHITELIST(3): Only round 2 whitelisted wallets can mint * - RESIDENT_FREEMINT(4): Cannot mint in this method. User muist transfer REDEMPTION TOKENS. * - RESIDENT_PUBLIC(5): Every wallet can mint until reach max supply * - SELL_DISABLED(9): Cannot mint * - Every wallet can mint a maximun of 3 REDEMPTION or RESIDENT tokens */ function mint(uint256 tokenId, uint256 qty) public payable { require(!_paused,"Contract Paused"); require(tokenId == REDEMPTION_TOKEN || tokenId == RESIDENT_PASS, "Bad ID"); uint256 _currentStage = _getSellStage(); require(_currentStage != SELL_DISABLED,"Sell disabled"); require(tokenId == REDEMPTION_TOKEN ? _redemptionCurrentSupply + qty <= _maxRedemptionSupply : _residentCurrentSupply + qty <= _maxResidentSupply, "Max supply"); require(msg.value >= _getPrice(tokenId).mul(qty), "Wrong amt"); require(balanceOf(msg.sender, tokenId).add(qty) <= _MaxMint,"Max mint"); if (tokenId == REDEMPTION_TOKEN) {require(_currentStage==REDEMPTION_WHITELIST || _currentStage==REDEMPTION_PUBLIC,"Sell disabled");} if (tokenId == REDEMPTION_TOKEN) {require(_redemptionSellStarted,"Cannot sell");} if (tokenId == RESIDENT_PASS) {require(_ResidentSellStarted,"Cannot sell");} if (tokenId == REDEMPTION_TOKEN && _currentStage == REDEMPTION_WHITELIST) { require(_redemptionWhitelist[msg.sender] == 1,"Not Whitelisted"); } if (tokenId == RESIDENT_PASS && _currentStage == RESIDENT_WHITELIST) { require(_residentWhitelist[msg.sender] == 2,"Not Whitelisted"); } if (tokenId == RESIDENT_PASS && _currentStage == RESIDENT_FREEMINT) { // For resident pass free mint must invoke freeMint method revert(); } tokenId == REDEMPTION_TOKEN ? _redemptionCurrentSupply+=qty : _residentCurrentSupply+=qty; _mint(msg.sender, tokenId, qty, ""); } /** * @dev Empty receive function. * * Requirements: * * - Cannot send plain ether to this contract */ receive () external payable { revert(); } /** * @dev EmptyERC155 Token holder interface implementacion * * Requirements: * * - Cannot send plain ether to this contract */ function onERC1155Received( address, address, uint256, uint256, bytes memory ) public pure returns (bytes4) { return this.onERC1155Received.selector; } /** * @dev EmptyERC155 Token holder interface implementacion (batch mode) * * Requirements: * * - Cannot send plain ether to this contract */ function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public pure returns (bytes4) { return this.onERC1155BatchReceived.selector; } /** * @dev Mint NFT: This function is for mint REDEMPTION AND RESIDENT TOKENS, NFTs are * minted with supply 0. * At first call mints REDEMPTION TOKEN NFT and in second call MINTS RESIDENT PASS NFT * * Requirements: * * - Contract not paused. * - Only contract owner can mint NFTs */ function mintNFT() external onlyOwner { require(!_paused,"Contract Paused"); require(msg.sender != address(0),"Zero address"); require(_lastMinted <= 2,"NFT mint disabled"); _lastMinted = _lastMinted.add(1); (_lastMinted == 1) ? _redemptionCurrentSupply+=1:_residentCurrentSupply+=1; _mint(owner(), _lastMinted, 1, ""); } function freeRedemption( address[] calldata __wallets, uint256 __qty ) external onlyOwner { require(!_paused,"Contract Paused"); require(msg.sender != address(0),"Zero address"); for(uint i =0; i< __wallets.length; i++) { _redemptionCurrentSupply+=__qty; _mint(__wallets[i], 1, __qty, ""); } } /** * @dev Whitelist: This function is for add wallets to REDEMPTION AND RESIDENT TOKENs whitelist * Requirements: * * - Contract not paused. * - Only contract owner can whitelist wallets */ function whitelist( address[] calldata wallet, uint256 token_id) external onlyOwner { require(!_paused,"Contract Paused"); require(token_id == REDEMPTION_TOKEN || token_id == RESIDENT_PASS, "Bad ID"); for(uint i =0; i< wallet.length; i++){ (token_id == 1) ? _redemptionWhitelist[wallet[i]] = token_id : _residentWhitelist[wallet[i]] = token_id; } } /** * @dev whitelistRemove: This function is for remove wallets from REDEMPTION AND RESIDENT TOKENs whitelist * Requirements: * * - Contract not paused. * - Only contract owner can remove wallets * - Wallet must be whitelisted */ function whiteListRemove( address __wallet ) external onlyOwner { require(! _paused ); require(__wallet != address(0),"Zero address"); require(__wallet != owner(),"Owner Address"); delete _redemptionWhitelist[__wallet]; delete _residentWhitelist[__wallet]; } /** * @dev startSell: Signals sell period start for the selected token. * * - Contract not paused. * - Only contract owner can start sell */ function startSell( uint256 token_id ) external onlyOwner { require(!_paused,"Contract Paused"); require(token_id == REDEMPTION_TOKEN || token_id == RESIDENT_PASS, "Bad ID"); if (token_id == REDEMPTION_TOKEN) { _redemptionSellStarted = true; _redemptionSelltimeStamp = block.timestamp; } else { require(_redemptionSelltimeStamp > 0 ,"Start Redemption First"); _ResidentSellStarted = true; _residentSelltimeStamp = block.timestamp; } emit sellStart(token_id); } /** * @dev stopSell: Stops REDEMPTION TOKEN sell period. * * - Contract not paused. * - Only contract owner can stop sell */ function stopSell() external onlyOwner { require(!_paused,"Contract Paused"); require(_redemptionSellStarted,"Not started"); _redemptionSellStarted = false; emit sellStop(1); } /** * @dev withDraw: Sends contracts ethers to owner wallet. * * - Contract not paused. * - Only contract owner can whitelist wallets */ function withdraw( uint256 __amount) external onlyOwner { require(! _paused ); require(__amount <= address(this).balance); address payable _to = payable(_withdrawWallet); (bool sent, bytes memory data) = _to.call{value: __amount}(""); require(sent, "Failed to send Ether"); } /** * @dev setResidentPrice: Set redemption token, Whitelist and Public Sell price. * * - Contract not paused. * - Only contract owner can whitelist wallets * - Prices must be greater then zero */ function setResidentPrices( uint256 _WLPrice, uint256 _PublicPrice) external onlyOwner { require(! _paused ); require( _WLPrice > 0 || _PublicPrice > 0, "Invalid Price" ); _residentWLPrice = _WLPrice; _residentPrice = _PublicPrice; } /** * @dev isWhitelisted: Query if a wallet address is whitelisted * */ function isWhitelisted( address wallet, uint256 tokenId ) public view returns(bool) { return (tokenId == 1) ? _redemptionWhitelist[wallet] == tokenId : _residentWhitelist[wallet] == tokenId; } /** * @dev balance: eth balance for this contract * */ function balance() external view returns (uint256) { return address(this).balance; } /** * @dev uri: Returns metada file URI for the selected NFT * */ function uri(uint id) public view virtual override returns (string memory) { return string(abi.encodePacked(_metaDataUri, Strings.toString(id))); } /** * @dev baseTokenURI: Returns contract base URI for metadata files * */ function baseTokenURI() external pure returns (string memory) { return _metaDataUri; } /** * @dev contractURI: Returns contract METADATA for Opensea Collection Descripcion * */ function contractURI() external pure returns (string memory) { return _contractURI; } /** * @dev paused: Returns contract pause status * */ function paused() external view returns (bool) { return _paused; } /** * @dev tokenInfo: Returns basic token information for selected token ID * * - MaxSupply * - Current Supply * - Token mint Price in wei * - Sell status for the selected token */ function tokenInfo(uint256 tokenId) public view returns (uint256,uint256,uint256,uint256,bool,uint256) { if (tokenId == REDEMPTION_TOKEN) { return (_maxRedemptionSupply, _redemptionCurrentSupply, _redemptionPrice,_redemptionWLPrice, _redemptionSellStarted, _redemptionSelltimeStamp); } else { return (_maxResidentSupply, _residentCurrentSupply, _residentPrice, _residentWLPrice, _ResidentSellStarted, _residentSelltimeStamp); } } /** * @dev isMinted: Returns NFT mint status for selected token ID * */ function isMinted( uint256 tokenId) public view returns (bool) { return (_lastMinted >= tokenId); } /** * @dev getSellStage: Returns current sell stage relative to start sell timestamp * and current block timestamp * */ function getSellStage() public view returns (uint256) { return _getSellStage(); } /** * @dev isApprovedForAll: Returns isApprovedForAll standar ERC1155 method modified to return * always true for Opensea proxy contract. (frictionless opensea integration) * See Opensea tradable token. */ function isApprovedForAll( address account, address operator ) public view virtual override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(account)) == operator) { return true; } return super.isApprovedForAll(account,operator); } /** * @dev getPrice: Return selected token mint price. */ function getPrice( uint256 tokenId) public view returns (uint256) { return _getPrice(tokenId); } /** * @dev burn: Burns contract's obtained REDEMPTION tokens balance from RESIDENT PASS free mint. */ function burn() external onlyOwner returns (uint256) { require(!_paused,"Contract Paused"); uint256 _amount = balanceOf(address(this),REDEMPTION_TOKEN); require(_amount > 0,"No founds"); _redemptionCurrentSupply-=_amount; _burn(address(this),REDEMPTION_TOKEN,_amount); return _amount; } /** * @dev _getPrice: Return selected token mint price. */ function _getPrice( uint256 tokenId) private view returns (uint256) { uint256 _currentSellStage = _getSellStage(); if (tokenId == REDEMPTION_TOKEN && _currentSellStage == REDEMPTION_WHITELIST) { return _redemptionWLPrice; } if (tokenId == REDEMPTION_TOKEN && _currentSellStage == REDEMPTION_PUBLIC) { return _redemptionPrice; } if (tokenId == RESIDENT_PASS && _currentSellStage == RESIDENT_WHITELIST) { return _residentWLPrice; } if (tokenId == RESIDENT_PASS && _currentSellStage == RESIDENT_PUBLIC) { return _residentPrice; } if (tokenId == REDEMPTION_TOKEN ) { return _redemptionPrice; } return _residentPrice; } /** * @dev _getSellStage: Returns current sell stage relative to start sell timestamp * and current block timestamp * */ function _getSellStage() private view returns (uint256) { if (!_redemptionSellStarted && _redemptionSelltimeStamp == 0) {return SELL_DISABLED;} if (!_redemptionSellStarted && _redemptionSelltimeStamp > 0 && !_ResidentSellStarted) {return SELL_DISABLED;} // REDEMPTION TOKEN STAGES if (_redemptionSellStarted) { if (block.timestamp.sub(_redemptionSelltimeStamp) < 86400) { return REDEMPTION_WHITELIST; } else { return REDEMPTION_PUBLIC; } } // RESIDENT TOKEN STAGES if (_ResidentSellStarted) { if (block.timestamp.sub(_residentSelltimeStamp) < 86400) { return RESIDENT_WHITELIST; } if (block.timestamp.sub(_residentSelltimeStamp) < 172800) { return RESIDENT_FREEMINT; } else { return RESIDENT_PUBLIC; } } return SELL_DISABLED; } /** * @dev _beforeTokenTransfer: Modified _safeTransfer trigger to implement RESIDENT PASS FREE MINT. * After successfull transfer of REDEMPTION Tokens from user wallet to contract address, this function mints * one RESIDENT PASS TOKEN for each REDEMPTION TOKEN received. * */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { require(!_paused,"Contract Paused"); if (from != address(0) && from != address(this)) { require(operator == from,"Invalid mint"); uint arrayLength = ids.length; uint256 _sellStage = _getSellStage(); require(_sellStage == RESIDENT_FREEMINT || _sellStage == RESIDENT_PUBLIC,"Invalid stage"); if (to == address(this)) { for (uint i=0; i<arrayLength; i++) { if (ids[i] == RESIDENT_PASS) {revert();} if (ids[i] == REDEMPTION_TOKEN) { _residentCurrentSupply+=amounts[i]; _mint(from, RESIDENT_PASS, amounts[i], data); } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "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":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"sellStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"sellStop","type":"event"},{"inputs":[],"name":"Pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"__wallets","type":"address[]"},{"internalType":"uint256","name":"__qty","type":"uint256"}],"name":"freeRedemption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSellStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_WLPrice","type":"uint256"},{"internalType":"uint256","name":"_PublicPrice","type":"uint256"}],"name":"setResidentPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"startSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"__wallet","type":"address"}],"name":"whiteListRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallet","type":"address[]"},{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"__amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060400160405280600a81526020017f43796265722043697479000000000000000000000000000000000000000000008152506004908051906020019062000051929190620002b6565b506040518060400160405280600381526020017f4343590000000000000000000000000000000000000000000000000000000000815250600590805190602001906200009f929190620002b6565b506000600660016101000a81548160ff0219169083151502179055506000600660026101000a81548160ff02191690831515021790555060006007556000600a556000600b556000600c556000600d55660110d9316ec000600f55660110d9316ec0006010553480156200011257600080fd5b5060405162006434380380620064348339818101604052810190620001389190620003d0565b604051806060016040528060368152602001620063fe603691396200016381620001cc60201b60201c565b506200018462000178620001e860201b60201c565b620001f060201b60201c565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000467565b8060029080519060200190620001e4929190620002b6565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002c49062000431565b90600052602060002090601f016020900481019282620002e8576000855562000334565b82601f106200030357805160ff191683800117855562000334565b8280016001018555821562000334579182015b828111156200033357825182559160200191906001019062000316565b5b50905062000343919062000347565b5090565b5b808211156200036257600081600090555060010162000348565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000398826200036b565b9050919050565b620003aa816200038b565b8114620003b657600080fd5b50565b600081519050620003ca816200039f565b92915050565b600060208284031215620003e957620003e862000366565b5b6000620003f984828501620003b9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200044a57607f821691505b6020821081141562000461576200046062000402565b5b50919050565b615f8780620004776000396000f3fe6080604052600436106102075760003560e01c8063830639ac11610118578063cc33c875116100a0578063e8a3d4851161006f578063e8a3d48514610758578063e985e9c514610783578063f23a6e61146107c0578063f242432a146107fd578063f2fde38b1461082657610211565b8063cc33c87514610685578063d547cfb7146106c7578063e2e6c8bc146106f2578063e75722301461071b57610211565b8063a22cb465116100e7578063a22cb465146105a0578063aaf72773146105c9578063b69ef8a8146105f4578063bc197c811461061f578063c0124c3e1461065c57610211565b8063830639ac146104e45780638a38bcbc146105215780638da5cb5b1461054a57806395d89b411461057557610211565b80632eb2c2d61161019b5780634e1273f41161016a5780634e1273f4146104375780635c975abb1461047457806361aebe591461049f5780636985a022146104b6578063715018a6146104cd57610211565b80632eb2c2d61461037d57806333c41a90146103a657806344df8e70146103e35780634c502d7d1461040e57610211565b806314f710fe116101d757806314f710fe146102f85780631b2ef1ca1461030f5780632a3bfc821461032b5780632e1a7d4d1461035457610211565b8062fdd58e1461021657806301ffc9a71461025357806306fdde03146102905780630e89341c146102bb57610211565b3661021157600080fd5b600080fd5b34801561022257600080fd5b5061023d60048036038101906102389190613e58565b61084f565b60405161024a9190613ea7565b60405180910390f35b34801561025f57600080fd5b5061027a60048036038101906102759190613f1a565b610918565b6040516102879190613f62565b60405180910390f35b34801561029c57600080fd5b506102a56109fa565b6040516102b29190614016565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd9190614038565b610a88565b6040516102ef9190614016565b60405180910390f35b34801561030457600080fd5b5061030d610ad3565b005b61032960048036038101906103249190614065565b610cdb565b005b34801561033757600080fd5b50610352600480360381019061034d9190614038565b6111ab565b005b34801561036057600080fd5b5061037b60048036038101906103769190614038565b611397565b005b34801561038957600080fd5b506103a4600480360381019061039f91906142a2565b611507565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190614038565b6115a8565b6040516103da9190613f62565b60405180910390f35b3480156103ef57600080fd5b506103f86115b7565b6040516104059190613ea7565b60405180910390f35b34801561041a57600080fd5b5061043560048036038101906104309190614065565b611703565b005b34801561044357600080fd5b5061045e60048036038101906104599190614434565b6117f9565b60405161046b919061456a565b60405180910390f35b34801561048057600080fd5b50610489611912565b6040516104969190613f62565b60405180910390f35b3480156104ab57600080fd5b506104b4611929565b005b3480156104c257600080fd5b506104cb611a99565b005b3480156104d957600080fd5b506104e2611b41565b005b3480156104f057600080fd5b5061050b60048036038101906105069190613e58565b611bc9565b6040516105189190613f62565b60405180910390f35b34801561052d57600080fd5b506105486004803603810190610543919061458c565b611c65565b005b34801561055657600080fd5b5061055f611e6a565b60405161056c91906145c8565b60405180910390f35b34801561058157600080fd5b5061058a611e94565b6040516105979190614016565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c2919061460f565b611f22565b005b3480156105d557600080fd5b506105de611f38565b6040516105eb9190613ea7565b60405180910390f35b34801561060057600080fd5b50610609611f47565b6040516106169190613ea7565b60405180910390f35b34801561062b57600080fd5b50610646600480360381019061064191906142a2565b611f4f565b604051610653919061465e565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e91906146d4565b611f64565b005b34801561069157600080fd5b506106ac60048036038101906106a79190614038565b612123565b6040516106be96959493929190614734565b60405180910390f35b3480156106d357600080fd5b506106dc6121a6565b6040516106e99190614016565b60405180910390f35b3480156106fe57600080fd5b50610719600480360381019061071491906146d4565b6121c6565b005b34801561072757600080fd5b50610742600480360381019061073d9190614038565b6123ea565b60405161074f9190613ea7565b60405180910390f35b34801561076457600080fd5b5061076d6123fc565b60405161077a9190614016565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a59190614795565b61241c565b6040516107b79190613f62565b60405180910390f35b3480156107cc57600080fd5b506107e760048036038101906107e291906147d5565b61250f565b6040516107f4919061465e565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f91906147d5565b612524565b005b34801561083257600080fd5b5061084d6004803603810190610848919061458c565b6125c5565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b7906148de565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f357506109f2826126bd565b5b9050919050565b60048054610a079061492d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a339061492d565b8015610a805780601f10610a5557610100808354040283529160200191610a80565b820191906000526020600020905b815481529060010190602001808311610a6357829003601f168201915b505050505081565b6060604051806060016040528060368152602001615f1c60369139610aac83612727565b604051602001610abd92919061499b565b6040516020818303038152906040529050919050565b610adb612888565b73ffffffffffffffffffffffffffffffffffffffff16610af9611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690614a0b565b60405180910390fd5b600660009054906101000a900460ff1615610b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9690614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0690614ae3565b60405180910390fd5b60026007541115610c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4c90614b4f565b60405180910390fd5b610c6b600160075461289090919063ffffffff16565b600781905550600160075414610c99576001600b6000828254610c8e9190614b9e565b925050819055610cb3565b6001600a6000828254610cac9190614b9e565b9250508190555b50610cd9610cbf611e6a565b6007546001604051806020016040528060008152506128a6565b565b600660009054906101000a900460ff1615610d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2290614a77565b60405180910390fd5b6001821480610d3a5750600282145b610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614c40565b60405180910390fd5b6000610d83612a3c565b90506009811415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614cac565b60405180910390fd5b60018314610de95761271082600b54610de29190614b9e565b1115610dfd565b610bb882600a54610dfa9190614b9e565b11155b610e3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3390614d18565b60405180910390fd5b610e5782610e4985612b6d565b612c2c90919063ffffffff16565b341015610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090614d84565b60405180910390fd5b6005610eb783610ea9338761084f565b61289090919063ffffffff16565b1115610ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eef90614df0565b60405180910390fd5b6001831415610f50576001811480610f105750600281145b610f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4690614cac565b60405180910390fd5b5b6001831415610fa957600660019054906101000a900460ff16610fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9f90614e5c565b60405180910390fd5b5b600283141561100257600660029054906101000a900460ff16611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff890614e5c565b60405180910390fd5b5b6001831480156110125750600181145b1561109a576001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611099576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109090614ec8565b60405180910390fd5b5b6002831480156110aa5750600381145b15611132576002600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112890614ec8565b60405180910390fd5b5b6002831480156111425750600481145b1561114c57600080fd5b600183146111715781600b60008282546111669190614b9e565b92505081905561118a565b81600a60008282546111839190614b9e565b9250508190555b506111a6338484604051806020016040528060008152506128a6565b505050565b6111b3612888565b73ffffffffffffffffffffffffffffffffffffffff166111d1611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121e90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90614a77565b60405180910390fd5b60018114806112865750600281145b6112c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bc90614c40565b60405180910390fd5b60018114156112f5576001600660016101000a81548160ff02191690831515021790555042600c8190555061135d565b6000600c541161133a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133190614f34565b60405180910390fd5b6001600660026101000a81548160ff02191690831515021790555042600d819055505b7f45c606e9ffe472ae5d95bd6442253e840142e7cb33344ea671bd558931b2ea0e8160405161138c9190613ea7565b60405180910390a150565b61139f612888565b73ffffffffffffffffffffffffffffffffffffffff166113bd611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140a90614a0b565b60405180910390fd5b600660009054906101000a900460ff161561142d57600080fd5b4781111561143a57600080fd5b600073a3206dcdbfd313eeeb6f028ff27837421aff7b2090506000808273ffffffffffffffffffffffffffffffffffffffff168460405161147a90614f85565b60006040518083038185875af1925050503d80600081146114b7576040519150601f19603f3d011682016040523d82523d6000602084013e6114bc565b606091505b509150915081611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f890614fe6565b60405180910390fd5b50505050565b61150f612888565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061155557506115548561154f612888565b61241c565b5b611594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158b90615078565b60405180910390fd5b6115a18585858585612c42565b5050505050565b60008160075410159050919050565b60006115c1612888565b73ffffffffffffffffffffffffffffffffffffffff166115df611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90614a77565b60405180910390fd5b600061169230600161084f565b9050600081116116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce906150e4565b60405180910390fd5b80600a60008282546116e99190615104565b925050819055506116fc30600183612f56565b8091505090565b61170b612888565b73ffffffffffffffffffffffffffffffffffffffff16611729611e6a565b73ffffffffffffffffffffffffffffffffffffffff161461177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614a0b565b60405180910390fd5b600660009054906101000a900460ff161561179957600080fd5b60008211806117a85750600081115b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de90615184565b60405180910390fd5b81600f81905550806010819055505050565b6060815183511461183f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183690615216565b60405180910390fd5b6000835167ffffffffffffffff81111561185c5761185b6140aa565b5b60405190808252806020026020018201604052801561188a5781602001602082028036833780820191505090505b50905060005b8451811015611907576118d78582815181106118af576118ae615236565b5b60200260200101518583815181106118ca576118c9615236565b5b602002602001015161084f565b8282815181106118ea576118e9615236565b5b6020026020010181815250508061190090615265565b9050611890565b508091505092915050565b6000600660009054906101000a900460ff16905090565b611931612888565b73ffffffffffffffffffffffffffffffffffffffff1661194f611e6a565b73ffffffffffffffffffffffffffffffffffffffff16146119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c90614a0b565b60405180910390fd5b600660009054906101000a900460ff16156119f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ec90614a77565b60405180910390fd5b600660019054906101000a900460ff16611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906152fa565b60405180910390fd5b6000600660016101000a81548160ff0219169083151502179055507f41bdcd10081181ad60b0107bce1c4eb9768cb77c046985f3a79a5dbb0d8ceede6001604051611a8f919061535f565b60405180910390a1565b611aa1612888565b73ffffffffffffffffffffffffffffffffffffffff16611abf611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615600660006101000a81548160ff021916908315150217905550565b611b49612888565b73ffffffffffffffffffffffffffffffffffffffff16611b67611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb490614a0b565b60405180910390fd5b611bc76000613173565b565b600060018214611c1a5781600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611c5d565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b905092915050565b611c6d612888565b73ffffffffffffffffffffffffffffffffffffffff16611c8b611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd890614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611cfb57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6290614ae3565b60405180910390fd5b611d73611e6a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd8906153c6565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60058054611ea19061492d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd9061492d565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b505050505081565b611f34611f2d612888565b8383613239565b5050565b6000611f42612a3c565b905090565b600047905090565b600063bc197c8160e01b905095945050505050565b611f6c612888565b73ffffffffffffffffffffffffffffffffffffffff16611f8a611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790614a0b565b60405180910390fd5b600660009054906101000a900460ff1615612030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202790614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156120a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209790614ae3565b60405180910390fd5b60005b8383905081101561211d5781600a60008282546120c09190614b9e565b9250508190555061210a8484838181106120dd576120dc615236565b5b90506020020160208101906120f2919061458c565b600184604051806020016040528060008152506128a6565b808061211590615265565b9150506120a3565b50505050565b600080600080600080600187141561217157610bb8600a546701aa535d3d0c000067011c37937e080000600660019054906101000a900460ff16600c5495509550955095509550955061219d565b612710600b54601054600f54600660029054906101000a900460ff16600d549550955095509550955095505b91939550919395565b6060604051806060016040528060368152602001615f1c60369139905090565b6121ce612888565b73ffffffffffffffffffffffffffffffffffffffff166121ec611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614612242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223990614a0b565b60405180910390fd5b600660009054906101000a900460ff1615612292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228990614a77565b60405180910390fd5b60018114806122a15750600281145b6122e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d790614c40565b60405180910390fd5b60005b838390508110156123e4576001821461236557816009600086868581811061230e5761230d615236565b5b9050602002016020810190612323919061458c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190556123d0565b816008600086868581811061237d5761237c615236565b5b9050602002016020810190612392919061458c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555b5080806123dc90615265565b9150506122e3565b50505050565b60006123f582612b6d565b9050919050565b6060604051806080016040528060438152602001615ed960439139905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161249491906145c8565b602060405180830381865afa1580156124b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d59190615424565b73ffffffffffffffffffffffffffffffffffffffff1614156124fb576001915050612509565b61250584846133a6565b9150505b92915050565b600063f23a6e6160e01b905095945050505050565b61252c612888565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061257257506125718561256c612888565b61241c565b5b6125b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a8906154c3565b60405180910390fd5b6125be858585858561343a565b5050505050565b6125cd612888565b73ffffffffffffffffffffffffffffffffffffffff166125eb611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263890614a0b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a890615555565b60405180910390fd5b6126ba81613173565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600082141561276f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612883565b600082905060005b600082146127a157808061278a90615265565b915050600a8261279a91906155a4565b9150612777565b60008167ffffffffffffffff8111156127bd576127bc6140aa565b5b6040519080825280601f01601f1916602001820160405280156127ef5781602001600182028036833780820191505090505b5090505b6000851461287c576001826128089190615104565b9150600a8561281791906155d5565b60306128239190614b9e565b60f81b81838151811061283957612838615236565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561287591906155a4565b94506127f3565b8093505050505b919050565b600033905090565b6000818361289e9190614b9e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90615678565b60405180910390fd5b6000612920612888565b905061294181600087612932886136bc565b61293b886136bc565b87613736565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129a09190614b9e565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612a1e929190615698565b60405180910390a4612a35816000878787876139c7565b5050505050565b6000600660019054906101000a900460ff16158015612a5d57506000600c54145b15612a6b5760099050612b6a565b600660019054906101000a900460ff16158015612a8a57506000600c54115b8015612aa35750600660029054906101000a900460ff16155b15612ab15760099050612b6a565b600660019054906101000a900460ff1615612af75762015180612adf600c5442613b9f90919063ffffffff16565b1015612aee5760019050612b6a565b60029050612b6a565b600660029054906101000a900460ff1615612b655762015180612b25600d5442613b9f90919063ffffffff16565b1015612b345760039050612b6a565b6202a300612b4d600d5442613b9f90919063ffffffff16565b1015612b5c5760049050612b6a565b60059050612b6a565b600990505b90565b600080612b78612a3c565b9050600183148015612b8a5750600181145b15612ba05767011c37937e080000915050612c27565b600183148015612bb05750600281145b15612bc6576701aa535d3d0c0000915050612c27565b600283148015612bd65750600381145b15612be657600f54915050612c27565b600283148015612bf65750600581145b15612c0657601054915050612c27565b6001831415612c20576701aa535d3d0c0000915050612c27565b6010549150505b919050565b60008183612c3a91906156c1565b905092915050565b8151835114612c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7d9061578d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ced9061581f565b60405180910390fd5b6000612d00612888565b9050612d10818787878787613736565b60005b8451811015612ec1576000858281518110612d3157612d30615236565b5b602002602001015190506000858381518110612d5057612d4f615236565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de8906158b1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ea69190614b9e565b9250508190555050505080612eba90615265565b9050612d13565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612f389291906158d1565b60405180910390a4612f4e818787878787613bb5565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbd9061597a565b60405180910390fd5b6000612fd0612888565b905061300081856000612fe2876136bc565b612feb876136bc565b60405180602001604052806000815250613736565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308e90615a0c565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051613164929190615698565b60405180910390a45050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329f90615a9e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133999190613f62565b60405180910390a3505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156134aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a19061581f565b60405180910390fd5b60006134b4612888565b90506134d48187876134c5886136bc565b6134ce886136bc565b87613736565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561356b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613562906158b1565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136209190614b9e565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161369d929190615698565b60405180910390a46136b38288888888886139c7565b50505050505050565b60606000600167ffffffffffffffff8111156136db576136da6140aa565b5b6040519080825280602002602001820160405280156137095781602001602082028036833780820191505090505b509050828160008151811061372157613720615236565b5b60200260200101818152505080915050919050565b600660009054906101000a900460ff1615613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d90614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141580156137ef57503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b156139bf578473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614613862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385990615b0a565b60405180910390fd5b6000835190506000613872612a3c565b905060048114806138835750600581145b6138c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b990615b76565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156139bc5760005b828110156139ba57600286828151811061391657613915615236565b5b6020026020010151141561392957600080fd5b600186828151811061393e5761393d615236565b5b602002602001015114156139a75784818151811061395f5761395e615236565b5b6020026020010151600b60008282546139789190614b9e565b925050819055506139a688600287848151811061399857613997615236565b5b6020026020010151876128a6565b5b80806139b290615265565b9150506138f9565b505b50505b505050505050565b6139e68473ffffffffffffffffffffffffffffffffffffffff16613d8d565b15613b97578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613a2c959493929190615beb565b6020604051808303816000875af1925050508015613a6857506040513d601f19601f82011682018060405250810190613a659190615c5a565b60015b613b0e57613a74615c94565b806308c379a01415613ad15750613a89615cb6565b80613a945750613ad3565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ac89190614016565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0590615dbe565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8c90615e50565b60405180910390fd5b505b505050505050565b60008183613bad9190615104565b905092915050565b613bd48473ffffffffffffffffffffffffffffffffffffffff16613d8d565b15613d85578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613c1a959493929190615e70565b6020604051808303816000875af1925050508015613c5657506040513d601f19601f82011682018060405250810190613c539190615c5a565b60015b613cfc57613c62615c94565b806308c379a01415613cbf5750613c77615cb6565b80613c825750613cc1565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cb69190614016565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cf390615dbe565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d7a90615e50565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613def82613dc4565b9050919050565b613dff81613de4565b8114613e0a57600080fd5b50565b600081359050613e1c81613df6565b92915050565b6000819050919050565b613e3581613e22565b8114613e4057600080fd5b50565b600081359050613e5281613e2c565b92915050565b60008060408385031215613e6f57613e6e613dba565b5b6000613e7d85828601613e0d565b9250506020613e8e85828601613e43565b9150509250929050565b613ea181613e22565b82525050565b6000602082019050613ebc6000830184613e98565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ef781613ec2565b8114613f0257600080fd5b50565b600081359050613f1481613eee565b92915050565b600060208284031215613f3057613f2f613dba565b5b6000613f3e84828501613f05565b91505092915050565b60008115159050919050565b613f5c81613f47565b82525050565b6000602082019050613f776000830184613f53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fb7578082015181840152602081019050613f9c565b83811115613fc6576000848401525b50505050565b6000601f19601f8301169050919050565b6000613fe882613f7d565b613ff28185613f88565b9350614002818560208601613f99565b61400b81613fcc565b840191505092915050565b600060208201905081810360008301526140308184613fdd565b905092915050565b60006020828403121561404e5761404d613dba565b5b600061405c84828501613e43565b91505092915050565b6000806040838503121561407c5761407b613dba565b5b600061408a85828601613e43565b925050602061409b85828601613e43565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140e282613fcc565b810181811067ffffffffffffffff82111715614101576141006140aa565b5b80604052505050565b6000614114613db0565b905061412082826140d9565b919050565b600067ffffffffffffffff8211156141405761413f6140aa565b5b602082029050602081019050919050565b600080fd5b600061416961416484614125565b61410a565b9050808382526020820190506020840283018581111561418c5761418b614151565b5b835b818110156141b557806141a18882613e43565b84526020840193505060208101905061418e565b5050509392505050565b600082601f8301126141d4576141d36140a5565b5b81356141e4848260208601614156565b91505092915050565b600080fd5b600067ffffffffffffffff82111561420d5761420c6140aa565b5b61421682613fcc565b9050602081019050919050565b82818337600083830152505050565b6000614245614240846141f2565b61410a565b905082815260208101848484011115614261576142606141ed565b5b61426c848285614223565b509392505050565b600082601f830112614289576142886140a5565b5b8135614299848260208601614232565b91505092915050565b600080600080600060a086880312156142be576142bd613dba565b5b60006142cc88828901613e0d565b95505060206142dd88828901613e0d565b945050604086013567ffffffffffffffff8111156142fe576142fd613dbf565b5b61430a888289016141bf565b935050606086013567ffffffffffffffff81111561432b5761432a613dbf565b5b614337888289016141bf565b925050608086013567ffffffffffffffff81111561435857614357613dbf565b5b61436488828901614274565b9150509295509295909350565b600067ffffffffffffffff82111561438c5761438b6140aa565b5b602082029050602081019050919050565b60006143b06143ab84614371565b61410a565b905080838252602082019050602084028301858111156143d3576143d2614151565b5b835b818110156143fc57806143e88882613e0d565b8452602084019350506020810190506143d5565b5050509392505050565b600082601f83011261441b5761441a6140a5565b5b813561442b84826020860161439d565b91505092915050565b6000806040838503121561444b5761444a613dba565b5b600083013567ffffffffffffffff81111561446957614468613dbf565b5b61447585828601614406565b925050602083013567ffffffffffffffff81111561449657614495613dbf565b5b6144a2858286016141bf565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144e181613e22565b82525050565b60006144f383836144d8565b60208301905092915050565b6000602082019050919050565b6000614517826144ac565b61452181856144b7565b935061452c836144c8565b8060005b8381101561455d57815161454488826144e7565b975061454f836144ff565b925050600181019050614530565b5085935050505092915050565b60006020820190508181036000830152614584818461450c565b905092915050565b6000602082840312156145a2576145a1613dba565b5b60006145b084828501613e0d565b91505092915050565b6145c281613de4565b82525050565b60006020820190506145dd60008301846145b9565b92915050565b6145ec81613f47565b81146145f757600080fd5b50565b600081359050614609816145e3565b92915050565b6000806040838503121561462657614625613dba565b5b600061463485828601613e0d565b9250506020614645858286016145fa565b9150509250929050565b61465881613ec2565b82525050565b6000602082019050614673600083018461464f565b92915050565b600080fd5b60008083601f840112614694576146936140a5565b5b8235905067ffffffffffffffff8111156146b1576146b0614679565b5b6020830191508360208202830111156146cd576146cc614151565b5b9250929050565b6000806000604084860312156146ed576146ec613dba565b5b600084013567ffffffffffffffff81111561470b5761470a613dbf565b5b6147178682870161467e565b9350935050602061472a86828701613e43565b9150509250925092565b600060c0820190506147496000830189613e98565b6147566020830188613e98565b6147636040830187613e98565b6147706060830186613e98565b61477d6080830185613f53565b61478a60a0830184613e98565b979650505050505050565b600080604083850312156147ac576147ab613dba565b5b60006147ba85828601613e0d565b92505060206147cb85828601613e0d565b9150509250929050565b600080600080600060a086880312156147f1576147f0613dba565b5b60006147ff88828901613e0d565b955050602061481088828901613e0d565b945050604061482188828901613e43565b935050606061483288828901613e43565b925050608086013567ffffffffffffffff81111561485357614852613dbf565b5b61485f88828901614274565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006148c8602b83613f88565b91506148d38261486c565b604082019050919050565b600060208201905081810360008301526148f7816148bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061494557607f821691505b60208210811415614959576149586148fe565b5b50919050565b600081905092915050565b600061497582613f7d565b61497f818561495f565b935061498f818560208601613f99565b80840191505092915050565b60006149a7828561496a565b91506149b3828461496a565b91508190509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149f5602083613f88565b9150614a00826149bf565b602082019050919050565b60006020820190508181036000830152614a24816149e8565b9050919050565b7f436f6e7472616374205061757365640000000000000000000000000000000000600082015250565b6000614a61600f83613f88565b9150614a6c82614a2b565b602082019050919050565b60006020820190508181036000830152614a9081614a54565b9050919050565b7f5a65726f20616464726573730000000000000000000000000000000000000000600082015250565b6000614acd600c83613f88565b9150614ad882614a97565b602082019050919050565b60006020820190508181036000830152614afc81614ac0565b9050919050565b7f4e4654206d696e742064697361626c6564000000000000000000000000000000600082015250565b6000614b39601183613f88565b9150614b4482614b03565b602082019050919050565b60006020820190508181036000830152614b6881614b2c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614ba982613e22565b9150614bb483613e22565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614be957614be8614b6f565b5b828201905092915050565b7f4261642049440000000000000000000000000000000000000000000000000000600082015250565b6000614c2a600683613f88565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f53656c6c2064697361626c656400000000000000000000000000000000000000600082015250565b6000614c96600d83613f88565b9150614ca182614c60565b602082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b7f4d617820737570706c7900000000000000000000000000000000000000000000600082015250565b6000614d02600a83613f88565b9150614d0d82614ccc565b602082019050919050565b60006020820190508181036000830152614d3181614cf5565b9050919050565b7f57726f6e6720616d740000000000000000000000000000000000000000000000600082015250565b6000614d6e600983613f88565b9150614d7982614d38565b602082019050919050565b60006020820190508181036000830152614d9d81614d61565b9050919050565b7f4d6178206d696e74000000000000000000000000000000000000000000000000600082015250565b6000614dda600883613f88565b9150614de582614da4565b602082019050919050565b60006020820190508181036000830152614e0981614dcd565b9050919050565b7f43616e6e6f742073656c6c000000000000000000000000000000000000000000600082015250565b6000614e46600b83613f88565b9150614e5182614e10565b602082019050919050565b60006020820190508181036000830152614e7581614e39565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b6000614eb2600f83613f88565b9150614ebd82614e7c565b602082019050919050565b60006020820190508181036000830152614ee181614ea5565b9050919050565b7f537461727420526564656d7074696f6e20466972737400000000000000000000600082015250565b6000614f1e601683613f88565b9150614f2982614ee8565b602082019050919050565b60006020820190508181036000830152614f4d81614f11565b9050919050565b600081905092915050565b50565b6000614f6f600083614f54565b9150614f7a82614f5f565b600082019050919050565b6000614f9082614f62565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000614fd0601483613f88565b9150614fdb82614f9a565b602082019050919050565b60006020820190508181036000830152614fff81614fc3565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615062603283613f88565b915061506d82615006565b604082019050919050565b6000602082019050818103600083015261509181615055565b9050919050565b7f4e6f20666f756e64730000000000000000000000000000000000000000000000600082015250565b60006150ce600983613f88565b91506150d982615098565b602082019050919050565b600060208201905081810360008301526150fd816150c1565b9050919050565b600061510f82613e22565b915061511a83613e22565b92508282101561512d5761512c614b6f565b5b828203905092915050565b7f496e76616c696420507269636500000000000000000000000000000000000000600082015250565b600061516e600d83613f88565b915061517982615138565b602082019050919050565b6000602082019050818103600083015261519d81615161565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000615200602983613f88565b915061520b826151a4565b604082019050919050565b6000602082019050818103600083015261522f816151f3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061527082613e22565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152a3576152a2614b6f565b5b600182019050919050565b7f4e6f742073746172746564000000000000000000000000000000000000000000600082015250565b60006152e4600b83613f88565b91506152ef826152ae565b602082019050919050565b60006020820190508181036000830152615313816152d7565b9050919050565b6000819050919050565b6000819050919050565b600061534961534461533f8461531a565b615324565b613e22565b9050919050565b6153598161532e565b82525050565b60006020820190506153746000830184615350565b92915050565b7f4f776e6572204164647265737300000000000000000000000000000000000000600082015250565b60006153b0600d83613f88565b91506153bb8261537a565b602082019050919050565b600060208201905081810360008301526153df816153a3565b9050919050565b60006153f182613de4565b9050919050565b615401816153e6565b811461540c57600080fd5b50565b60008151905061541e816153f8565b92915050565b60006020828403121561543a57615439613dba565b5b60006154488482850161540f565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006154ad602983613f88565b91506154b882615451565b604082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061553f602683613f88565b915061554a826154e3565b604082019050919050565b6000602082019050818103600083015261556e81615532565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155af82613e22565b91506155ba83613e22565b9250826155ca576155c9615575565b5b828204905092915050565b60006155e082613e22565b91506155eb83613e22565b9250826155fb576155fa615575565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615662602183613f88565b915061566d82615606565b604082019050919050565b6000602082019050818103600083015261569181615655565b9050919050565b60006040820190506156ad6000830185613e98565b6156ba6020830184613e98565b9392505050565b60006156cc82613e22565b91506156d783613e22565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157105761570f614b6f565b5b828202905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615777602883613f88565b91506157828261571b565b604082019050919050565b600060208201905081810360008301526157a68161576a565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615809602583613f88565b9150615814826157ad565b604082019050919050565b60006020820190508181036000830152615838816157fc565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061589b602a83613f88565b91506158a68261583f565b604082019050919050565b600060208201905081810360008301526158ca8161588e565b9050919050565b600060408201905081810360008301526158eb818561450c565b905081810360208301526158ff818461450c565b90509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615964602383613f88565b915061596f82615908565b604082019050919050565b6000602082019050818103600083015261599381615957565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006159f6602483613f88565b9150615a018261599a565b604082019050919050565b60006020820190508181036000830152615a25816159e9565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615a88602983613f88565b9150615a9382615a2c565b604082019050919050565b60006020820190508181036000830152615ab781615a7b565b9050919050565b7f496e76616c6964206d696e740000000000000000000000000000000000000000600082015250565b6000615af4600c83613f88565b9150615aff82615abe565b602082019050919050565b60006020820190508181036000830152615b2381615ae7565b9050919050565b7f496e76616c696420737461676500000000000000000000000000000000000000600082015250565b6000615b60600d83613f88565b9150615b6b82615b2a565b602082019050919050565b60006020820190508181036000830152615b8f81615b53565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bbd82615b96565b615bc78185615ba1565b9350615bd7818560208601613f99565b615be081613fcc565b840191505092915050565b600060a082019050615c0060008301886145b9565b615c0d60208301876145b9565b615c1a6040830186613e98565b615c276060830185613e98565b8181036080830152615c398184615bb2565b90509695505050505050565b600081519050615c5481613eee565b92915050565b600060208284031215615c7057615c6f613dba565b5b6000615c7e84828501615c45565b91505092915050565b60008160e01c9050919050565b600060033d1115615cb35760046000803e615cb0600051615c87565b90505b90565b600060443d1015615cc657615d49565b615cce613db0565b60043d036004823e80513d602482011167ffffffffffffffff82111715615cf6575050615d49565b808201805167ffffffffffffffff811115615d145750505050615d49565b80602083010160043d038501811115615d31575050505050615d49565b615d40826020018501866140d9565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615da8603483613f88565b9150615db382615d4c565b604082019050919050565b60006020820190508181036000830152615dd781615d9b565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615e3a602883613f88565b9150615e4582615dde565b604082019050919050565b60006020820190508181036000830152615e6981615e2d565b9050919050565b600060a082019050615e8560008301886145b9565b615e9260208301876145b9565b8181036040830152615ea4818661450c565b90508181036060830152615eb8818561450c565b90508181036080830152615ecc8184615bb2565b9050969550505050505056fe68747470733a2f2f697066732e696f2f697066732f516d6455466a343562657a6f4c4e6f6364397a633775384d4c53654e7461325264706538463554464351634d784a697066733a2f2f516d62337564736a5172656a56725a444b63526a414c5947376243705776446846316977547163637064614251562fa26469706673582212202cffb23d841112849e91f87183693a9b7f85bcd2a6ca79c6e9c76fea401da70664736f6c634300080a0033697066733a2f2f516d62337564736a5172656a56725a444b63526a414c5947376243705776446846316977547163637064614251562f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102075760003560e01c8063830639ac11610118578063cc33c875116100a0578063e8a3d4851161006f578063e8a3d48514610758578063e985e9c514610783578063f23a6e61146107c0578063f242432a146107fd578063f2fde38b1461082657610211565b8063cc33c87514610685578063d547cfb7146106c7578063e2e6c8bc146106f2578063e75722301461071b57610211565b8063a22cb465116100e7578063a22cb465146105a0578063aaf72773146105c9578063b69ef8a8146105f4578063bc197c811461061f578063c0124c3e1461065c57610211565b8063830639ac146104e45780638a38bcbc146105215780638da5cb5b1461054a57806395d89b411461057557610211565b80632eb2c2d61161019b5780634e1273f41161016a5780634e1273f4146104375780635c975abb1461047457806361aebe591461049f5780636985a022146104b6578063715018a6146104cd57610211565b80632eb2c2d61461037d57806333c41a90146103a657806344df8e70146103e35780634c502d7d1461040e57610211565b806314f710fe116101d757806314f710fe146102f85780631b2ef1ca1461030f5780632a3bfc821461032b5780632e1a7d4d1461035457610211565b8062fdd58e1461021657806301ffc9a71461025357806306fdde03146102905780630e89341c146102bb57610211565b3661021157600080fd5b600080fd5b34801561022257600080fd5b5061023d60048036038101906102389190613e58565b61084f565b60405161024a9190613ea7565b60405180910390f35b34801561025f57600080fd5b5061027a60048036038101906102759190613f1a565b610918565b6040516102879190613f62565b60405180910390f35b34801561029c57600080fd5b506102a56109fa565b6040516102b29190614016565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd9190614038565b610a88565b6040516102ef9190614016565b60405180910390f35b34801561030457600080fd5b5061030d610ad3565b005b61032960048036038101906103249190614065565b610cdb565b005b34801561033757600080fd5b50610352600480360381019061034d9190614038565b6111ab565b005b34801561036057600080fd5b5061037b60048036038101906103769190614038565b611397565b005b34801561038957600080fd5b506103a4600480360381019061039f91906142a2565b611507565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190614038565b6115a8565b6040516103da9190613f62565b60405180910390f35b3480156103ef57600080fd5b506103f86115b7565b6040516104059190613ea7565b60405180910390f35b34801561041a57600080fd5b5061043560048036038101906104309190614065565b611703565b005b34801561044357600080fd5b5061045e60048036038101906104599190614434565b6117f9565b60405161046b919061456a565b60405180910390f35b34801561048057600080fd5b50610489611912565b6040516104969190613f62565b60405180910390f35b3480156104ab57600080fd5b506104b4611929565b005b3480156104c257600080fd5b506104cb611a99565b005b3480156104d957600080fd5b506104e2611b41565b005b3480156104f057600080fd5b5061050b60048036038101906105069190613e58565b611bc9565b6040516105189190613f62565b60405180910390f35b34801561052d57600080fd5b506105486004803603810190610543919061458c565b611c65565b005b34801561055657600080fd5b5061055f611e6a565b60405161056c91906145c8565b60405180910390f35b34801561058157600080fd5b5061058a611e94565b6040516105979190614016565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c2919061460f565b611f22565b005b3480156105d557600080fd5b506105de611f38565b6040516105eb9190613ea7565b60405180910390f35b34801561060057600080fd5b50610609611f47565b6040516106169190613ea7565b60405180910390f35b34801561062b57600080fd5b50610646600480360381019061064191906142a2565b611f4f565b604051610653919061465e565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e91906146d4565b611f64565b005b34801561069157600080fd5b506106ac60048036038101906106a79190614038565b612123565b6040516106be96959493929190614734565b60405180910390f35b3480156106d357600080fd5b506106dc6121a6565b6040516106e99190614016565b60405180910390f35b3480156106fe57600080fd5b50610719600480360381019061071491906146d4565b6121c6565b005b34801561072757600080fd5b50610742600480360381019061073d9190614038565b6123ea565b60405161074f9190613ea7565b60405180910390f35b34801561076457600080fd5b5061076d6123fc565b60405161077a9190614016565b60405180910390f35b34801561078f57600080fd5b506107aa60048036038101906107a59190614795565b61241c565b6040516107b79190613f62565b60405180910390f35b3480156107cc57600080fd5b506107e760048036038101906107e291906147d5565b61250f565b6040516107f4919061465e565b60405180910390f35b34801561080957600080fd5b50610824600480360381019061081f91906147d5565b612524565b005b34801561083257600080fd5b5061084d6004803603810190610848919061458c565b6125c5565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b7906148de565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f357506109f2826126bd565b5b9050919050565b60048054610a079061492d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a339061492d565b8015610a805780601f10610a5557610100808354040283529160200191610a80565b820191906000526020600020905b815481529060010190602001808311610a6357829003601f168201915b505050505081565b6060604051806060016040528060368152602001615f1c60369139610aac83612727565b604051602001610abd92919061499b565b6040516020818303038152906040529050919050565b610adb612888565b73ffffffffffffffffffffffffffffffffffffffff16610af9611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690614a0b565b60405180910390fd5b600660009054906101000a900460ff1615610b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9690614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0690614ae3565b60405180910390fd5b60026007541115610c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4c90614b4f565b60405180910390fd5b610c6b600160075461289090919063ffffffff16565b600781905550600160075414610c99576001600b6000828254610c8e9190614b9e565b925050819055610cb3565b6001600a6000828254610cac9190614b9e565b9250508190555b50610cd9610cbf611e6a565b6007546001604051806020016040528060008152506128a6565b565b600660009054906101000a900460ff1615610d2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2290614a77565b60405180910390fd5b6001821480610d3a5750600282145b610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614c40565b60405180910390fd5b6000610d83612a3c565b90506009811415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614cac565b60405180910390fd5b60018314610de95761271082600b54610de29190614b9e565b1115610dfd565b610bb882600a54610dfa9190614b9e565b11155b610e3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3390614d18565b60405180910390fd5b610e5782610e4985612b6d565b612c2c90919063ffffffff16565b341015610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090614d84565b60405180910390fd5b6005610eb783610ea9338761084f565b61289090919063ffffffff16565b1115610ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eef90614df0565b60405180910390fd5b6001831415610f50576001811480610f105750600281145b610f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4690614cac565b60405180910390fd5b5b6001831415610fa957600660019054906101000a900460ff16610fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9f90614e5c565b60405180910390fd5b5b600283141561100257600660029054906101000a900460ff16611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff890614e5c565b60405180910390fd5b5b6001831480156110125750600181145b1561109a576001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611099576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109090614ec8565b60405180910390fd5b5b6002831480156110aa5750600381145b15611132576002600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112890614ec8565b60405180910390fd5b5b6002831480156111425750600481145b1561114c57600080fd5b600183146111715781600b60008282546111669190614b9e565b92505081905561118a565b81600a60008282546111839190614b9e565b9250508190555b506111a6338484604051806020016040528060008152506128a6565b505050565b6111b3612888565b73ffffffffffffffffffffffffffffffffffffffff166111d1611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121e90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90614a77565b60405180910390fd5b60018114806112865750600281145b6112c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bc90614c40565b60405180910390fd5b60018114156112f5576001600660016101000a81548160ff02191690831515021790555042600c8190555061135d565b6000600c541161133a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133190614f34565b60405180910390fd5b6001600660026101000a81548160ff02191690831515021790555042600d819055505b7f45c606e9ffe472ae5d95bd6442253e840142e7cb33344ea671bd558931b2ea0e8160405161138c9190613ea7565b60405180910390a150565b61139f612888565b73ffffffffffffffffffffffffffffffffffffffff166113bd611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140a90614a0b565b60405180910390fd5b600660009054906101000a900460ff161561142d57600080fd5b4781111561143a57600080fd5b600073a3206dcdbfd313eeeb6f028ff27837421aff7b2090506000808273ffffffffffffffffffffffffffffffffffffffff168460405161147a90614f85565b60006040518083038185875af1925050503d80600081146114b7576040519150601f19603f3d011682016040523d82523d6000602084013e6114bc565b606091505b509150915081611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f890614fe6565b60405180910390fd5b50505050565b61150f612888565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061155557506115548561154f612888565b61241c565b5b611594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158b90615078565b60405180910390fd5b6115a18585858585612c42565b5050505050565b60008160075410159050919050565b60006115c1612888565b73ffffffffffffffffffffffffffffffffffffffff166115df611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90614a77565b60405180910390fd5b600061169230600161084f565b9050600081116116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce906150e4565b60405180910390fd5b80600a60008282546116e99190615104565b925050819055506116fc30600183612f56565b8091505090565b61170b612888565b73ffffffffffffffffffffffffffffffffffffffff16611729611e6a565b73ffffffffffffffffffffffffffffffffffffffff161461177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614a0b565b60405180910390fd5b600660009054906101000a900460ff161561179957600080fd5b60008211806117a85750600081115b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de90615184565b60405180910390fd5b81600f81905550806010819055505050565b6060815183511461183f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183690615216565b60405180910390fd5b6000835167ffffffffffffffff81111561185c5761185b6140aa565b5b60405190808252806020026020018201604052801561188a5781602001602082028036833780820191505090505b50905060005b8451811015611907576118d78582815181106118af576118ae615236565b5b60200260200101518583815181106118ca576118c9615236565b5b602002602001015161084f565b8282815181106118ea576118e9615236565b5b6020026020010181815250508061190090615265565b9050611890565b508091505092915050565b6000600660009054906101000a900460ff16905090565b611931612888565b73ffffffffffffffffffffffffffffffffffffffff1661194f611e6a565b73ffffffffffffffffffffffffffffffffffffffff16146119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c90614a0b565b60405180910390fd5b600660009054906101000a900460ff16156119f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ec90614a77565b60405180910390fd5b600660019054906101000a900460ff16611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906152fa565b60405180910390fd5b6000600660016101000a81548160ff0219169083151502179055507f41bdcd10081181ad60b0107bce1c4eb9768cb77c046985f3a79a5dbb0d8ceede6001604051611a8f919061535f565b60405180910390a1565b611aa1612888565b73ffffffffffffffffffffffffffffffffffffffff16611abf611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c90614a0b565b60405180910390fd5b600660009054906101000a900460ff1615600660006101000a81548160ff021916908315150217905550565b611b49612888565b73ffffffffffffffffffffffffffffffffffffffff16611b67611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb490614a0b565b60405180910390fd5b611bc76000613173565b565b600060018214611c1a5781600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611c5d565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b905092915050565b611c6d612888565b73ffffffffffffffffffffffffffffffffffffffff16611c8b611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd890614a0b565b60405180910390fd5b600660009054906101000a900460ff1615611cfb57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6290614ae3565b60405180910390fd5b611d73611e6a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd8906153c6565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600960008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60058054611ea19061492d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd9061492d565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b505050505081565b611f34611f2d612888565b8383613239565b5050565b6000611f42612a3c565b905090565b600047905090565b600063bc197c8160e01b905095945050505050565b611f6c612888565b73ffffffffffffffffffffffffffffffffffffffff16611f8a611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790614a0b565b60405180910390fd5b600660009054906101000a900460ff1615612030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202790614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156120a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209790614ae3565b60405180910390fd5b60005b8383905081101561211d5781600a60008282546120c09190614b9e565b9250508190555061210a8484838181106120dd576120dc615236565b5b90506020020160208101906120f2919061458c565b600184604051806020016040528060008152506128a6565b808061211590615265565b9150506120a3565b50505050565b600080600080600080600187141561217157610bb8600a546701aa535d3d0c000067011c37937e080000600660019054906101000a900460ff16600c5495509550955095509550955061219d565b612710600b54601054600f54600660029054906101000a900460ff16600d549550955095509550955095505b91939550919395565b6060604051806060016040528060368152602001615f1c60369139905090565b6121ce612888565b73ffffffffffffffffffffffffffffffffffffffff166121ec611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614612242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223990614a0b565b60405180910390fd5b600660009054906101000a900460ff1615612292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228990614a77565b60405180910390fd5b60018114806122a15750600281145b6122e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d790614c40565b60405180910390fd5b60005b838390508110156123e4576001821461236557816009600086868581811061230e5761230d615236565b5b9050602002016020810190612323919061458c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190556123d0565b816008600086868581811061237d5761237c615236565b5b9050602002016020810190612392919061458c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555b5080806123dc90615265565b9150506122e3565b50505050565b60006123f582612b6d565b9050919050565b6060604051806080016040528060438152602001615ed960439139905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161249491906145c8565b602060405180830381865afa1580156124b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d59190615424565b73ffffffffffffffffffffffffffffffffffffffff1614156124fb576001915050612509565b61250584846133a6565b9150505b92915050565b600063f23a6e6160e01b905095945050505050565b61252c612888565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061257257506125718561256c612888565b61241c565b5b6125b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a8906154c3565b60405180910390fd5b6125be858585858561343a565b5050505050565b6125cd612888565b73ffffffffffffffffffffffffffffffffffffffff166125eb611e6a565b73ffffffffffffffffffffffffffffffffffffffff1614612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263890614a0b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a890615555565b60405180910390fd5b6126ba81613173565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600082141561276f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612883565b600082905060005b600082146127a157808061278a90615265565b915050600a8261279a91906155a4565b9150612777565b60008167ffffffffffffffff8111156127bd576127bc6140aa565b5b6040519080825280601f01601f1916602001820160405280156127ef5781602001600182028036833780820191505090505b5090505b6000851461287c576001826128089190615104565b9150600a8561281791906155d5565b60306128239190614b9e565b60f81b81838151811061283957612838615236565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561287591906155a4565b94506127f3565b8093505050505b919050565b600033905090565b6000818361289e9190614b9e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90615678565b60405180910390fd5b6000612920612888565b905061294181600087612932886136bc565b61293b886136bc565b87613736565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129a09190614b9e565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612a1e929190615698565b60405180910390a4612a35816000878787876139c7565b5050505050565b6000600660019054906101000a900460ff16158015612a5d57506000600c54145b15612a6b5760099050612b6a565b600660019054906101000a900460ff16158015612a8a57506000600c54115b8015612aa35750600660029054906101000a900460ff16155b15612ab15760099050612b6a565b600660019054906101000a900460ff1615612af75762015180612adf600c5442613b9f90919063ffffffff16565b1015612aee5760019050612b6a565b60029050612b6a565b600660029054906101000a900460ff1615612b655762015180612b25600d5442613b9f90919063ffffffff16565b1015612b345760039050612b6a565b6202a300612b4d600d5442613b9f90919063ffffffff16565b1015612b5c5760049050612b6a565b60059050612b6a565b600990505b90565b600080612b78612a3c565b9050600183148015612b8a5750600181145b15612ba05767011c37937e080000915050612c27565b600183148015612bb05750600281145b15612bc6576701aa535d3d0c0000915050612c27565b600283148015612bd65750600381145b15612be657600f54915050612c27565b600283148015612bf65750600581145b15612c0657601054915050612c27565b6001831415612c20576701aa535d3d0c0000915050612c27565b6010549150505b919050565b60008183612c3a91906156c1565b905092915050565b8151835114612c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7d9061578d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ced9061581f565b60405180910390fd5b6000612d00612888565b9050612d10818787878787613736565b60005b8451811015612ec1576000858281518110612d3157612d30615236565b5b602002602001015190506000858381518110612d5057612d4f615236565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de8906158b1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ea69190614b9e565b9250508190555050505080612eba90615265565b9050612d13565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612f389291906158d1565b60405180910390a4612f4e818787878787613bb5565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbd9061597a565b60405180910390fd5b6000612fd0612888565b905061300081856000612fe2876136bc565b612feb876136bc565b60405180602001604052806000815250613736565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308e90615a0c565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051613164929190615698565b60405180910390a45050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329f90615a9e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133999190613f62565b60405180910390a3505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156134aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a19061581f565b60405180910390fd5b60006134b4612888565b90506134d48187876134c5886136bc565b6134ce886136bc565b87613736565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561356b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613562906158b1565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136209190614b9e565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161369d929190615698565b60405180910390a46136b38288888888886139c7565b50505050505050565b60606000600167ffffffffffffffff8111156136db576136da6140aa565b5b6040519080825280602002602001820160405280156137095781602001602082028036833780820191505090505b509050828160008151811061372157613720615236565b5b60200260200101818152505080915050919050565b600660009054906101000a900460ff1615613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d90614a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141580156137ef57503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b156139bf578473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614613862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385990615b0a565b60405180910390fd5b6000835190506000613872612a3c565b905060048114806138835750600581145b6138c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b990615b76565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156139bc5760005b828110156139ba57600286828151811061391657613915615236565b5b6020026020010151141561392957600080fd5b600186828151811061393e5761393d615236565b5b602002602001015114156139a75784818151811061395f5761395e615236565b5b6020026020010151600b60008282546139789190614b9e565b925050819055506139a688600287848151811061399857613997615236565b5b6020026020010151876128a6565b5b80806139b290615265565b9150506138f9565b505b50505b505050505050565b6139e68473ffffffffffffffffffffffffffffffffffffffff16613d8d565b15613b97578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613a2c959493929190615beb565b6020604051808303816000875af1925050508015613a6857506040513d601f19601f82011682018060405250810190613a659190615c5a565b60015b613b0e57613a74615c94565b806308c379a01415613ad15750613a89615cb6565b80613a945750613ad3565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ac89190614016565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0590615dbe565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8c90615e50565b60405180910390fd5b505b505050505050565b60008183613bad9190615104565b905092915050565b613bd48473ffffffffffffffffffffffffffffffffffffffff16613d8d565b15613d85578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613c1a959493929190615e70565b6020604051808303816000875af1925050508015613c5657506040513d601f19601f82011682018060405250810190613c539190615c5a565b60015b613cfc57613c62615c94565b806308c379a01415613cbf5750613c77615cb6565b80613c825750613cc1565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cb69190614016565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cf390615dbe565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d7a90615e50565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613def82613dc4565b9050919050565b613dff81613de4565b8114613e0a57600080fd5b50565b600081359050613e1c81613df6565b92915050565b6000819050919050565b613e3581613e22565b8114613e4057600080fd5b50565b600081359050613e5281613e2c565b92915050565b60008060408385031215613e6f57613e6e613dba565b5b6000613e7d85828601613e0d565b9250506020613e8e85828601613e43565b9150509250929050565b613ea181613e22565b82525050565b6000602082019050613ebc6000830184613e98565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ef781613ec2565b8114613f0257600080fd5b50565b600081359050613f1481613eee565b92915050565b600060208284031215613f3057613f2f613dba565b5b6000613f3e84828501613f05565b91505092915050565b60008115159050919050565b613f5c81613f47565b82525050565b6000602082019050613f776000830184613f53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fb7578082015181840152602081019050613f9c565b83811115613fc6576000848401525b50505050565b6000601f19601f8301169050919050565b6000613fe882613f7d565b613ff28185613f88565b9350614002818560208601613f99565b61400b81613fcc565b840191505092915050565b600060208201905081810360008301526140308184613fdd565b905092915050565b60006020828403121561404e5761404d613dba565b5b600061405c84828501613e43565b91505092915050565b6000806040838503121561407c5761407b613dba565b5b600061408a85828601613e43565b925050602061409b85828601613e43565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140e282613fcc565b810181811067ffffffffffffffff82111715614101576141006140aa565b5b80604052505050565b6000614114613db0565b905061412082826140d9565b919050565b600067ffffffffffffffff8211156141405761413f6140aa565b5b602082029050602081019050919050565b600080fd5b600061416961416484614125565b61410a565b9050808382526020820190506020840283018581111561418c5761418b614151565b5b835b818110156141b557806141a18882613e43565b84526020840193505060208101905061418e565b5050509392505050565b600082601f8301126141d4576141d36140a5565b5b81356141e4848260208601614156565b91505092915050565b600080fd5b600067ffffffffffffffff82111561420d5761420c6140aa565b5b61421682613fcc565b9050602081019050919050565b82818337600083830152505050565b6000614245614240846141f2565b61410a565b905082815260208101848484011115614261576142606141ed565b5b61426c848285614223565b509392505050565b600082601f830112614289576142886140a5565b5b8135614299848260208601614232565b91505092915050565b600080600080600060a086880312156142be576142bd613dba565b5b60006142cc88828901613e0d565b95505060206142dd88828901613e0d565b945050604086013567ffffffffffffffff8111156142fe576142fd613dbf565b5b61430a888289016141bf565b935050606086013567ffffffffffffffff81111561432b5761432a613dbf565b5b614337888289016141bf565b925050608086013567ffffffffffffffff81111561435857614357613dbf565b5b61436488828901614274565b9150509295509295909350565b600067ffffffffffffffff82111561438c5761438b6140aa565b5b602082029050602081019050919050565b60006143b06143ab84614371565b61410a565b905080838252602082019050602084028301858111156143d3576143d2614151565b5b835b818110156143fc57806143e88882613e0d565b8452602084019350506020810190506143d5565b5050509392505050565b600082601f83011261441b5761441a6140a5565b5b813561442b84826020860161439d565b91505092915050565b6000806040838503121561444b5761444a613dba565b5b600083013567ffffffffffffffff81111561446957614468613dbf565b5b61447585828601614406565b925050602083013567ffffffffffffffff81111561449657614495613dbf565b5b6144a2858286016141bf565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144e181613e22565b82525050565b60006144f383836144d8565b60208301905092915050565b6000602082019050919050565b6000614517826144ac565b61452181856144b7565b935061452c836144c8565b8060005b8381101561455d57815161454488826144e7565b975061454f836144ff565b925050600181019050614530565b5085935050505092915050565b60006020820190508181036000830152614584818461450c565b905092915050565b6000602082840312156145a2576145a1613dba565b5b60006145b084828501613e0d565b91505092915050565b6145c281613de4565b82525050565b60006020820190506145dd60008301846145b9565b92915050565b6145ec81613f47565b81146145f757600080fd5b50565b600081359050614609816145e3565b92915050565b6000806040838503121561462657614625613dba565b5b600061463485828601613e0d565b9250506020614645858286016145fa565b9150509250929050565b61465881613ec2565b82525050565b6000602082019050614673600083018461464f565b92915050565b600080fd5b60008083601f840112614694576146936140a5565b5b8235905067ffffffffffffffff8111156146b1576146b0614679565b5b6020830191508360208202830111156146cd576146cc614151565b5b9250929050565b6000806000604084860312156146ed576146ec613dba565b5b600084013567ffffffffffffffff81111561470b5761470a613dbf565b5b6147178682870161467e565b9350935050602061472a86828701613e43565b9150509250925092565b600060c0820190506147496000830189613e98565b6147566020830188613e98565b6147636040830187613e98565b6147706060830186613e98565b61477d6080830185613f53565b61478a60a0830184613e98565b979650505050505050565b600080604083850312156147ac576147ab613dba565b5b60006147ba85828601613e0d565b92505060206147cb85828601613e0d565b9150509250929050565b600080600080600060a086880312156147f1576147f0613dba565b5b60006147ff88828901613e0d565b955050602061481088828901613e0d565b945050604061482188828901613e43565b935050606061483288828901613e43565b925050608086013567ffffffffffffffff81111561485357614852613dbf565b5b61485f88828901614274565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006148c8602b83613f88565b91506148d38261486c565b604082019050919050565b600060208201905081810360008301526148f7816148bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061494557607f821691505b60208210811415614959576149586148fe565b5b50919050565b600081905092915050565b600061497582613f7d565b61497f818561495f565b935061498f818560208601613f99565b80840191505092915050565b60006149a7828561496a565b91506149b3828461496a565b91508190509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149f5602083613f88565b9150614a00826149bf565b602082019050919050565b60006020820190508181036000830152614a24816149e8565b9050919050565b7f436f6e7472616374205061757365640000000000000000000000000000000000600082015250565b6000614a61600f83613f88565b9150614a6c82614a2b565b602082019050919050565b60006020820190508181036000830152614a9081614a54565b9050919050565b7f5a65726f20616464726573730000000000000000000000000000000000000000600082015250565b6000614acd600c83613f88565b9150614ad882614a97565b602082019050919050565b60006020820190508181036000830152614afc81614ac0565b9050919050565b7f4e4654206d696e742064697361626c6564000000000000000000000000000000600082015250565b6000614b39601183613f88565b9150614b4482614b03565b602082019050919050565b60006020820190508181036000830152614b6881614b2c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614ba982613e22565b9150614bb483613e22565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614be957614be8614b6f565b5b828201905092915050565b7f4261642049440000000000000000000000000000000000000000000000000000600082015250565b6000614c2a600683613f88565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f53656c6c2064697361626c656400000000000000000000000000000000000000600082015250565b6000614c96600d83613f88565b9150614ca182614c60565b602082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b7f4d617820737570706c7900000000000000000000000000000000000000000000600082015250565b6000614d02600a83613f88565b9150614d0d82614ccc565b602082019050919050565b60006020820190508181036000830152614d3181614cf5565b9050919050565b7f57726f6e6720616d740000000000000000000000000000000000000000000000600082015250565b6000614d6e600983613f88565b9150614d7982614d38565b602082019050919050565b60006020820190508181036000830152614d9d81614d61565b9050919050565b7f4d6178206d696e74000000000000000000000000000000000000000000000000600082015250565b6000614dda600883613f88565b9150614de582614da4565b602082019050919050565b60006020820190508181036000830152614e0981614dcd565b9050919050565b7f43616e6e6f742073656c6c000000000000000000000000000000000000000000600082015250565b6000614e46600b83613f88565b9150614e5182614e10565b602082019050919050565b60006020820190508181036000830152614e7581614e39565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b6000614eb2600f83613f88565b9150614ebd82614e7c565b602082019050919050565b60006020820190508181036000830152614ee181614ea5565b9050919050565b7f537461727420526564656d7074696f6e20466972737400000000000000000000600082015250565b6000614f1e601683613f88565b9150614f2982614ee8565b602082019050919050565b60006020820190508181036000830152614f4d81614f11565b9050919050565b600081905092915050565b50565b6000614f6f600083614f54565b9150614f7a82614f5f565b600082019050919050565b6000614f9082614f62565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000614fd0601483613f88565b9150614fdb82614f9a565b602082019050919050565b60006020820190508181036000830152614fff81614fc3565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615062603283613f88565b915061506d82615006565b604082019050919050565b6000602082019050818103600083015261509181615055565b9050919050565b7f4e6f20666f756e64730000000000000000000000000000000000000000000000600082015250565b60006150ce600983613f88565b91506150d982615098565b602082019050919050565b600060208201905081810360008301526150fd816150c1565b9050919050565b600061510f82613e22565b915061511a83613e22565b92508282101561512d5761512c614b6f565b5b828203905092915050565b7f496e76616c696420507269636500000000000000000000000000000000000000600082015250565b600061516e600d83613f88565b915061517982615138565b602082019050919050565b6000602082019050818103600083015261519d81615161565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000615200602983613f88565b915061520b826151a4565b604082019050919050565b6000602082019050818103600083015261522f816151f3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061527082613e22565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152a3576152a2614b6f565b5b600182019050919050565b7f4e6f742073746172746564000000000000000000000000000000000000000000600082015250565b60006152e4600b83613f88565b91506152ef826152ae565b602082019050919050565b60006020820190508181036000830152615313816152d7565b9050919050565b6000819050919050565b6000819050919050565b600061534961534461533f8461531a565b615324565b613e22565b9050919050565b6153598161532e565b82525050565b60006020820190506153746000830184615350565b92915050565b7f4f776e6572204164647265737300000000000000000000000000000000000000600082015250565b60006153b0600d83613f88565b91506153bb8261537a565b602082019050919050565b600060208201905081810360008301526153df816153a3565b9050919050565b60006153f182613de4565b9050919050565b615401816153e6565b811461540c57600080fd5b50565b60008151905061541e816153f8565b92915050565b60006020828403121561543a57615439613dba565b5b60006154488482850161540f565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006154ad602983613f88565b91506154b882615451565b604082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061553f602683613f88565b915061554a826154e3565b604082019050919050565b6000602082019050818103600083015261556e81615532565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155af82613e22565b91506155ba83613e22565b9250826155ca576155c9615575565b5b828204905092915050565b60006155e082613e22565b91506155eb83613e22565b9250826155fb576155fa615575565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615662602183613f88565b915061566d82615606565b604082019050919050565b6000602082019050818103600083015261569181615655565b9050919050565b60006040820190506156ad6000830185613e98565b6156ba6020830184613e98565b9392505050565b60006156cc82613e22565b91506156d783613e22565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157105761570f614b6f565b5b828202905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615777602883613f88565b91506157828261571b565b604082019050919050565b600060208201905081810360008301526157a68161576a565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615809602583613f88565b9150615814826157ad565b604082019050919050565b60006020820190508181036000830152615838816157fc565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061589b602a83613f88565b91506158a68261583f565b604082019050919050565b600060208201905081810360008301526158ca8161588e565b9050919050565b600060408201905081810360008301526158eb818561450c565b905081810360208301526158ff818461450c565b90509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615964602383613f88565b915061596f82615908565b604082019050919050565b6000602082019050818103600083015261599381615957565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006159f6602483613f88565b9150615a018261599a565b604082019050919050565b60006020820190508181036000830152615a25816159e9565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615a88602983613f88565b9150615a9382615a2c565b604082019050919050565b60006020820190508181036000830152615ab781615a7b565b9050919050565b7f496e76616c6964206d696e740000000000000000000000000000000000000000600082015250565b6000615af4600c83613f88565b9150615aff82615abe565b602082019050919050565b60006020820190508181036000830152615b2381615ae7565b9050919050565b7f496e76616c696420737461676500000000000000000000000000000000000000600082015250565b6000615b60600d83613f88565b9150615b6b82615b2a565b602082019050919050565b60006020820190508181036000830152615b8f81615b53565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bbd82615b96565b615bc78185615ba1565b9350615bd7818560208601613f99565b615be081613fcc565b840191505092915050565b600060a082019050615c0060008301886145b9565b615c0d60208301876145b9565b615c1a6040830186613e98565b615c276060830185613e98565b8181036080830152615c398184615bb2565b90509695505050505050565b600081519050615c5481613eee565b92915050565b600060208284031215615c7057615c6f613dba565b5b6000615c7e84828501615c45565b91505092915050565b60008160e01c9050919050565b600060033d1115615cb35760046000803e615cb0600051615c87565b90505b90565b600060443d1015615cc657615d49565b615cce613db0565b60043d036004823e80513d602482011167ffffffffffffffff82111715615cf6575050615d49565b808201805167ffffffffffffffff811115615d145750505050615d49565b80602083010160043d038501811115615d31575050505050615d49565b615d40826020018501866140d9565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615da8603483613f88565b9150615db382615d4c565b604082019050919050565b60006020820190508181036000830152615dd781615d9b565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615e3a602883613f88565b9150615e4582615dde565b604082019050919050565b60006020820190508181036000830152615e6981615e2d565b9050919050565b600060a082019050615e8560008301886145b9565b615e9260208301876145b9565b8181036040830152615ea4818661450c565b90508181036060830152615eb8818561450c565b90508181036080830152615ecc8184615bb2565b9050969550505050505056fe68747470733a2f2f697066732e696f2f697066732f516d6455466a343562657a6f4c4e6f6364397a633775384d4c53654e7461325264706538463554464351634d784a697066733a2f2f516d62337564736a5172656a56725a444b63526a414c5947376243705776446846316977547163637064614251562fa26469706673582212202cffb23d841112849e91f87183693a9b7f85bcd2a6ca79c6e9c76fea401da70664736f6c634300080a0033
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 ]
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.