ERC-721
Overview
Max Total Supply
278 uNFT
Holders
134
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 uNFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFTSalesWhitelist
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./ERC721Min.sol"; contract OwnableDelegateProxy {} contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract NFTSalesWhitelist is Ownable, ERC721Min, ReentrancyGuard { using Strings for uint256; using SafeERC20 for IERC20; address public immutable proxyRegistryAddress; // opensea proxy mapping(address => bool) proxyToApproved; // proxy allowance for interaction with future contract string private _contractURI; string private _tokenBaseURI = ""; address public treasuryAddress; bool public useBaseUriOnly = true; mapping(uint256 => string) public TokenURIMap; // allows for assigning individual/unique metada per token uint16 public maxPerAddress; uint16 public maxPerMint; uint16 maxPerAddressForFive; uint16 maxMint; uint16 public maxMintForOne; uint16 maxMintForFive; bool public saleActive; uint256 public price; uint256 priceForFive; struct FeeRecipient { address recipient; uint256 basisPoints; } mapping(uint256 => FeeRecipient) public FeeRecipients; uint256 feeRecipientCount; uint256 totalFeeBasisPoints; bool whitelistEnabled = true; // whitelist mapping(address => bool) public Whitelist; mapping(address => uint256) public WhitelistMints; uint256 public whitelistMax = 3; constructor(string memory name_, string memory symbol_, address treasury_) ERC721Min(name_, symbol_) { proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; treasuryAddress = treasury_; } function totalSupply() external view returns(uint256) { return _owners.length; } // ** - CORE - ** // function buyOne() external payable { require(saleActive, "SALE_CLOSED"); require(msg.value == price, "INCORRECT_ETH"); require(maxMintForOne > _owners.length, "EXCEED_MAX_SALE_SUPPLY"); require(maxPerAddress == 0 || balanceOf(_msgSender()) < maxPerAddress, "EXCEED_MAX_PER_USER"); if (whitelistEnabled) { require(Whitelist[_msgSender()], "NOT_ON_WHITELIST"); require(WhitelistMints[_msgSender()] < whitelistMax, "MAX_WL_MINTED"); WhitelistMints[_msgSender()]++; } _mintMin(); emit BuyOne(_msgSender(), msg.value); } function buyFive() external payable { require(saleActive, "SALE_CLOSED"); require(maxMintForOne > 4, "MAXMINT<5"); require(msg.value == priceForFive, "INCORRECT_ETH"); require(maxMintForFive > _owners.length, "EXCEED_MAX_SALE_SUPPLY"); require(maxPerAddress == 0 || balanceOf(_msgSender()) < maxPerAddressForFive, "EXCEED_MAX_PER_USER"); if (whitelistEnabled) { require(Whitelist[_msgSender()], "NOT_ON_WHITELIST"); require(WhitelistMints[_msgSender()] + 4 < whitelistMax, "MAX_WL_MINTED"); WhitelistMints[_msgSender()] += 5; } _mintMin(); _mintMin(); _mintMin(); _mintMin(); _mintMin(); emit BuyFive(_msgSender(), msg.value); } function buy(uint8 amount) external payable { require(saleActive, "SALE_CLOSED"); require(msg.value == price * amount, "INCORRECT_ETH"); require(maxMint > _owners.length + amount, "EXCEED_MAX_SALE_SUPPLY"); require(maxPerAddress == 0 || balanceOf(_msgSender()) + amount - 1 < maxPerAddress, "EXCEED_MAX_PER_USER"); if (whitelistEnabled) { require(Whitelist[_msgSender()], "NOT_ON_WHITELIST"); require(WhitelistMints[_msgSender()] + amount - 1 < whitelistMax, "MAX_WL_MINTED"); WhitelistMints[_msgSender()] += amount; } for (uint256 i = 0; i < amount; i++) { _mintMin(); } emit Buy(_msgSender(), amount, msg.value); } // ** - PROXY - ** // function mintOne(address receiver) external onlyProxy { require(maxMintForOne > _owners.length, "EXCEED_MAX_SALE_SUPPLY"); require(maxPerAddress == 0 || balanceOf(receiver) < maxPerAddress, "EXCEED_MAX_PER_USER"); _mintMin2(receiver); emit MintOne(_msgSender(), receiver); } function mintFive(address receiver) external onlyProxy { require(maxMintForOne > 4, "MAXMINT<5"); require(maxMintForFive > _owners.length, "EXCEED_MAX_SALE_SUPPLY"); require(maxPerAddress == 0 || balanceOf(receiver) < maxPerAddressForFive, "EXCEED_MAX_PER_USER"); _mintMin2(receiver); _mintMin2(receiver); _mintMin2(receiver); _mintMin2(receiver); _mintMin2(receiver); emit MintFive(_msgSender(), receiver); } function mint(address receiver, uint16 amount) external onlyProxy { require(maxMint > _owners.length + amount, "EXCEED_MAX_SALE_SUPPLY"); require(amount < maxPerMint, "EXCEED_MAX_PER_MINT"); require(maxPerAddress == 0 || balanceOf(receiver) + amount - 1 < maxPerAddress, "EXCEED_MAX_PER_USER"); for (uint256 i = 0; i < amount; i++) { _mintMin2(receiver); } emit Mint(_msgSender(), receiver, amount); } /**** WHITELIST ****/ function whitelistAdd(address[] calldata addresses) external onlyOwner { for(uint256 x; x < addresses.length; x++) { Whitelist[addresses[x]] = true; } emit WhitelistAdd(_msgSender(), addresses); } function whitelistRemove(address[] calldata addresses) external onlyOwner { for(uint256 x; x < addresses.length; x++) { Whitelist[addresses[x]] = false; } emit WhitelistRemove(_msgSender(), addresses); } function setWhitelistMax(uint256 value) external onlyOwner { require(value > 0, "AMOUNT=0"); whitelistMax = value; } /*** FEE RECIPIENTS ***/ function addFeeRecipient(address recipient, uint256 basisPoints) external onlyOwner { feeRecipientCount++; FeeRecipients[feeRecipientCount].recipient = recipient; FeeRecipients[feeRecipientCount].basisPoints = basisPoints; totalFeeBasisPoints += basisPoints; } function editFeeRecipient(uint256 id, address recipient, uint256 basisPoints) external onlyOwner { require(id <= feeRecipientCount, "INVALID_ID"); totalFeeBasisPoints = totalFeeBasisPoints - FeeRecipients[feeRecipientCount].basisPoints + basisPoints; FeeRecipients[feeRecipientCount].recipient = recipient; FeeRecipients[feeRecipientCount].basisPoints = basisPoints; } function distributeETH() external nonReentrant onlyOwner { require(feeRecipientCount > 0, "RECIPIENTS_NOT_SET"); uint256 bal = address(this).balance; for(uint256 x = 1; x <= feeRecipientCount; x++) { uint256 amount = bal * FeeRecipients[x].basisPoints / totalFeeBasisPoints; amount = amount > address(this).balance ? address(this).balance : amount; (bool sent, ) = FeeRecipients[x].recipient.call{value: amount}(""); require(sent, "FAILED_SENDING_FUNDS"); } emit DistributeETH(_msgSender(), bal); } /*** WITHDRAW ***/ function withdrawETH() external nonReentrant onlyOwner { require(_msgSender() == owner() || _msgSender() == treasuryAddress || proxyToApproved[_msgSender()], "NOT_ALLOWED"); require(treasuryAddress != address(0), "TREASURY_NOT_SET"); uint256 bal = address(this).balance; (bool sent, ) = treasuryAddress.call{value: bal}(""); require(sent, "FAILED_SENDING_FUNDS"); emit WithdrawETH(_msgSender(), bal); } function withdrawTokens(address _token) external nonReentrant onlyOwner { require(_msgSender() == owner() || _msgSender() == treasuryAddress || proxyToApproved[_msgSender()], "NOT_ALLOWED"); require(treasuryAddress != address(0), "TREASURY_NOT_SET"); IERC20(_token).safeTransfer( treasuryAddress, IERC20(_token).balanceOf(address(this)) ); } /*** ADMIN ***/ function gift(address[] calldata receivers, uint256[] memory amounts) external onlyOwner { for (uint256 x = 0; x < receivers.length; x++) { for (uint256 i = 0; i < amounts[x]; i++) { _mintMin2(receivers[x]); } } } function updateConfig(uint16 _maxMint, uint16 _maxPerMint, uint256 _price, uint16 _maxPerAddress, bool _saleActive, string calldata _uri) external onlyOwner { maxMint = _maxMint+1; maxMintForOne = _maxMint; maxMintForFive = _maxMint > 4 ? _maxMint - 4 : 0; maxPerMint = _maxPerMint + 1; price = _price; priceForFive = _price * 5; maxPerAddress = _maxPerAddress > 0 ? _maxPerAddress : 0; maxPerAddressForFive = _maxPerAddress > 1 ? _maxPerAddress - 4 : 0; saleActive = _saleActive; _tokenBaseURI = _uri; } function setSaleActive(bool value) external onlyOwner { saleActive = value; } function setWhitelistSaleActive() external onlyOwner { whitelistEnabled = true; saleActive = true; } function setPublicSaleActive() external onlyOwner { whitelistEnabled = false; saleActive = true; } function setMaxPerMint(uint16 _maxPerMint) external onlyOwner { maxPerMint = _maxPerMint; } function setMaxMint(uint16 maxMint_) external onlyOwner { maxMint = maxMint_ + 1; maxMintForOne = maxMint_; maxMintForFive = maxMint_ > 4 ? maxMint_ - 4 : 0; } function setMaxPerAddress(uint16 _maxPerAddress) external onlyOwner { maxPerAddress = _maxPerAddress > 0 ? _maxPerAddress : 0; maxPerAddressForFive = _maxPerAddress > 1 ? _maxPerAddress - 4 : maxPerAddress; } function setPrice(uint256 _price) external onlyOwner { price = _price; priceForFive = _price * 5; } // to avoid opensea listing costs function isApprovedForAll(address _owner, address operator) public view override returns (bool) { OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress); if ( address(proxyRegistry.proxies(_owner)) == operator || proxyToApproved[operator] ) return true; return super.isApprovedForAll(_owner, operator); } function flipProxyState(address proxyAddress) public onlyOwner { proxyToApproved[proxyAddress] = !proxyToApproved[proxyAddress]; } function isProxyToApproved(address proxyAddress) external view onlyOwner returns(bool) { return proxyToApproved[proxyAddress]; } function setTreasuryAddress(address addr) external onlyOwner { treasuryAddress = addr; } function setContractURI(string calldata URI) external onlyOwner { _contractURI = URI; } function setBaseURI(string calldata URI) external onlyOwner { _tokenBaseURI = URI; } /*** NFT URI ***/ function contractURI() public view returns (string memory) { return _contractURI; } function setUseBaseUri(bool value) external onlyOwner { useBaseUriOnly = value; } function revealNFTImages(string calldata newURI) external onlyOwner { useBaseUriOnly = false; _tokenBaseURI = newURI; } function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (bytes(TokenURIMap[tokenId]).length > 0) return TokenURIMap[tokenId]; if (useBaseUriOnly) return _tokenBaseURI; return bytes(_tokenBaseURI).length > 0 ? string(abi.encodePacked(_tokenBaseURI, tokenId.toString())) : ""; } function setTokenUri(uint256 tokenId, string calldata _uri) external onlyOwner { TokenURIMap[tokenId] = _uri; } function isOwnerOf(address account, uint256[] calldata _tokenIds) external view returns (bool) { for (uint256 i; i < _tokenIds.length; ++i) { if (_owners[_tokenIds[i]] != account) return false; } return true; } modifier onlyProxy() { require(proxyToApproved[_msgSender()] == true, "onlyProxy"); _; } event DistributeETH(address indexed sender, uint256 indexed balance); event DistributeTokens(address indexed sender, uint256 indexed balance); event WithdrawETH(address indexed sender, uint256 indexed balance); event BuyOne(address indexed user, uint256 indexed eth); event BuyFive(address indexed user, uint256 indexed eth); event Buy(address indexed user, uint256 indexed amount, uint256 indexed eth); event MintOne(address indexed user, address indexed receiver); event MintFive(address indexed user, address indexed receiver); event Mint(address indexed user, address indexed receiver, uint256 indexed amount); event WhitelistAdd(address indexed user, address[] indexed addresses); event WhitelistRemove(address indexed user, address[] indexed addresses); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; abstract contract ERC721Min is Context, ERC165, IERC721, IERC721Metadata { using Address for address; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address address[] internal _owners; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); uint256 count = 0; uint256 length = _owners.length; for (uint256 i = 0; i < length; ++i) { if (owner == _owners[i]) { ++count; } } delete length; return count; } function getOwnerCount() external view returns(uint256) { return _owners.length; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Min.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } function batchTransferFrom( address _from, address _to, uint256[] memory _tokenIds ) public virtual { for (uint256 i = 0; i < _tokenIds.length; i++) { transferFrom(_from, _to, _tokenIds[i]); } } function batchSafeTransferFrom( address _from, address _to, uint256[] memory _tokenIds, bytes memory data_ ) public virtual { for (uint256 i = 0; i < _tokenIds.length; i++) { safeTransferFrom(_from, _to, _tokenIds[i], data_); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721Min.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "MINT_TO_ZERO"); require(!_exists(tokenId), "TOKEN_MINTED"); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _mintMin() internal virtual { _owners.push(_msgSender()); emit Transfer(address(0), _msgSender(), _owners.length - 1); } // check to != address(0) in calling function function _mintMin2(address to) internal virtual { _owners.push(to); emit Transfer(address(0), to, _owners.length - 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Min.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721Min.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Min.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} mapping(uint256 => bool) _isStaked; address internal stakingContract; function _setStakingContract(address _stakingContract) internal virtual { stakingContract = _stakingContract; } modifier onlyStakingContract() { require( _msgSender() == stakingContract, "ONLY_STAKING_CONTRACT" ); _; } function isStaked(uint256 tokenId) external view returns(bool) { return _isStaked[tokenId]; } function stake(address user, uint256 tokenId) external onlyStakingContract { require(ownerOf(tokenId) == user, "NOT_OWNER"); require(!_isStaked[tokenId], "ALREADY_STAKED"); _isStaked[tokenId] = !_isStaked[tokenId]; } /* should only be called by contract owner */ function _unstake(uint256 tokenId) internal virtual { _isStaked[tokenId] = false; } function unstake(address user, uint256 tokenId) external onlyStakingContract { require(ownerOf(tokenId) == user, "NOT_OWNER"); _isStaked[tokenId] = false; } function tokenOfOwnerByIndex(address account, uint256 index) public view returns (uint256) { uint256 foundCount; for (uint256 i; i < _owners.length; ++i) { if (_owners[i] == account) { if (foundCount == index) return i; foundCount++; } } require(foundCount > 0, "NONE_FOUND"); revert("OUT_OF_INDEX"); } }
// 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 (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"treasury_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"BuyFive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"BuyOne","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"DistributeETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"DistributeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"MintFive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"MintOne","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"WhitelistAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"WhitelistRemove","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"FeeRecipients","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenURIMap","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"addFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"buyFive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"buyOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"editFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwnerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"isProxyToApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintForOne","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"mintFive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"mintOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"revealNFTImages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"maxMint_","type":"uint16"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxPerAddress","type":"uint16"}],"name":"setMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxPerMint","type":"uint16"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setUseBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setWhitelistMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxMint","type":"uint16"},{"internalType":"uint16","name":"_maxPerMint","type":"uint16"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint16","name":"_maxPerAddress","type":"uint16"},{"internalType":"bool","name":"_saleActive","type":"bool"},{"internalType":"string","name":"_uri","type":"string"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useBaseUriOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"whitelistAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"whitelistRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040819052600060a08190526200001b91600b9162000142565b50600c805460ff60a01b1916600160a01b1790556014805460ff1916600117905560036017553480156200004e57600080fd5b5060405162004d2d38038062004d2d8339810160408190526200007191620002b5565b82826200007e33620000f2565b81516200009390600190602085019062000142565b508051620000a990600290602084019062000142565b505060016008555073a5409ec958c83c3f309868babaca7c86dcb077c1608052600c80546001600160a01b0319166001600160a01b0392909216919091179055506200037f9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001509062000342565b90600052602060002090601f016020900481019282620001745760008555620001bf565b82601f106200018f57805160ff1916838001178555620001bf565b82800160010185558215620001bf579182015b82811115620001bf578251825591602001919060010190620001a2565b50620001cd929150620001d1565b5090565b5b80821115620001cd5760008155600101620001d2565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021057600080fd5b81516001600160401b03808211156200022d576200022d620001e8565b604051601f8301601f19908116603f01168101908282118183101715620002585762000258620001e8565b816040528381526020925086838588010111156200027557600080fd5b600091505b838210156200029957858201830151818301840152908201906200027a565b83821115620002ab5760008385830101525b9695505050505050565b600080600060608486031215620002cb57600080fd5b83516001600160401b0380821115620002e357600080fd5b620002f187838801620001fe565b945060208601519150808211156200030857600080fd5b506200031786828701620001fe565b604086015190935090506001600160a01b03811681146200033757600080fd5b809150509250925092565b600181811c908216806200035757607f821691505b602082108114156200037957634e487b7160e01b600052602260045260246000fd5b50919050565b60805161498b620003a260003960008181610b51015261300e015261498b6000f3fe6080604052600436106104055760003560e01c80638d66509511610213578063bf60dc2111610123578063e8a3d485116100ab578063f2fde38b1161007a578063f2fde38b14610c2d578063f3993d1114610c4d578063f73c814b14610c6d578063f980dc4514610c8d578063fa695a9714610cad57600080fd5b8063e8a3d48514610bc8578063e985e9c514610bdd578063eb73900b14610bfd578063ef18374a1461058d57600080fd5b8063c87b56dd116100f2578063c87b56dd14610b1f578063cd7c032614610b3f578063d2ec39f414610b73578063dae9482114610b93578063e086e5ec14610bb357600080fd5b8063bf60dc2114610a9f578063c2962bc714610abf578063c2a672e014610adf578063c5f956af14610aff57600080fd5b8063a309a672116101a6578063b08b27a611610175578063b08b27a614610a04578063b88d4fde14610a24578063b8b9b54914610a44578063baa51f8614610a59578063bc629bf514610a8957600080fd5b8063a309a67214610983578063ad0be4bd146109a3578063ad27c071146109c3578063adc9772e146109e457600080fd5b806395d89b41116101e257806395d89b41146109185780639cf949431461092d578063a035b1fe1461094d578063a22cb4651461096357600080fd5b80638d665095146108b25780638da5cb5b146108ba57806391b7f5ed146108d8578063938e3d7b146108f857600080fd5b8063507e094f116103195780636902ad69116102a157806370a082311161027057806370a0823114610810578063715018a6146108305780637705f9b5146108455780637c80d7fb14610865578063841718a61461089257600080fd5b80636902ad69146107b15780636909dc12146107c65780636ab81008146107e65780636b5e28961461080857600080fd5b80635aac4be8116102e85780635aac4be8146107155780636352211e14610735578063639814e0146107555780636605bfda1461077057806368428a1b1461079057600080fd5b8063507e094f1461068157806355f804b3146106b557806357f7789e146106d55780635a4fee30146106f557600080fd5b806314107f3c1161039c5780632f745c591161036b5780632f745c59146105ec5780633e11ab3f1461060c57806342842e0e1461062157806349df728c146106415780634d44660c1461066157600080fd5b806314107f3c1461057a57806318160ddd1461058d5780631d2ee863146105ac57806323b872dd146105cc57600080fd5b8063081812fc116103d8578063081812fc146104e2578063095ea7b31461051a5780630be9396e1461053a5780630c82b9421461055a57600080fd5b806301ffc9a71461040a57806305dfd2c01461043f57806306fdde03146104615780630753657614610483575b600080fd5b34801561041657600080fd5b5061042a610425366004613c92565b610ccd565b60405190151581526020015b60405180910390f35b34801561044b57600080fd5b5061045f61045a366004613cc4565b610d1f565b005b34801561046d57600080fd5b50610476610e02565b6040516104369190613d54565b34801561048f57600080fd5b506104c361049e366004613d67565b601160205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610436565b3480156104ee57600080fd5b506105026104fd366004613d67565b610e94565b6040516001600160a01b039091168152602001610436565b34801561052657600080fd5b5061045f610535366004613d80565b610f1c565b34801561054657600080fd5b5061045f610555366004613d67565b611032565b34801561056657600080fd5b5061045f610575366004613df7565b61109c565b61045f610588366004613e38565b611191565b34801561059957600080fd5b506003545b604051908152602001610436565b3480156105b857600080fd5b5061045f6105c7366004613e5b565b611386565b3480156105d857600080fd5b5061045f6105e7366004613e78565b6114dc565b3480156105f857600080fd5b5061059e610607366004613d80565b61150d565b34801561061857600080fd5b5061045f6115f9565b34801561062d57600080fd5b5061045f61063c366004613e78565b611642565b34801561064d57600080fd5b5061045f61065c366004613e5b565b61165d565b34801561066d57600080fd5b5061042a61067c366004613ea8565b611807565b34801561068d57600080fd5b50600e546106a29062010000900461ffff1681565b60405161ffff9091168152602001610436565b3480156106c157600080fd5b5061045f6106d0366004613f3d565b611889565b3480156106e157600080fd5b5061045f6106f0366004613f72565b6118bf565b34801561070157600080fd5b5061045f6107103660046140d9565b611908565b34801561072157600080fd5b5061045f610730366004613f3d565b611952565b34801561074157600080fd5b50610502610750366004613d67565b611995565b34801561076157600080fd5b50600e546106a29061ffff1681565b34801561077c57600080fd5b5061045f61078b366004613e5b565b611a21565b34801561079c57600080fd5b50600e5461042a90600160601b900460ff1681565b3480156107bd57600080fd5b5061045f611a6d565b3480156107d257600080fd5b506104766107e1366004613d67565b611ab9565b3480156107f257600080fd5b50600e546106a290600160401b900461ffff1681565b61045f611b53565b34801561081c57600080fd5b5061059e61082b366004613e5b565b611cc9565b34801561083c57600080fd5b5061045f611d9b565b34801561085157600080fd5b5061045f610860366004614161565b611dd1565b34801561087157600080fd5b5061059e610880366004613e5b565b60166020526000908152604090205481565b34801561089e57600080fd5b5061045f6108ad3660046141d7565b611e7e565b61045f611ec6565b3480156108c657600080fd5b506000546001600160a01b0316610502565b3480156108e457600080fd5b5061045f6108f3366004613d67565b6120be565b34801561090457600080fd5b5061045f610913366004613f3d565b6120fe565b34801561092457600080fd5b50610476612134565b34801561093957600080fd5b5061045f610948366004613df7565b612143565b34801561095957600080fd5b5061059e600f5481565b34801561096f57600080fd5b5061045f61097e3660046141f4565b612238565b34801561098f57600080fd5b5061045f61099e36600461423f565b6122fd565b3480156109af57600080fd5b5061045f6109be36600461425a565b612347565b3480156109cf57600080fd5b50600c5461042a90600160a01b900460ff1681565b3480156109f057600080fd5b5061045f6109ff366004613d80565b6124d0565b348015610a1057600080fd5b5061045f610a1f36600461423f565b6125f1565b348015610a3057600080fd5b5061045f610a3f36600461428f565b612682565b348015610a5057600080fd5b5061045f6126b4565b348015610a6557600080fd5b5061042a610a74366004613d67565b60009081526006602052604090205460ff1690565b348015610a9557600080fd5b5061059e60175481565b348015610aab57600080fd5b5061045f610aba366004613d80565b61288c565b348015610acb57600080fd5b5061045f610ada36600461423f565b61291f565b348015610aeb57600080fd5b5061045f610afa366004613d80565b6129c0565b348015610b0b57600080fd5b50600c54610502906001600160a01b031681565b348015610b2b57600080fd5b50610476610b3a366004613d67565b612a89565b348015610b4b57600080fd5b506105027f000000000000000000000000000000000000000000000000000000000000000081565b348015610b7f57600080fd5b5061045f610b8e3660046141d7565b612c32565b348015610b9f57600080fd5b5061045f610bae3660046142ee565b612c7a565b348015610bbf57600080fd5b5061045f612dec565b348015610bd457600080fd5b50610476612fdd565b348015610be957600080fd5b5061042a610bf836600461437f565b612fec565b348015610c0957600080fd5b5061042a610c18366004613e5b565b60156020526000908152604090205460ff1681565b348015610c3957600080fd5b5061045f610c48366004613e5b565b6130ee565b348015610c5957600080fd5b5061045f610c683660046143ad565b613189565b348015610c7957600080fd5b5061045f610c88366004613e5b565b6131cb565b348015610c9957600080fd5b5061042a610ca8366004613e5b565b61321e565b348015610cb957600080fd5b5061045f610cc8366004613e5b565b61326c565b60006001600160e01b031982166380ac58cd60e01b1480610cfe57506001600160e01b03198216635b5e139f60e01b145b80610d1957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610d525760405162461bcd60e51b8152600401610d4990614404565b60405180910390fd5b601254831115610d915760405162461bcd60e51b815260206004820152600a6024820152691253959053125117d25160b21b6044820152606401610d49565b6012546000908152601160205260409020600101546013548291610db49161444f565b610dbe9190614466565b6013556012805460009081526011602052604080822080546001600160a01b0319166001600160a01b03969096169590951790945590548152919091206001015550565b606060018054610e119061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3d9061447e565b8015610e8a5780601f10610e5f57610100808354040283529160200191610e8a565b820191906000526020600020905b815481529060010190602001808311610e6d57829003601f168201915b5050505050905090565b6000610e9f8261334c565b610f005760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d49565b506000908152600460205260409020546001600160a01b031690565b6000610f2782611995565b9050806001600160a01b0316836001600160a01b03161415610f955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d49565b336001600160a01b0382161480610fb15750610fb18133612fec565b6110235760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d49565b61102d8383613396565b505050565b6000546001600160a01b0316331461105c5760405162461bcd60e51b8152600401610d4990614404565b600081116110975760405162461bcd60e51b81526020600482015260086024820152670414d4f554e543d360c41b6044820152606401610d49565b601755565b6000546001600160a01b031633146110c65760405162461bcd60e51b8152600401610d4990614404565b60005b81811015611138576000601560008585858181106110e9576110e96144b9565b90506020020160208101906110fe9190613e5b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611130816144cf565b9150506110c9565b5081816040516111499291906144ea565b60405180910390206111583390565b6001600160a01b03167fd6ac91164e2cf7bb91d1929d1af0a25052d12a7033448af7c3866223f9e4d53060405160405180910390a35050565b600e54600160601b900460ff166111ba5760405162461bcd60e51b8152600401610d499061452c565b8060ff16600f546111cb9190614551565b34146111e95760405162461bcd60e51b8152600401610d4990614570565b6003546111fa9060ff831690614466565b600e54600160301b900461ffff16116112255760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff16158061125f5750600e5461ffff16600160ff831661124933611cc9565b6112539190614466565b61125d919061444f565b105b61127b5760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615611328573360009081526015602052604090205460ff166112b55760405162461bcd60e51b8152600401610d49906145f4565b601754336000908152601660205260409020546001906112d99060ff851690614466565b6112e3919061444f565b106113005760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805460ff84169290611322908490614466565b90915550505b60005b8160ff168110156113505761133e613404565b80611348816144cf565b91505061132b565b50604051349060ff83169033907f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed90600090a450565b3360009081526009602052604090205460ff1615156001146113ba5760405162461bcd60e51b8152600401610d4990614645565b600e546004600160401b90910461ffff16116114045760405162461bcd60e51b81526020600482015260096024820152684d41584d494e543c3560b81b6044820152606401610d49565b600354600e54600160501b900461ffff16116114325760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff16158061145a5750600e54640100000000900461ffff1661145882611cc9565b105b6114765760405162461bcd60e51b8152600401610d49906145c7565b61147f81613483565b61148881613483565b61149181613483565b61149a81613483565b6114a381613483565b6040516001600160a01b0382169033907fca78d15c325b0a0f130dd6373892d38330340ba1eb646ae8af9ef29a059baa3390600090a350565b6114e63382613515565b6115025760405162461bcd60e51b8152600401610d4990614668565b61102d8383836135d7565b60008060005b60035481101561158457846001600160a01b03166003828154811061153a5761153a6144b9565b6000918252602090912001546001600160a01b031614156115745783821415611566579150610d199050565b81611570816144cf565b9250505b61157d816144cf565b9050611513565b50600081116115c25760405162461bcd60e51b815260206004820152600a6024820152691393d39157d193d5539160b21b6044820152606401610d49565b60405162461bcd60e51b815260206004820152600c60248201526b09eaaa8be9e8cbe929c888ab60a31b6044820152606401610d49565b6000546001600160a01b031633146116235760405162461bcd60e51b8152600401610d4990614404565b6014805460ff19169055600e805460ff60601b1916600160601b179055565b61102d83838360405180602001604052806000815250612682565b600260085414156116805760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b031633146116af5760405162461bcd60e51b8152600401610d4990614404565b6000546001600160a01b03163314806116db5750600c546001600160a01b0316336001600160a01b0316145b806116f557503360009081526009602052604090205460ff165b61172f5760405162461bcd60e51b815260206004820152600b60248201526a1393d517d0531313d5d15160aa1b6044820152606401610d49565b600c546001600160a01b031661177a5760405162461bcd60e51b815260206004820152601060248201526f1514915054d5549657d393d517d4d15560821b6044820152606401610d49565b600c546040516370a0823160e01b81523060048201526117ff916001600160a01b0390811691908416906370a0823190602401602060405180830381865afa1580156117ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ee91906146f0565b6001600160a01b038416919061372d565b506001600855565b6000805b8281101561187c57846001600160a01b03166003858584818110611831576118316144b9565b9050602002013581548110611848576118486144b9565b6000918252602090912001546001600160a01b03161461186c576000915050611882565b611875816144cf565b905061180b565b50600190505b9392505050565b6000546001600160a01b031633146118b35760405162461bcd60e51b8152600401610d4990614404565b61102d600b8383613be3565b6000546001600160a01b031633146118e95760405162461bcd60e51b8152600401610d4990614404565b6000838152600d60205260409020611902908383613be3565b50505050565b60005b825181101561194b57611939858585848151811061192b5761192b6144b9565b602002602001015185612682565b80611943816144cf565b91505061190b565b5050505050565b6000546001600160a01b0316331461197c5760405162461bcd60e51b8152600401610d4990614404565b600c805460ff60a01b1916905561102d600b8383613be3565b600080600383815481106119ab576119ab6144b9565b6000918252602090912001546001600160a01b0316905080610d195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d49565b6000546001600160a01b03163314611a4b5760405162461bcd60e51b8152600401610d4990614404565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a975760405162461bcd60e51b8152600401610d4990614404565b6014805460ff19166001179055600e805460ff60601b1916600160601b179055565b600d6020526000908152604090208054611ad29061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054611afe9061447e565b8015611b4b5780601f10611b2057610100808354040283529160200191611b4b565b820191906000526020600020905b815481529060010190602001808311611b2e57829003601f168201915b505050505081565b600e54600160601b900460ff16611b7c5760405162461bcd60e51b8152600401610d499061452c565b600f543414611b9d5760405162461bcd60e51b8152600401610d4990614570565b600354600e54600160401b900461ffff1611611bcb5760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff161580611beb5750600e5461ffff16611be933611cc9565b105b611c075760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615611c92573360009081526015602052604090205460ff16611c415760405162461bcd60e51b8152600401610d49906145f4565b6017543360009081526016602052604090205410611c715760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805491611c8c836144cf565b91905055505b611c9a613404565b604051349033907f5998784f6a7026ac2be17a6b1a25a7b7f910e4c84af84272776f36bfc2c8074490600090a3565b60006001600160a01b038216611d345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d49565b600354600090815b81811015611d925760038181548110611d5757611d576144b9565b6000918252602090912001546001600160a01b0386811691161415611d8257611d7f836144cf565b92505b611d8b816144cf565b9050611d3c565b50909392505050565b6000546001600160a01b03163314611dc55760405162461bcd60e51b8152600401610d4990614404565b611dcf600061377f565b565b6000546001600160a01b03163314611dfb5760405162461bcd60e51b8152600401610d4990614404565b60005b828110156119025760005b828281518110611e1b57611e1b6144b9565b6020026020010151811015611e6b57611e59858584818110611e3f57611e3f6144b9565b9050602002016020810190611e549190613e5b565b613483565b80611e63816144cf565b915050611e09565b5080611e76816144cf565b915050611dfe565b6000546001600160a01b03163314611ea85760405162461bcd60e51b8152600401610d4990614404565b600e8054911515600160601b0260ff60601b19909216919091179055565b600e54600160601b900460ff16611eef5760405162461bcd60e51b8152600401610d499061452c565b600e546004600160401b90910461ffff1611611f395760405162461bcd60e51b81526020600482015260096024820152684d41584d494e543c3560b81b6044820152606401610d49565b6010543414611f5a5760405162461bcd60e51b8152600401610d4990614570565b600354600e54600160501b900461ffff1611611f885760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff161580611fb05750600e54640100000000900461ffff16611fae33611cc9565b105b611fcc5760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615612067573360009081526015602052604090205460ff166120065760405162461bcd60e51b8152600401610d49906145f4565b60175433600090815260166020526040902054612024906004614466565b106120415760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805460059290612061908490614466565b90915550505b61206f613404565b612077613404565b61207f613404565b612087613404565b61208f613404565b604051349033907fd395436366d1f372a97c46c0d6fe5bad06ccc350c9de5bee45c74e5054b164f590600090a3565b6000546001600160a01b031633146120e85760405162461bcd60e51b8152600401610d4990614404565b600f8190556120f8816005614551565b60105550565b6000546001600160a01b031633146121285760405162461bcd60e51b8152600401610d4990614404565b61102d600a8383613be3565b606060028054610e119061447e565b6000546001600160a01b0316331461216d5760405162461bcd60e51b8152600401610d4990614404565b60005b818110156121df57600160156000858585818110612190576121906144b9565b90506020020160208101906121a59190613e5b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806121d7816144cf565b915050612170565b5081816040516121f09291906144ea565b60405180910390206121ff3390565b6001600160a01b03167fcd843f7737d79a305493e6db876a1be0a17a416451f2a700901efbe0b8be5fab60405160405180910390a35050565b6001600160a01b0382163314156122915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d49565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146123275760405162461bcd60e51b8152600401610d4990614404565b600e805461ffff909216620100000263ffff000019909216919091179055565b3360009081526009602052604090205460ff16151560011461237b5760405162461bcd60e51b8152600401610d4990614645565b60035461238d9061ffff831690614466565b600e54600160301b900461ffff16116123b85760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff6201000090910481169082161061240d5760405162461bcd60e51b8152602060048201526013602482015272115610d1515117d3505617d4115497d3525395606a1b6044820152606401610d49565b600e5461ffff1615806124495750600e5461ffff90811690600190831661243385611cc9565b61243d9190614466565b612447919061444f565b105b6124655760405162461bcd60e51b8152600401610d49906145c7565b60005b8161ffff1681101561248f5761247d83613483565b80612487816144cf565b915050612468565b5060405161ffff8216906001600160a01b0384169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f890600090a45050565b6007546001600160a01b0316336001600160a01b03161461252b5760405162461bcd60e51b815260206004820152601560248201527413d3931657d4d51052d25391d7d0d3d395149050d5605a1b6044820152606401610d49565b816001600160a01b031661253e82611995565b6001600160a01b0316146125805760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610d49565b60008181526006602052604090205460ff16156125d05760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d4d51052d15160921b6044820152606401610d49565b6000908152600660205260409020805460ff19811660ff9091161517905550565b6000546001600160a01b0316331461261b5760405162461bcd60e51b8152600401610d4990614404565b60008161ffff161161262e576000612630565b805b600e805461ffff191661ffff92831617905560019082161161265857600e5461ffff16612663565b612663600482614709565b600e60046101000a81548161ffff021916908361ffff16021790555050565b61268c3383613515565b6126a85760405162461bcd60e51b8152600401610d4990614668565b611902848484846137cf565b600260085414156126d75760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b031633146127065760405162461bcd60e51b8152600401610d4990614404565b60006012541161274d5760405162461bcd60e51b8152602060048201526012602482015271149150d2541251539514d7d393d517d4d15560721b6044820152606401610d49565b4760015b60125481116128565760135460008281526011602052604081206001015490919061277c9085614551565b6127869190614742565b90504781116127955780612797565b475b60008381526011602052604080822054905192935090916001600160a01b039091169083908381818185875af1925050503d80600081146127f4576040519150601f19603f3d011682016040523d82523d6000602084013e6127f9565b606091505b50509050806128415760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610d49565b5050808061284e906144cf565b915050612751565b50604051819033907f0d20f677b24c0f42423a7e690ab1d066e4ae75145c497a68b1f34bd34944d12290600090a3506001600855565b6000546001600160a01b031633146128b65760405162461bcd60e51b8152600401610d4990614404565b601280549060006128c6836144cf565b90915550506012805460009081526011602052604080822080546001600160a01b0319166001600160a01b0387161790559154815290812060010182905560138054839290612916908490614466565b90915550505050565b6000546001600160a01b031633146129495760405162461bcd60e51b8152600401610d4990614404565b612954816001614756565b600e805469ffffffff0000000000001916600160301b61ffff9384160261ffff60401b191617600160401b9284169283021790556004106129965760006129a1565b6129a1600482614709565b600e600a6101000a81548161ffff021916908361ffff16021790555050565b6007546001600160a01b0316336001600160a01b031614612a1b5760405162461bcd60e51b815260206004820152601560248201527413d3931657d4d51052d25391d7d0d3d395149050d5605a1b6044820152606401610d49565b816001600160a01b0316612a2e82611995565b6001600160a01b031614612a705760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610d49565b6000908152600660205260409020805460ff1916905550565b6060612a948261334c565b612af85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d49565b6000828152600d602052604081208054612b119061447e565b90501115612bb7576000828152600d602052604090208054612b329061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b5e9061447e565b8015612bab5780601f10612b8057610100808354040283529160200191612bab565b820191906000526020600020905b815481529060010190602001808311612b8e57829003601f168201915b50505050509050919050565b600c54600160a01b900460ff1615612bd657600b8054612b329061447e565b6000600b8054612be59061447e565b905011612c015760405180602001604052806000815250610d19565b600b612c0c83613802565b604051602001612c1d929190614798565b60405160208183030381529060405292915050565b6000546001600160a01b03163314612c5c5760405162461bcd60e51b8152600401610d4990614404565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b03163314612ca45760405162461bcd60e51b8152600401610d4990614404565b612caf876001614756565b600e805469ffffffff0000000000001916600160301b61ffff9384160261ffff60401b191617600160401b928a16928302179055600410612cf1576000612cfc565b612cfc600488614709565b600e805461ffff92909216600160501b0261ffff60501b19909216919091179055612d28866001614756565b600e805461ffff92909216620100000263ffff000019909216919091179055600f859055612d57856005614551565b60105561ffff8416612d6a576000612d6c565b835b600e805461ffff191661ffff928316179055600190851611612d8f576000612d9a565b612d9a600485614709565b600e80546cff000000000000ffff00000000191664010000000061ffff939093169290920260ff60601b191691909117600160601b85151502179055612de2600b8383613be3565b5050505050505050565b60026008541415612e0f5760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b03163314612e3e5760405162461bcd60e51b8152600401610d4990614404565b6000546001600160a01b0316331480612e6a5750600c546001600160a01b0316336001600160a01b0316145b80612e8457503360009081526009602052604090205460ff165b612ebe5760405162461bcd60e51b815260206004820152600b60248201526a1393d517d0531313d5d15160aa1b6044820152606401610d49565b600c546001600160a01b0316612f095760405162461bcd60e51b815260206004820152601060248201526f1514915054d5549657d393d517d4d15560821b6044820152606401610d49565b600c5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114612f5a576040519150601f19603f3d011682016040523d82523d6000602084013e612f5f565b606091505b5050905080612fa75760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610d49565b604051829033907f566e45b1c8057e725bf62796a7f1d37ae294393cab069725a09daddd1af98b7990600090a350506001600855565b6060600a8054610e119061447e565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c455279190602401602060405180830381865afa15801561305c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613080919061483f565b6001600160a01b031614806130ad57506001600160a01b03831660009081526009602052604090205460ff165b156130bc576001915050610d19565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6000546001600160a01b031633146131185760405162461bcd60e51b8152600401610d4990614404565b6001600160a01b03811661317d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d49565b6131868161377f565b50565b60005b8151811015611902576131b984848484815181106131ac576131ac6144b9565b60200260200101516114dc565b806131c3816144cf565b91505061318c565b6000546001600160a01b031633146131f55760405162461bcd60e51b8152600401610d4990614404565b6001600160a01b03166000908152600960205260409020805460ff19811660ff90911615179055565b600080546001600160a01b031633146132495760405162461bcd60e51b8152600401610d4990614404565b506001600160a01b03811660009081526009602052604090205460ff165b919050565b3360009081526009602052604090205460ff1615156001146132a05760405162461bcd60e51b8152600401610d4990614645565b600354600e54600160401b900461ffff16116132ce5760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff1615806132ee5750600e5461ffff166132ec82611cc9565b105b61330a5760405162461bcd60e51b8152600401610d49906145c7565b61331381613483565b6040516001600160a01b0382169033907fbbeb90adcc447131bee59467d130894eadeef5c0bca2927f33392c6811e7253c90600090a350565b60035460009082108015610d19575060006001600160a01b031660038381548110613379576133796144b9565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133cb82611995565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180546001600160a01b031916331790559054613454919061444f565b60405133906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4565b600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180546001600160a01b0319166001600160a01b03851617905590546134dc919061444f565b6040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b60006135208261334c565b6135815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d49565b600061358c83611995565b9050806001600160a01b0316846001600160a01b031614806135c75750836001600160a01b03166135bc84610e94565b6001600160a01b0316145b806130e657506130e68185612fec565b826001600160a01b03166135ea82611995565b6001600160a01b0316146136525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610d49565b6001600160a01b0382166136b45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d49565b6136bf600082613396565b81600382815481106136d3576136d36144b9565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261102d9084906138ff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6137da8484846135d7565b6137e6848484846139d1565b6119025760405162461bcd60e51b8152600401610d499061485c565b6060816138265750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613850578061383a816144cf565b91506138499050600a83614742565b915061382a565b6000816001600160401b0381111561386a5761386a613fb0565b6040519080825280601f01601f191660200182016040528015613894576020820181803683370190505b5090505b84156130e6576138a960018361444f565b91506138b6600a866148ae565b6138c1906030614466565b60f81b8183815181106138d6576138d66144b9565b60200101906001600160f81b031916908160001a9053506138f8600a86614742565b9450613898565b6000613954826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613acf9092919063ffffffff16565b80519091501561102d578080602001905181019061397291906148c2565b61102d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d49565b60006001600160a01b0384163b15613ac457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613a159033908990889088906004016148df565b6020604051808303816000875af1925050508015613a50575060408051601f3d908101601f19168201909252613a4d9181019061491c565b60015b613aaa573d808015613a7e576040519150601f19603f3d011682016040523d82523d6000602084013e613a83565b606091505b508051613aa25760405162461bcd60e51b8152600401610d499061485c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130e6565b506001949350505050565b60606130e68484600085856001600160a01b0385163b613b315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d49565b600080866001600160a01b03168587604051613b4d9190614939565b60006040518083038185875af1925050503d8060008114613b8a576040519150601f19603f3d011682016040523d82523d6000602084013e613b8f565b606091505b5091509150613b9f828286613baa565b979650505050505050565b60608315613bb9575081611882565b825115613bc95782518084602001fd5b8160405162461bcd60e51b8152600401610d499190613d54565b828054613bef9061447e565b90600052602060002090601f016020900481019282613c115760008555613c57565b82601f10613c2a5782800160ff19823516178555613c57565b82800160010185558215613c57579182015b82811115613c57578235825591602001919060010190613c3c565b50613c63929150613c67565b5090565b5b80821115613c635760008155600101613c68565b6001600160e01b03198116811461318657600080fd5b600060208284031215613ca457600080fd5b813561188281613c7c565b6001600160a01b038116811461318657600080fd5b600080600060608486031215613cd957600080fd5b833592506020840135613ceb81613caf565b929592945050506040919091013590565b60005b83811015613d17578181015183820152602001613cff565b838111156119025750506000910152565b60008151808452613d40816020860160208601613cfc565b601f01601f19169290920160200192915050565b6020815260006118826020830184613d28565b600060208284031215613d7957600080fd5b5035919050565b60008060408385031215613d9357600080fd5b8235613d9e81613caf565b946020939093013593505050565b60008083601f840112613dbe57600080fd5b5081356001600160401b03811115613dd557600080fd5b6020830191508360208260051b8501011115613df057600080fd5b9250929050565b60008060208385031215613e0a57600080fd5b82356001600160401b03811115613e2057600080fd5b613e2c85828601613dac565b90969095509350505050565b600060208284031215613e4a57600080fd5b813560ff8116811461188257600080fd5b600060208284031215613e6d57600080fd5b813561188281613caf565b600080600060608486031215613e8d57600080fd5b8335613e9881613caf565b92506020840135613ceb81613caf565b600080600060408486031215613ebd57600080fd5b8335613ec881613caf565b925060208401356001600160401b03811115613ee357600080fd5b613eef86828701613dac565b9497909650939450505050565b60008083601f840112613f0e57600080fd5b5081356001600160401b03811115613f2557600080fd5b602083019150836020828501011115613df057600080fd5b60008060208385031215613f5057600080fd5b82356001600160401b03811115613f6657600080fd5b613e2c85828601613efc565b600080600060408486031215613f8757600080fd5b8335925060208401356001600160401b03811115613fa457600080fd5b613eef86828701613efc565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613fee57613fee613fb0565b604052919050565b600082601f83011261400757600080fd5b813560206001600160401b0382111561402257614022613fb0565b8160051b614031828201613fc6565b928352848101820192828101908785111561404b57600080fd5b83870192505b84831015613b9f57823582529183019190830190614051565b600082601f83011261407b57600080fd5b81356001600160401b0381111561409457614094613fb0565b6140a7601f8201601f1916602001613fc6565b8181528460208386010111156140bc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156140ef57600080fd5b84356140fa81613caf565b9350602085013561410a81613caf565b925060408501356001600160401b038082111561412657600080fd5b61413288838901613ff6565b9350606087013591508082111561414857600080fd5b506141558782880161406a565b91505092959194509250565b60008060006040848603121561417657600080fd5b83356001600160401b038082111561418d57600080fd5b61419987838801613dac565b909550935060208601359150808211156141b257600080fd5b506141bf86828701613ff6565b9150509250925092565b801515811461318657600080fd5b6000602082840312156141e957600080fd5b8135611882816141c9565b6000806040838503121561420757600080fd5b823561421281613caf565b91506020830135614222816141c9565b809150509250929050565b803561ffff8116811461326757600080fd5b60006020828403121561425157600080fd5b6118828261422d565b6000806040838503121561426d57600080fd5b823561427881613caf565b91506142866020840161422d565b90509250929050565b600080600080608085870312156142a557600080fd5b84356142b081613caf565b935060208501356142c081613caf565b92506040850135915060608501356001600160401b038111156142e257600080fd5b6141558782880161406a565b600080600080600080600060c0888a03121561430957600080fd5b6143128861422d565b96506143206020890161422d565b9550604088013594506143356060890161422d565b93506080880135614345816141c9565b925060a08801356001600160401b0381111561436057600080fd5b61436c8a828b01613efc565b989b979a50959850939692959293505050565b6000806040838503121561439257600080fd5b823561439d81613caf565b9150602083013561422281613caf565b6000806000606084860312156143c257600080fd5b83356143cd81613caf565b925060208401356143dd81613caf565b915060408401356001600160401b038111156143f857600080fd5b6141bf86828701613ff6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561446157614461614439565b500390565b6000821982111561447957614479614439565b500190565b600181811c9082168061449257607f821691505b602082108114156144b357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156144e3576144e3614439565b5060010190565b60008184825b8581101561452157813561450381613caf565b6001600160a01b0316835260209283019291909101906001016144f0565b509095945050505050565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b600081600019048311821515161561456b5761456b614439565b500290565b6020808252600d908201526c0929c869ea4a48a86a8be8aa89609b1b604082015260600190565b6020808252601690820152754558434545445f4d41585f53414c455f535550504c5960501b604082015260600190565b60208082526013908201527222ac21a2a2a22fa6a0ac2fa822a92faaa9a2a960691b604082015260600190565b60208082526010908201526f1393d517d3d397d5d2125511531254d560821b604082015260600190565b6020808252600d908201526c13505617d5d317d35253951151609a1b604082015260600190565b6020808252600990820152686f6e6c7950726f787960b81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561470257600080fd5b5051919050565b600061ffff8381169083168181101561472457614724614439565b039392505050565b634e487b7160e01b600052601260045260246000fd5b6000826147515761475161472c565b500490565b600061ffff80831681851680830382111561477357614773614439565b01949350505050565b6000815161478e818560208601613cfc565b9290920192915050565b600080845481600182811c9150808316806147b457607f831692505b60208084108214156147d457634e487b7160e01b86526022600452602486fd5b8180156147e857600181146147f957614826565b60ff19861689528489019650614826565b60008b81526020902060005b8681101561481e5781548b820152908501908301614805565b505084890196505b505050505050614836818561477c565b95945050505050565b60006020828403121561485157600080fd5b815161188281613caf565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826148bd576148bd61472c565b500690565b6000602082840312156148d457600080fd5b8151611882816141c9565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061491290830184613d28565b9695505050505050565b60006020828403121561492e57600080fd5b815161188281613c7c565b6000825161494b818460208701613cfc565b919091019291505056fea2646970667358221220b668db94a9dddfb3c5bfb11fb40a3662660c2d598a6bc7858b0f3d5a6719c25b64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c228e829a54a7a5a093eafafd87ed5c2972d5e24000000000000000000000000000000000000000000000000000000000000000443796f70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004754e465400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104055760003560e01c80638d66509511610213578063bf60dc2111610123578063e8a3d485116100ab578063f2fde38b1161007a578063f2fde38b14610c2d578063f3993d1114610c4d578063f73c814b14610c6d578063f980dc4514610c8d578063fa695a9714610cad57600080fd5b8063e8a3d48514610bc8578063e985e9c514610bdd578063eb73900b14610bfd578063ef18374a1461058d57600080fd5b8063c87b56dd116100f2578063c87b56dd14610b1f578063cd7c032614610b3f578063d2ec39f414610b73578063dae9482114610b93578063e086e5ec14610bb357600080fd5b8063bf60dc2114610a9f578063c2962bc714610abf578063c2a672e014610adf578063c5f956af14610aff57600080fd5b8063a309a672116101a6578063b08b27a611610175578063b08b27a614610a04578063b88d4fde14610a24578063b8b9b54914610a44578063baa51f8614610a59578063bc629bf514610a8957600080fd5b8063a309a67214610983578063ad0be4bd146109a3578063ad27c071146109c3578063adc9772e146109e457600080fd5b806395d89b41116101e257806395d89b41146109185780639cf949431461092d578063a035b1fe1461094d578063a22cb4651461096357600080fd5b80638d665095146108b25780638da5cb5b146108ba57806391b7f5ed146108d8578063938e3d7b146108f857600080fd5b8063507e094f116103195780636902ad69116102a157806370a082311161027057806370a0823114610810578063715018a6146108305780637705f9b5146108455780637c80d7fb14610865578063841718a61461089257600080fd5b80636902ad69146107b15780636909dc12146107c65780636ab81008146107e65780636b5e28961461080857600080fd5b80635aac4be8116102e85780635aac4be8146107155780636352211e14610735578063639814e0146107555780636605bfda1461077057806368428a1b1461079057600080fd5b8063507e094f1461068157806355f804b3146106b557806357f7789e146106d55780635a4fee30146106f557600080fd5b806314107f3c1161039c5780632f745c591161036b5780632f745c59146105ec5780633e11ab3f1461060c57806342842e0e1461062157806349df728c146106415780634d44660c1461066157600080fd5b806314107f3c1461057a57806318160ddd1461058d5780631d2ee863146105ac57806323b872dd146105cc57600080fd5b8063081812fc116103d8578063081812fc146104e2578063095ea7b31461051a5780630be9396e1461053a5780630c82b9421461055a57600080fd5b806301ffc9a71461040a57806305dfd2c01461043f57806306fdde03146104615780630753657614610483575b600080fd5b34801561041657600080fd5b5061042a610425366004613c92565b610ccd565b60405190151581526020015b60405180910390f35b34801561044b57600080fd5b5061045f61045a366004613cc4565b610d1f565b005b34801561046d57600080fd5b50610476610e02565b6040516104369190613d54565b34801561048f57600080fd5b506104c361049e366004613d67565b601160205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610436565b3480156104ee57600080fd5b506105026104fd366004613d67565b610e94565b6040516001600160a01b039091168152602001610436565b34801561052657600080fd5b5061045f610535366004613d80565b610f1c565b34801561054657600080fd5b5061045f610555366004613d67565b611032565b34801561056657600080fd5b5061045f610575366004613df7565b61109c565b61045f610588366004613e38565b611191565b34801561059957600080fd5b506003545b604051908152602001610436565b3480156105b857600080fd5b5061045f6105c7366004613e5b565b611386565b3480156105d857600080fd5b5061045f6105e7366004613e78565b6114dc565b3480156105f857600080fd5b5061059e610607366004613d80565b61150d565b34801561061857600080fd5b5061045f6115f9565b34801561062d57600080fd5b5061045f61063c366004613e78565b611642565b34801561064d57600080fd5b5061045f61065c366004613e5b565b61165d565b34801561066d57600080fd5b5061042a61067c366004613ea8565b611807565b34801561068d57600080fd5b50600e546106a29062010000900461ffff1681565b60405161ffff9091168152602001610436565b3480156106c157600080fd5b5061045f6106d0366004613f3d565b611889565b3480156106e157600080fd5b5061045f6106f0366004613f72565b6118bf565b34801561070157600080fd5b5061045f6107103660046140d9565b611908565b34801561072157600080fd5b5061045f610730366004613f3d565b611952565b34801561074157600080fd5b50610502610750366004613d67565b611995565b34801561076157600080fd5b50600e546106a29061ffff1681565b34801561077c57600080fd5b5061045f61078b366004613e5b565b611a21565b34801561079c57600080fd5b50600e5461042a90600160601b900460ff1681565b3480156107bd57600080fd5b5061045f611a6d565b3480156107d257600080fd5b506104766107e1366004613d67565b611ab9565b3480156107f257600080fd5b50600e546106a290600160401b900461ffff1681565b61045f611b53565b34801561081c57600080fd5b5061059e61082b366004613e5b565b611cc9565b34801561083c57600080fd5b5061045f611d9b565b34801561085157600080fd5b5061045f610860366004614161565b611dd1565b34801561087157600080fd5b5061059e610880366004613e5b565b60166020526000908152604090205481565b34801561089e57600080fd5b5061045f6108ad3660046141d7565b611e7e565b61045f611ec6565b3480156108c657600080fd5b506000546001600160a01b0316610502565b3480156108e457600080fd5b5061045f6108f3366004613d67565b6120be565b34801561090457600080fd5b5061045f610913366004613f3d565b6120fe565b34801561092457600080fd5b50610476612134565b34801561093957600080fd5b5061045f610948366004613df7565b612143565b34801561095957600080fd5b5061059e600f5481565b34801561096f57600080fd5b5061045f61097e3660046141f4565b612238565b34801561098f57600080fd5b5061045f61099e36600461423f565b6122fd565b3480156109af57600080fd5b5061045f6109be36600461425a565b612347565b3480156109cf57600080fd5b50600c5461042a90600160a01b900460ff1681565b3480156109f057600080fd5b5061045f6109ff366004613d80565b6124d0565b348015610a1057600080fd5b5061045f610a1f36600461423f565b6125f1565b348015610a3057600080fd5b5061045f610a3f36600461428f565b612682565b348015610a5057600080fd5b5061045f6126b4565b348015610a6557600080fd5b5061042a610a74366004613d67565b60009081526006602052604090205460ff1690565b348015610a9557600080fd5b5061059e60175481565b348015610aab57600080fd5b5061045f610aba366004613d80565b61288c565b348015610acb57600080fd5b5061045f610ada36600461423f565b61291f565b348015610aeb57600080fd5b5061045f610afa366004613d80565b6129c0565b348015610b0b57600080fd5b50600c54610502906001600160a01b031681565b348015610b2b57600080fd5b50610476610b3a366004613d67565b612a89565b348015610b4b57600080fd5b506105027f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b348015610b7f57600080fd5b5061045f610b8e3660046141d7565b612c32565b348015610b9f57600080fd5b5061045f610bae3660046142ee565b612c7a565b348015610bbf57600080fd5b5061045f612dec565b348015610bd457600080fd5b50610476612fdd565b348015610be957600080fd5b5061042a610bf836600461437f565b612fec565b348015610c0957600080fd5b5061042a610c18366004613e5b565b60156020526000908152604090205460ff1681565b348015610c3957600080fd5b5061045f610c48366004613e5b565b6130ee565b348015610c5957600080fd5b5061045f610c683660046143ad565b613189565b348015610c7957600080fd5b5061045f610c88366004613e5b565b6131cb565b348015610c9957600080fd5b5061042a610ca8366004613e5b565b61321e565b348015610cb957600080fd5b5061045f610cc8366004613e5b565b61326c565b60006001600160e01b031982166380ac58cd60e01b1480610cfe57506001600160e01b03198216635b5e139f60e01b145b80610d1957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610d525760405162461bcd60e51b8152600401610d4990614404565b60405180910390fd5b601254831115610d915760405162461bcd60e51b815260206004820152600a6024820152691253959053125117d25160b21b6044820152606401610d49565b6012546000908152601160205260409020600101546013548291610db49161444f565b610dbe9190614466565b6013556012805460009081526011602052604080822080546001600160a01b0319166001600160a01b03969096169590951790945590548152919091206001015550565b606060018054610e119061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3d9061447e565b8015610e8a5780601f10610e5f57610100808354040283529160200191610e8a565b820191906000526020600020905b815481529060010190602001808311610e6d57829003601f168201915b5050505050905090565b6000610e9f8261334c565b610f005760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d49565b506000908152600460205260409020546001600160a01b031690565b6000610f2782611995565b9050806001600160a01b0316836001600160a01b03161415610f955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d49565b336001600160a01b0382161480610fb15750610fb18133612fec565b6110235760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d49565b61102d8383613396565b505050565b6000546001600160a01b0316331461105c5760405162461bcd60e51b8152600401610d4990614404565b600081116110975760405162461bcd60e51b81526020600482015260086024820152670414d4f554e543d360c41b6044820152606401610d49565b601755565b6000546001600160a01b031633146110c65760405162461bcd60e51b8152600401610d4990614404565b60005b81811015611138576000601560008585858181106110e9576110e96144b9565b90506020020160208101906110fe9190613e5b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611130816144cf565b9150506110c9565b5081816040516111499291906144ea565b60405180910390206111583390565b6001600160a01b03167fd6ac91164e2cf7bb91d1929d1af0a25052d12a7033448af7c3866223f9e4d53060405160405180910390a35050565b600e54600160601b900460ff166111ba5760405162461bcd60e51b8152600401610d499061452c565b8060ff16600f546111cb9190614551565b34146111e95760405162461bcd60e51b8152600401610d4990614570565b6003546111fa9060ff831690614466565b600e54600160301b900461ffff16116112255760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff16158061125f5750600e5461ffff16600160ff831661124933611cc9565b6112539190614466565b61125d919061444f565b105b61127b5760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615611328573360009081526015602052604090205460ff166112b55760405162461bcd60e51b8152600401610d49906145f4565b601754336000908152601660205260409020546001906112d99060ff851690614466565b6112e3919061444f565b106113005760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805460ff84169290611322908490614466565b90915550505b60005b8160ff168110156113505761133e613404565b80611348816144cf565b91505061132b565b50604051349060ff83169033907f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed90600090a450565b3360009081526009602052604090205460ff1615156001146113ba5760405162461bcd60e51b8152600401610d4990614645565b600e546004600160401b90910461ffff16116114045760405162461bcd60e51b81526020600482015260096024820152684d41584d494e543c3560b81b6044820152606401610d49565b600354600e54600160501b900461ffff16116114325760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff16158061145a5750600e54640100000000900461ffff1661145882611cc9565b105b6114765760405162461bcd60e51b8152600401610d49906145c7565b61147f81613483565b61148881613483565b61149181613483565b61149a81613483565b6114a381613483565b6040516001600160a01b0382169033907fca78d15c325b0a0f130dd6373892d38330340ba1eb646ae8af9ef29a059baa3390600090a350565b6114e63382613515565b6115025760405162461bcd60e51b8152600401610d4990614668565b61102d8383836135d7565b60008060005b60035481101561158457846001600160a01b03166003828154811061153a5761153a6144b9565b6000918252602090912001546001600160a01b031614156115745783821415611566579150610d199050565b81611570816144cf565b9250505b61157d816144cf565b9050611513565b50600081116115c25760405162461bcd60e51b815260206004820152600a6024820152691393d39157d193d5539160b21b6044820152606401610d49565b60405162461bcd60e51b815260206004820152600c60248201526b09eaaa8be9e8cbe929c888ab60a31b6044820152606401610d49565b6000546001600160a01b031633146116235760405162461bcd60e51b8152600401610d4990614404565b6014805460ff19169055600e805460ff60601b1916600160601b179055565b61102d83838360405180602001604052806000815250612682565b600260085414156116805760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b031633146116af5760405162461bcd60e51b8152600401610d4990614404565b6000546001600160a01b03163314806116db5750600c546001600160a01b0316336001600160a01b0316145b806116f557503360009081526009602052604090205460ff165b61172f5760405162461bcd60e51b815260206004820152600b60248201526a1393d517d0531313d5d15160aa1b6044820152606401610d49565b600c546001600160a01b031661177a5760405162461bcd60e51b815260206004820152601060248201526f1514915054d5549657d393d517d4d15560821b6044820152606401610d49565b600c546040516370a0823160e01b81523060048201526117ff916001600160a01b0390811691908416906370a0823190602401602060405180830381865afa1580156117ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ee91906146f0565b6001600160a01b038416919061372d565b506001600855565b6000805b8281101561187c57846001600160a01b03166003858584818110611831576118316144b9565b9050602002013581548110611848576118486144b9565b6000918252602090912001546001600160a01b03161461186c576000915050611882565b611875816144cf565b905061180b565b50600190505b9392505050565b6000546001600160a01b031633146118b35760405162461bcd60e51b8152600401610d4990614404565b61102d600b8383613be3565b6000546001600160a01b031633146118e95760405162461bcd60e51b8152600401610d4990614404565b6000838152600d60205260409020611902908383613be3565b50505050565b60005b825181101561194b57611939858585848151811061192b5761192b6144b9565b602002602001015185612682565b80611943816144cf565b91505061190b565b5050505050565b6000546001600160a01b0316331461197c5760405162461bcd60e51b8152600401610d4990614404565b600c805460ff60a01b1916905561102d600b8383613be3565b600080600383815481106119ab576119ab6144b9565b6000918252602090912001546001600160a01b0316905080610d195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d49565b6000546001600160a01b03163314611a4b5760405162461bcd60e51b8152600401610d4990614404565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a975760405162461bcd60e51b8152600401610d4990614404565b6014805460ff19166001179055600e805460ff60601b1916600160601b179055565b600d6020526000908152604090208054611ad29061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054611afe9061447e565b8015611b4b5780601f10611b2057610100808354040283529160200191611b4b565b820191906000526020600020905b815481529060010190602001808311611b2e57829003601f168201915b505050505081565b600e54600160601b900460ff16611b7c5760405162461bcd60e51b8152600401610d499061452c565b600f543414611b9d5760405162461bcd60e51b8152600401610d4990614570565b600354600e54600160401b900461ffff1611611bcb5760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff161580611beb5750600e5461ffff16611be933611cc9565b105b611c075760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615611c92573360009081526015602052604090205460ff16611c415760405162461bcd60e51b8152600401610d49906145f4565b6017543360009081526016602052604090205410611c715760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805491611c8c836144cf565b91905055505b611c9a613404565b604051349033907f5998784f6a7026ac2be17a6b1a25a7b7f910e4c84af84272776f36bfc2c8074490600090a3565b60006001600160a01b038216611d345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d49565b600354600090815b81811015611d925760038181548110611d5757611d576144b9565b6000918252602090912001546001600160a01b0386811691161415611d8257611d7f836144cf565b92505b611d8b816144cf565b9050611d3c565b50909392505050565b6000546001600160a01b03163314611dc55760405162461bcd60e51b8152600401610d4990614404565b611dcf600061377f565b565b6000546001600160a01b03163314611dfb5760405162461bcd60e51b8152600401610d4990614404565b60005b828110156119025760005b828281518110611e1b57611e1b6144b9565b6020026020010151811015611e6b57611e59858584818110611e3f57611e3f6144b9565b9050602002016020810190611e549190613e5b565b613483565b80611e63816144cf565b915050611e09565b5080611e76816144cf565b915050611dfe565b6000546001600160a01b03163314611ea85760405162461bcd60e51b8152600401610d4990614404565b600e8054911515600160601b0260ff60601b19909216919091179055565b600e54600160601b900460ff16611eef5760405162461bcd60e51b8152600401610d499061452c565b600e546004600160401b90910461ffff1611611f395760405162461bcd60e51b81526020600482015260096024820152684d41584d494e543c3560b81b6044820152606401610d49565b6010543414611f5a5760405162461bcd60e51b8152600401610d4990614570565b600354600e54600160501b900461ffff1611611f885760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff161580611fb05750600e54640100000000900461ffff16611fae33611cc9565b105b611fcc5760405162461bcd60e51b8152600401610d49906145c7565b60145460ff1615612067573360009081526015602052604090205460ff166120065760405162461bcd60e51b8152600401610d49906145f4565b60175433600090815260166020526040902054612024906004614466565b106120415760405162461bcd60e51b8152600401610d499061461e565b336000908152601660205260408120805460059290612061908490614466565b90915550505b61206f613404565b612077613404565b61207f613404565b612087613404565b61208f613404565b604051349033907fd395436366d1f372a97c46c0d6fe5bad06ccc350c9de5bee45c74e5054b164f590600090a3565b6000546001600160a01b031633146120e85760405162461bcd60e51b8152600401610d4990614404565b600f8190556120f8816005614551565b60105550565b6000546001600160a01b031633146121285760405162461bcd60e51b8152600401610d4990614404565b61102d600a8383613be3565b606060028054610e119061447e565b6000546001600160a01b0316331461216d5760405162461bcd60e51b8152600401610d4990614404565b60005b818110156121df57600160156000858585818110612190576121906144b9565b90506020020160208101906121a59190613e5b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806121d7816144cf565b915050612170565b5081816040516121f09291906144ea565b60405180910390206121ff3390565b6001600160a01b03167fcd843f7737d79a305493e6db876a1be0a17a416451f2a700901efbe0b8be5fab60405160405180910390a35050565b6001600160a01b0382163314156122915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d49565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146123275760405162461bcd60e51b8152600401610d4990614404565b600e805461ffff909216620100000263ffff000019909216919091179055565b3360009081526009602052604090205460ff16151560011461237b5760405162461bcd60e51b8152600401610d4990614645565b60035461238d9061ffff831690614466565b600e54600160301b900461ffff16116123b85760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff6201000090910481169082161061240d5760405162461bcd60e51b8152602060048201526013602482015272115610d1515117d3505617d4115497d3525395606a1b6044820152606401610d49565b600e5461ffff1615806124495750600e5461ffff90811690600190831661243385611cc9565b61243d9190614466565b612447919061444f565b105b6124655760405162461bcd60e51b8152600401610d49906145c7565b60005b8161ffff1681101561248f5761247d83613483565b80612487816144cf565b915050612468565b5060405161ffff8216906001600160a01b0384169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f890600090a45050565b6007546001600160a01b0316336001600160a01b03161461252b5760405162461bcd60e51b815260206004820152601560248201527413d3931657d4d51052d25391d7d0d3d395149050d5605a1b6044820152606401610d49565b816001600160a01b031661253e82611995565b6001600160a01b0316146125805760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610d49565b60008181526006602052604090205460ff16156125d05760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d4d51052d15160921b6044820152606401610d49565b6000908152600660205260409020805460ff19811660ff9091161517905550565b6000546001600160a01b0316331461261b5760405162461bcd60e51b8152600401610d4990614404565b60008161ffff161161262e576000612630565b805b600e805461ffff191661ffff92831617905560019082161161265857600e5461ffff16612663565b612663600482614709565b600e60046101000a81548161ffff021916908361ffff16021790555050565b61268c3383613515565b6126a85760405162461bcd60e51b8152600401610d4990614668565b611902848484846137cf565b600260085414156126d75760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b031633146127065760405162461bcd60e51b8152600401610d4990614404565b60006012541161274d5760405162461bcd60e51b8152602060048201526012602482015271149150d2541251539514d7d393d517d4d15560721b6044820152606401610d49565b4760015b60125481116128565760135460008281526011602052604081206001015490919061277c9085614551565b6127869190614742565b90504781116127955780612797565b475b60008381526011602052604080822054905192935090916001600160a01b039091169083908381818185875af1925050503d80600081146127f4576040519150601f19603f3d011682016040523d82523d6000602084013e6127f9565b606091505b50509050806128415760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610d49565b5050808061284e906144cf565b915050612751565b50604051819033907f0d20f677b24c0f42423a7e690ab1d066e4ae75145c497a68b1f34bd34944d12290600090a3506001600855565b6000546001600160a01b031633146128b65760405162461bcd60e51b8152600401610d4990614404565b601280549060006128c6836144cf565b90915550506012805460009081526011602052604080822080546001600160a01b0319166001600160a01b0387161790559154815290812060010182905560138054839290612916908490614466565b90915550505050565b6000546001600160a01b031633146129495760405162461bcd60e51b8152600401610d4990614404565b612954816001614756565b600e805469ffffffff0000000000001916600160301b61ffff9384160261ffff60401b191617600160401b9284169283021790556004106129965760006129a1565b6129a1600482614709565b600e600a6101000a81548161ffff021916908361ffff16021790555050565b6007546001600160a01b0316336001600160a01b031614612a1b5760405162461bcd60e51b815260206004820152601560248201527413d3931657d4d51052d25391d7d0d3d395149050d5605a1b6044820152606401610d49565b816001600160a01b0316612a2e82611995565b6001600160a01b031614612a705760405162461bcd60e51b81526020600482015260096024820152682727aa2fa7aba722a960b91b6044820152606401610d49565b6000908152600660205260409020805460ff1916905550565b6060612a948261334c565b612af85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d49565b6000828152600d602052604081208054612b119061447e565b90501115612bb7576000828152600d602052604090208054612b329061447e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b5e9061447e565b8015612bab5780601f10612b8057610100808354040283529160200191612bab565b820191906000526020600020905b815481529060010190602001808311612b8e57829003601f168201915b50505050509050919050565b600c54600160a01b900460ff1615612bd657600b8054612b329061447e565b6000600b8054612be59061447e565b905011612c015760405180602001604052806000815250610d19565b600b612c0c83613802565b604051602001612c1d929190614798565b60405160208183030381529060405292915050565b6000546001600160a01b03163314612c5c5760405162461bcd60e51b8152600401610d4990614404565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b03163314612ca45760405162461bcd60e51b8152600401610d4990614404565b612caf876001614756565b600e805469ffffffff0000000000001916600160301b61ffff9384160261ffff60401b191617600160401b928a16928302179055600410612cf1576000612cfc565b612cfc600488614709565b600e805461ffff92909216600160501b0261ffff60501b19909216919091179055612d28866001614756565b600e805461ffff92909216620100000263ffff000019909216919091179055600f859055612d57856005614551565b60105561ffff8416612d6a576000612d6c565b835b600e805461ffff191661ffff928316179055600190851611612d8f576000612d9a565b612d9a600485614709565b600e80546cff000000000000ffff00000000191664010000000061ffff939093169290920260ff60601b191691909117600160601b85151502179055612de2600b8383613be3565b5050505050505050565b60026008541415612e0f5760405162461bcd60e51b8152600401610d49906146b9565b60026008556000546001600160a01b03163314612e3e5760405162461bcd60e51b8152600401610d4990614404565b6000546001600160a01b0316331480612e6a5750600c546001600160a01b0316336001600160a01b0316145b80612e8457503360009081526009602052604090205460ff165b612ebe5760405162461bcd60e51b815260206004820152600b60248201526a1393d517d0531313d5d15160aa1b6044820152606401610d49565b600c546001600160a01b0316612f095760405162461bcd60e51b815260206004820152601060248201526f1514915054d5549657d393d517d4d15560821b6044820152606401610d49565b600c5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114612f5a576040519150601f19603f3d011682016040523d82523d6000602084013e612f5f565b606091505b5050905080612fa75760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610d49565b604051829033907f566e45b1c8057e725bf62796a7f1d37ae294393cab069725a09daddd1af98b7990600090a350506001600855565b6060600a8054610e119061447e565b60405163c455279160e01b81526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c455279190602401602060405180830381865afa15801561305c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613080919061483f565b6001600160a01b031614806130ad57506001600160a01b03831660009081526009602052604090205460ff165b156130bc576001915050610d19565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6000546001600160a01b031633146131185760405162461bcd60e51b8152600401610d4990614404565b6001600160a01b03811661317d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d49565b6131868161377f565b50565b60005b8151811015611902576131b984848484815181106131ac576131ac6144b9565b60200260200101516114dc565b806131c3816144cf565b91505061318c565b6000546001600160a01b031633146131f55760405162461bcd60e51b8152600401610d4990614404565b6001600160a01b03166000908152600960205260409020805460ff19811660ff90911615179055565b600080546001600160a01b031633146132495760405162461bcd60e51b8152600401610d4990614404565b506001600160a01b03811660009081526009602052604090205460ff165b919050565b3360009081526009602052604090205460ff1615156001146132a05760405162461bcd60e51b8152600401610d4990614645565b600354600e54600160401b900461ffff16116132ce5760405162461bcd60e51b8152600401610d4990614597565b600e5461ffff1615806132ee5750600e5461ffff166132ec82611cc9565b105b61330a5760405162461bcd60e51b8152600401610d49906145c7565b61331381613483565b6040516001600160a01b0382169033907fbbeb90adcc447131bee59467d130894eadeef5c0bca2927f33392c6811e7253c90600090a350565b60035460009082108015610d19575060006001600160a01b031660038381548110613379576133796144b9565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133cb82611995565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180546001600160a01b031916331790559054613454919061444f565b60405133906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4565b600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180546001600160a01b0319166001600160a01b03851617905590546134dc919061444f565b6040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b60006135208261334c565b6135815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d49565b600061358c83611995565b9050806001600160a01b0316846001600160a01b031614806135c75750836001600160a01b03166135bc84610e94565b6001600160a01b0316145b806130e657506130e68185612fec565b826001600160a01b03166135ea82611995565b6001600160a01b0316146136525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610d49565b6001600160a01b0382166136b45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d49565b6136bf600082613396565b81600382815481106136d3576136d36144b9565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261102d9084906138ff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6137da8484846135d7565b6137e6848484846139d1565b6119025760405162461bcd60e51b8152600401610d499061485c565b6060816138265750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613850578061383a816144cf565b91506138499050600a83614742565b915061382a565b6000816001600160401b0381111561386a5761386a613fb0565b6040519080825280601f01601f191660200182016040528015613894576020820181803683370190505b5090505b84156130e6576138a960018361444f565b91506138b6600a866148ae565b6138c1906030614466565b60f81b8183815181106138d6576138d66144b9565b60200101906001600160f81b031916908160001a9053506138f8600a86614742565b9450613898565b6000613954826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613acf9092919063ffffffff16565b80519091501561102d578080602001905181019061397291906148c2565b61102d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d49565b60006001600160a01b0384163b15613ac457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613a159033908990889088906004016148df565b6020604051808303816000875af1925050508015613a50575060408051601f3d908101601f19168201909252613a4d9181019061491c565b60015b613aaa573d808015613a7e576040519150601f19603f3d011682016040523d82523d6000602084013e613a83565b606091505b508051613aa25760405162461bcd60e51b8152600401610d499061485c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506130e6565b506001949350505050565b60606130e68484600085856001600160a01b0385163b613b315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d49565b600080866001600160a01b03168587604051613b4d9190614939565b60006040518083038185875af1925050503d8060008114613b8a576040519150601f19603f3d011682016040523d82523d6000602084013e613b8f565b606091505b5091509150613b9f828286613baa565b979650505050505050565b60608315613bb9575081611882565b825115613bc95782518084602001fd5b8160405162461bcd60e51b8152600401610d499190613d54565b828054613bef9061447e565b90600052602060002090601f016020900481019282613c115760008555613c57565b82601f10613c2a5782800160ff19823516178555613c57565b82800160010185558215613c57579182015b82811115613c57578235825591602001919060010190613c3c565b50613c63929150613c67565b5090565b5b80821115613c635760008155600101613c68565b6001600160e01b03198116811461318657600080fd5b600060208284031215613ca457600080fd5b813561188281613c7c565b6001600160a01b038116811461318657600080fd5b600080600060608486031215613cd957600080fd5b833592506020840135613ceb81613caf565b929592945050506040919091013590565b60005b83811015613d17578181015183820152602001613cff565b838111156119025750506000910152565b60008151808452613d40816020860160208601613cfc565b601f01601f19169290920160200192915050565b6020815260006118826020830184613d28565b600060208284031215613d7957600080fd5b5035919050565b60008060408385031215613d9357600080fd5b8235613d9e81613caf565b946020939093013593505050565b60008083601f840112613dbe57600080fd5b5081356001600160401b03811115613dd557600080fd5b6020830191508360208260051b8501011115613df057600080fd5b9250929050565b60008060208385031215613e0a57600080fd5b82356001600160401b03811115613e2057600080fd5b613e2c85828601613dac565b90969095509350505050565b600060208284031215613e4a57600080fd5b813560ff8116811461188257600080fd5b600060208284031215613e6d57600080fd5b813561188281613caf565b600080600060608486031215613e8d57600080fd5b8335613e9881613caf565b92506020840135613ceb81613caf565b600080600060408486031215613ebd57600080fd5b8335613ec881613caf565b925060208401356001600160401b03811115613ee357600080fd5b613eef86828701613dac565b9497909650939450505050565b60008083601f840112613f0e57600080fd5b5081356001600160401b03811115613f2557600080fd5b602083019150836020828501011115613df057600080fd5b60008060208385031215613f5057600080fd5b82356001600160401b03811115613f6657600080fd5b613e2c85828601613efc565b600080600060408486031215613f8757600080fd5b8335925060208401356001600160401b03811115613fa457600080fd5b613eef86828701613efc565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613fee57613fee613fb0565b604052919050565b600082601f83011261400757600080fd5b813560206001600160401b0382111561402257614022613fb0565b8160051b614031828201613fc6565b928352848101820192828101908785111561404b57600080fd5b83870192505b84831015613b9f57823582529183019190830190614051565b600082601f83011261407b57600080fd5b81356001600160401b0381111561409457614094613fb0565b6140a7601f8201601f1916602001613fc6565b8181528460208386010111156140bc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156140ef57600080fd5b84356140fa81613caf565b9350602085013561410a81613caf565b925060408501356001600160401b038082111561412657600080fd5b61413288838901613ff6565b9350606087013591508082111561414857600080fd5b506141558782880161406a565b91505092959194509250565b60008060006040848603121561417657600080fd5b83356001600160401b038082111561418d57600080fd5b61419987838801613dac565b909550935060208601359150808211156141b257600080fd5b506141bf86828701613ff6565b9150509250925092565b801515811461318657600080fd5b6000602082840312156141e957600080fd5b8135611882816141c9565b6000806040838503121561420757600080fd5b823561421281613caf565b91506020830135614222816141c9565b809150509250929050565b803561ffff8116811461326757600080fd5b60006020828403121561425157600080fd5b6118828261422d565b6000806040838503121561426d57600080fd5b823561427881613caf565b91506142866020840161422d565b90509250929050565b600080600080608085870312156142a557600080fd5b84356142b081613caf565b935060208501356142c081613caf565b92506040850135915060608501356001600160401b038111156142e257600080fd5b6141558782880161406a565b600080600080600080600060c0888a03121561430957600080fd5b6143128861422d565b96506143206020890161422d565b9550604088013594506143356060890161422d565b93506080880135614345816141c9565b925060a08801356001600160401b0381111561436057600080fd5b61436c8a828b01613efc565b989b979a50959850939692959293505050565b6000806040838503121561439257600080fd5b823561439d81613caf565b9150602083013561422281613caf565b6000806000606084860312156143c257600080fd5b83356143cd81613caf565b925060208401356143dd81613caf565b915060408401356001600160401b038111156143f857600080fd5b6141bf86828701613ff6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008282101561446157614461614439565b500390565b6000821982111561447957614479614439565b500190565b600181811c9082168061449257607f821691505b602082108114156144b357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156144e3576144e3614439565b5060010190565b60008184825b8581101561452157813561450381613caf565b6001600160a01b0316835260209283019291909101906001016144f0565b509095945050505050565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b600081600019048311821515161561456b5761456b614439565b500290565b6020808252600d908201526c0929c869ea4a48a86a8be8aa89609b1b604082015260600190565b6020808252601690820152754558434545445f4d41585f53414c455f535550504c5960501b604082015260600190565b60208082526013908201527222ac21a2a2a22fa6a0ac2fa822a92faaa9a2a960691b604082015260600190565b60208082526010908201526f1393d517d3d397d5d2125511531254d560821b604082015260600190565b6020808252600d908201526c13505617d5d317d35253951151609a1b604082015260600190565b6020808252600990820152686f6e6c7950726f787960b81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561470257600080fd5b5051919050565b600061ffff8381169083168181101561472457614724614439565b039392505050565b634e487b7160e01b600052601260045260246000fd5b6000826147515761475161472c565b500490565b600061ffff80831681851680830382111561477357614773614439565b01949350505050565b6000815161478e818560208601613cfc565b9290920192915050565b600080845481600182811c9150808316806147b457607f831692505b60208084108214156147d457634e487b7160e01b86526022600452602486fd5b8180156147e857600181146147f957614826565b60ff19861689528489019650614826565b60008b81526020902060005b8681101561481e5781548b820152908501908301614805565b505084890196505b505050505050614836818561477c565b95945050505050565b60006020828403121561485157600080fd5b815161188281613caf565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826148bd576148bd61472c565b500690565b6000602082840312156148d457600080fd5b8151611882816141c9565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061491290830184613d28565b9695505050505050565b60006020828403121561492e57600080fd5b815161188281613c7c565b6000825161494b818460208701613cfc565b919091019291505056fea2646970667358221220b668db94a9dddfb3c5bfb11fb40a3662660c2d598a6bc7858b0f3d5a6719c25b64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c228e829a54a7a5a093eafafd87ed5c2972d5e24000000000000000000000000000000000000000000000000000000000000000443796f70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004754e465400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Cyop
Arg [1] : symbol_ (string): uNFT
Arg [2] : treasury_ (address): 0xc228E829a54a7A5a093EAFAFd87ED5c2972D5E24
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000c228e829a54a7a5a093eafafd87ed5c2972d5e24
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 43796f7000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 754e465400000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.