Overview
TokenID
5095
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaMoose
Compiler Version
v0.8.9+commit.e5eed63a
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.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface IBatt { function balanceOf(address owner) external view returns (uint); function burn(address account, uint amount) external; } interface IForest { function randomHunterOwner(uint256 seed) external returns (address); function addTokensToStake(address account, uint16[] calldata tokenIds) external; } interface IRandomNumGenerator { function getRandomNumber(uint _seed, uint _limit) external view returns (uint16); } interface IFreeFromUpTo { function freeUpTo(uint256 value) external returns (uint256); } library Math { function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } } contract MetaMoose is ERC721, Ownable { string private baseURI; uint public maxMint = 10; uint public mintPrice = 0.088 ether; mapping(uint16 => uint) public phasePrice; uint public tokensMinted; uint16 public phase; uint16 public hunterStolen; uint16 public harvesterStolen; uint16 public hunterMinted; uint16[] private _availableTokens; mapping(uint16 => bool) private _isHunter; bool public publicSaleIsEnabled; bool public privateSaleIsEnabled; IForest public forest; IBatt public batt; IRandomNumGenerator randomGen; address private constant fundWallet = 0xA3f447f39201957c3F904E20a8F116b9EE28F993; address private constant admin = 0x719deC089084C98d505695A2cdC82238024D0bAD; string public constant CONTRACT_NAME = "Metamoose Contract"; bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); bytes32 public constant MINT_TYPEHASH = keccak256("Mint(address user,uint256 num)"); bool public burnEnabled; IFreeFromUpTo public constant chi = IFreeFromUpTo(0x0000000000004946c0e9F43F4Dee607b0eF1fA1c); event TokenStolen(address owner, uint16 tokenId, address thief); event Lucky(address owner, uint16 tokenId); event PrivateMint(address user, uint256 num); constructor() ERC721("Meta Moose", "METAMOOSE") { _safeMint(msg.sender, 0); tokensMinted += 1; // Set default price for each phase phasePrice[1] = 100000 ether; phasePrice[2] = 220000 ether; phasePrice[3] = 480000 ether; } modifier discountCHI(uint256 chiAmount) { if (chiAmount > 0) { uint256 gasStart = gasleft(); _; uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length; uint256 minAmount = Math.min((gasSpent + 14154) / 41947, chiAmount); chi.freeUpTo(minAmount); } else { _; } } function _baseURI() internal view override returns (string memory) { return baseURI; } function isHunter(uint16 id) public view returns (bool) { return _isHunter[id]; } function availableTokens() public view onlyOwner returns (uint256, uint16[] memory) { return (_availableTokens.length, _availableTokens); } /** * Check if certain token id is exists. */ function exists(uint _tokenId) public view returns (bool) { return _exists(_tokenId); } function totalSupply() external view returns (uint) { return tokensMinted; } function transferFrom(address from, address to, uint tokenId) public virtual override { if (_msgSender() != address(forest)) require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function setMintPrice(uint _price) external onlyOwner { mintPrice = _price; } function setPhasePrice(uint price1, uint price2, uint price3) external onlyOwner { phasePrice[1] = price1; phasePrice[2] = price2; phasePrice[3] = price3; } function setMaxMint(uint _maxValue) external onlyOwner { maxMint = _maxValue; } function setPublicSaleState() external onlyOwner { publicSaleIsEnabled = !publicSaleIsEnabled; } function setPrivateSaleState() external onlyOwner { privateSaleIsEnabled = !privateSaleIsEnabled; } function setHunters(uint16[] calldata ids, bool value) external onlyOwner { for (uint i = 0; i < ids.length; i++) { _isHunter[ids[i]] = value; } } function setContracts(IForest _forest, IBatt _batt, IRandomNumGenerator _randomGen) external onlyOwner { forest = _forest; batt = _batt; randomGen = _randomGen; } function setBurnEnabled(bool _state) external onlyOwner { burnEnabled = _state; } function addAvailableTokens(uint16 _from, uint16 _to, uint256 chiAmount) external onlyOwner discountCHI(chiAmount) { require(!privateSaleIsEnabled && !publicSaleIsEnabled, "Sale is live"); _addAvailableTokens(_from, _to); } function removeFromAvailableTokens(uint256 index) external onlyOwner { _availableTokens[index] = _availableTokens[_availableTokens.length - 1]; _availableTokens.pop(); } function switchToSalePhase(uint16 _phase) external onlyOwner { phase = _phase; } function reserveMoose(address to, uint amount) external onlyOwner { require(_availableTokens.length >= amount, "All tokens for this Phase are already sold"); for (uint i = 0; i < amount; i++) { uint16 tokenId = _getTokenToBeMinted(); _safeMint(to, tokenId); if (isHunter(tokenId)) { hunterMinted += 1; } } tokensMinted += amount; } function reserveMooseById(address to, uint16[] calldata ids) external onlyOwner { require(_availableTokens.length == 0, "Available tokens exists"); for (uint i = 0; i < ids.length; i++) { _safeMint(to, ids[i]); if (isHunter(ids[i])) { hunterMinted += 1; } } tokensMinted += ids.length; } /** * Mints Moose in public sale */ function publicMint(uint amount, bool stake) external payable discountCHI(amount * 5) { require(tx.origin == msg.sender, "Only EOA"); require(publicSaleIsEnabled, "Public sale must be enabled"); require(0 < amount && amount <= maxMint, "Invalid amount to mint"); require(_availableTokens.length >= amount, "All tokens for this Phase are already sold"); uint totalPennyCost = 0; if (phase == 0) { // Paid mint require(mintPrice * amount == msg.value, "Invalid payment amount"); } else { // Mint via Penny token burn require(msg.value == 0, "Now minting is done via Penny"); totalPennyCost = phasePrice[phase] * amount; if (totalPennyCost > 0) { batt.burn(msg.sender, totalPennyCost); } } uint _tokensMinted = tokensMinted; uint16[] memory tokenIds = stake ? new uint16[](amount) : new uint16[](0); bool isLucky; uint16[] memory luckyTokenIds = stake && phase != 0 ? new uint16[](amount) : new uint16[](0); for (uint i = 0; i < amount; i++) { address recipient = _selectRecipient(i); uint16 tokenId = _getTokenToBeMinted(); if (isHunter(tokenId)) { hunterMinted += 1; } if (recipient != msg.sender) { isHunter(tokenId) ? hunterStolen += 1 : harvesterStolen += 1; emit TokenStolen(msg.sender, tokenId, recipient); } if (!stake || recipient != msg.sender) { _safeMint(recipient, tokenId); } else { _safeMint(address(forest), tokenId); tokenIds[i] = tokenId; } _tokensMinted++; // 10% chance to be a lucky man if (phase != 0 && _availableTokens.length > (amount - i - 1) && randomGen.getRandomNumber(_tokensMinted, 100) < 10) { if (!isLucky) { isLucky = true; } uint16 luckyTokenId = _getTokenToBeMinted(); if (isHunter(luckyTokenId)) { hunterMinted += 1; } if (!stake) { _safeMint(msg.sender, luckyTokenId); } else { _safeMint(address(forest), luckyTokenId); luckyTokenIds[i] = luckyTokenId; } _tokensMinted++; emit Lucky(msg.sender, luckyTokenId); } } tokensMinted = _tokensMinted; if (stake) { forest.addTokensToStake(msg.sender, tokenIds); } if (stake && isLucky) { forest.addTokensToStake(msg.sender, luckyTokenIds); } } /** * Mints Moose in private sale */ function privateMint(address user, uint amount, uint8 v, bytes32 r, bytes32 s, bool stake) external payable discountCHI(amount * 5) { require(tx.origin == msg.sender, "Only EOA"); require(privateSaleIsEnabled, "Private sale must be enabled"); require(0 < amount && amount <= maxMint, "Invalid amount to mint"); require(_availableTokens.length >= amount, "All tokens for this Phase are already sold"); require(mintPrice * amount == msg.value, "Invalid payment amount"); bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(CONTRACT_NAME)), getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(MINT_TYPEHASH, user, amount)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory == admin, "Invalid signatory"); uint _tokensMinted = tokensMinted; uint16[] memory tokenIds = stake ? new uint16[](amount) : new uint16[](0); for (uint i = 0; i < amount; i++) { uint16 tokenId = _getTokenToBeMinted(); if (isHunter(tokenId)) { hunterMinted += 1; } if (!stake) { _safeMint(msg.sender, tokenId); } else { _safeMint(address(forest), tokenId); tokenIds[i] = tokenId; } _tokensMinted++; } tokensMinted = _tokensMinted; if (stake) { forest.addTokensToStake(msg.sender, tokenIds); } emit PrivateMint(msg.sender, amount); } function burn(uint16[] calldata tokenIds, bool mint) public virtual { require(burnEnabled, "Burn is not allowed"); for (uint i = 0; i < tokenIds.length; i++) { require(_msgSender() == owner() || _isApprovedOrOwner(_msgSender(), tokenIds[i]), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenIds[i]); tokensMinted = tokensMinted - 1; if (isHunter(tokenIds[i])) { hunterMinted = hunterMinted - 1; } } if (mint && _msgSender() != owner() && tokenIds.length > 1) { uint16 tokenId = _getTokenToBeMinted(); _safeMint(_msgSender(), tokenId); if (isHunter(tokenId)) { hunterMinted += 1; } tokensMinted++; } } function withdraw() external onlyOwner { uint balance = address(this).balance; payable(fundWallet).transfer(balance); } function _addAvailableTokens(uint16 _from, uint16 _to) private { for (uint16 i = _from; i <= _to; i++) { if (!exists(i)) { _availableTokens.push(i); } } } function _getTokenToBeMinted() private returns (uint16) { uint random = randomGen.getRandomNumber(_availableTokens.length, _availableTokens.length); uint16 tokenId = _availableTokens[random]; _availableTokens[random] = _availableTokens[_availableTokens.length - 1]; _availableTokens.pop(); return tokenId; } function _selectRecipient(uint seed) private returns (address) { if (phase == 0) { return msg.sender; // During ETH sale there is no chance to steal NTF } // 10% chance to steal NTF if (randomGen.getRandomNumber(tokensMinted + seed, 100) >= 10) { return msg.sender; // 90% } address thief = forest.randomHunterOwner(tokensMinted + seed); if (thief == address(0x0)) { return msg.sender; } return thief; } function getChainId() internal view returns (uint) { uint chainId; assembly { chainId := chainid() } return chainId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"Lucky","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":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"num","type":"uint256"}],"name":"PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"address","name":"thief","type":"address"}],"name":"TokenStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CONTRACT_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_from","type":"uint16"},{"internalType":"uint16","name":"_to","type":"uint16"},{"internalType":"uint256","name":"chiAmount","type":"uint256"}],"name":"addAvailableTokens","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":[],"name":"availableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batt","outputs":[{"internalType":"contract IBatt","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bool","name":"mint","type":"bool"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chi","outputs":[{"internalType":"contract IFreeFromUpTo","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forest","outputs":[{"internalType":"contract IForest","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterStolen","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hunterMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hunterStolen","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"isHunter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"phasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateSaleIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeFromAvailableTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveMoose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16[]","name":"ids","type":"uint16[]"}],"name":"reserveMooseById","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IForest","name":"_forest","type":"address"},{"internalType":"contract IBatt","name":"_batt","type":"address"},{"internalType":"contract IRandomNumGenerator","name":"_randomGen","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setHunters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxValue","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price1","type":"uint256"},{"internalType":"uint256","name":"price2","type":"uint256"},{"internalType":"uint256","name":"price3","type":"uint256"}],"name":"setPhasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPrivateSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSaleState","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":[{"internalType":"uint16","name":"_phase","type":"uint16"}],"name":"switchToSalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"tokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a600855670138a388a43c00006009553480156200002257600080fd5b50604080518082018252600a8152694d657461204d6f6f736560b01b6020808301918252835180850190945260098452684d4554414d4f4f534560b81b908401528151919291620000769160009162000516565b5080516200008c90600190602084019062000516565b505050620000a9620000a36200016760201b60201c565b6200016b565b620000b6336000620001bd565b6001600b6000828254620000cb9190620005bc565b9091555050600a60205269152d02c7e14af68000007fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc755692e963951560b518000007fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba85560036000526965a4da25d3016c0000007fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa3975955620006ce565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001df828260405180602001604052806000815250620001e360201b60201c565b5050565b620001ef83836200025f565b620001fe6000848484620003a7565b6200025a5760405162461bcd60e51b81526020600482015260326024820152600080516020620055c683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620002b75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000251565b6000818152600260205260409020546001600160a01b0316156200031e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000251565b6001600160a01b038216600090815260036020526040812080546001929062000349908490620005bc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620003c8846001600160a01b03166200051060201b620037aa1760201c565b156200050457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000402903390899088908890600401620005e3565b602060405180830381600087803b1580156200041d57600080fd5b505af192505050801562000450575060408051601f3d908101601f191682019092526200044d918101906200065e565b60015b620004e9573d80801562000481576040519150601f19603f3d011682016040523d82523d6000602084013e62000486565b606091505b508051620004e15760405162461bcd60e51b81526020600482015260326024820152600080516020620055c683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000251565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000508565b5060015b949350505050565b3b151590565b828054620005249062000691565b90600052602060002090601f01602090048101928262000548576000855562000593565b82601f106200056357805160ff191683800117855562000593565b8280016001018555821562000593579182015b828111156200059357825182559160200191906001019062000576565b50620005a1929150620005a5565b5090565b5b80821115620005a15760008155600101620005a6565b60008219821115620005de57634e487b7160e01b600052601160045260246000fd5b500190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006325785810182015185820160a00152810162000614565b828111156200064557600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200067157600080fd5b81516001600160e01b0319811681146200068a57600080fd5b9392505050565b600181811c90821680620006a657607f821691505b60208210811415620006c857634e487b7160e01b600052602260045260246000fd5b50919050565b614ee880620006de6000396000f3fe6080604052600436106103505760003560e01c80637b2c835f116101c6578063b60f8a53116100f7578063d246fa7911610095578063f2fde38b1161006f578063f2fde38b14610a07578063f47aae0d14610a27578063f4a0a52814610a4c578063f76fc35e14610a6c57600080fd5b8063d246fa7914610967578063d659c8691461099b578063e985e9c5146109be57600080fd5b8063c182cab0116100d1578063c182cab0146108e3578063c87b56dd146108f8578063c9150a9e14610918578063c92aecc41461094557600080fd5b8063b60f8a5314610884578063b88d4fde146108a4578063bf441ab1146108c457600080fd5b8063a22cb46511610164578063aa0388f11161013e578063aa0388f114610809578063b1c9fe6e14610829578063b3066d4914610844578063b3fd9b871461086457600080fd5b8063a22cb465146107bc578063a243d3b6146107dc578063a59af6f6146107ef57600080fd5b8063825c5d84116101a0578063825c5d84146107355780638da5cb5b14610755578063901314c71461077357806395d89b41146107a757600080fd5b80637b2c835f146106dc5780637e64c8fb146106fc5780637fe191d61461072257600080fd5b80634c982130116102a05780636352211e1161023e5780636de9f32b116102185780636de9f32b1461067b57806370a0823114610691578063715018a6146106b15780637501f741146106c657600080fd5b80636352211e146106225780636817c76c1461064257806369bb4dc21461065857600080fd5b8063547520fe1161027a578063547520fe1461058357806355f804b3146105a35780635dc96d16146105c3578063614d08f8146105e457600080fd5b80634c982130146105235780634f558e79146105435780635018af301461056357600080fd5b806318db20cf1161030d57806323b872dd116102e757806323b872dd146104b95780633ccfd60b146104d957806342842e0e146104ee57806345487dc31461050e57600080fd5b806318db20cf146104455780631fba8b001461046557806320606b701461048557600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063095ea7b3146103e4578063103815ac1461040657806318160ddd14610426575b600080fd5b34801561036157600080fd5b506103756103703660046144ae565b610aa0565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610af2565b6040516103819190614523565b3480156103b857600080fd5b506103cc6103c7366004614536565b610b84565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b506104046103ff366004614564565b610c1e565b005b34801561041257600080fd5b506104046104213660046145a0565b610d34565b34801561043257600080fd5b50600b545b604051908152602001610381565b34801561045157600080fd5b506010546103cc906001600160a01b031681565b34801561047157600080fd5b50610404610480366004614564565b610f10565b34801561049157600080fd5b506104377f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b3480156104c557600080fd5b506104046104d43660046145e1565b611007565b3480156104e557600080fd5b50610404611059565b3480156104fa57600080fd5b506104046105093660046145e1565b6110ca565b34801561051a57600080fd5b506104046110e5565b34801561052f57600080fd5b5061040461053e366004614611565b611123565b34801561054f57600080fd5b5061037561055e366004614536565b611165565b34801561056f57600080fd5b5061040461057e36600461468e565b611184565b34801561058f57600080fd5b5061040461059e366004614536565b61121a565b3480156105af57600080fd5b506104046105be36600461476c565b611249565b3480156105cf57600080fd5b5060115461037590600160a01b900460ff1681565b3480156105f057600080fd5b5061039f6040518060400160405280601281526020017113595d185b5bdbdcd94810dbdb9d1c9858dd60721b81525081565b34801561062e57600080fd5b506103cc61063d366004614536565b611286565b34801561064e57600080fd5b5061043760095481565b34801561066457600080fd5b5061066d6112fd565b6040516103819291906147f3565b34801561068757600080fd5b50610437600b5481565b34801561069d57600080fd5b506104376106ac36600461480c565b6113c8565b3480156106bd57600080fd5b5061040461144f565b3480156106d257600080fd5b5061043760085481565b3480156106e857600080fd5b506104046106f7366004614829565b611485565b34801561070857600080fd5b50600f546103cc906201000090046001600160a01b031681565b610404610730366004614844565b6114cd565b34801561074157600080fd5b506104046107503660046148ad565b611fa7565b34801561076157600080fd5b506006546001600160a01b03166103cc565b34801561077f57600080fd5b50600c546107949062010000900461ffff1681565b60405161ffff9091168152602001610381565b3480156107b357600080fd5b5061039f612046565b3480156107c857600080fd5b506104046107d73660046148d9565b612055565b6104046107ea36600461490e565b612060565b3480156107fb57600080fd5b50600f546103759060ff1681565b34801561081557600080fd5b5061040461082436600461468e565b61306b565b34801561083557600080fd5b50600c546107949061ffff1681565b34801561085057600080fd5b5061040461085f366004614931565b6132e8565b34801561087057600080fd5b5061040461087f366004614536565b61335c565b34801561089057600080fd5b5061040461089f36600461497c565b61344c565b3480156108b057600080fd5b506104046108bf3660046149d0565b61358c565b3480156108d057600080fd5b50600f5461037590610100900460ff1681565b3480156108ef57600080fd5b506104046135be565b34801561090457600080fd5b5061039f610913366004614536565b613605565b34801561092457600080fd5b50610437610933366004614611565b600a6020526000908152604090205481565b34801561095157600080fd5b506103cc6d4946c0e9f43f4dee607b0ef1fa1c81565b34801561097357600080fd5b50610375610982366004614611565b61ffff166000908152600e602052604090205460ff1690565b3480156109a757600080fd5b50600c5461079490640100000000900461ffff1681565b3480156109ca57600080fd5b506103756109d9366004614a4f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b50610404610a2236600461480c565b6136e0565b348015610a3357600080fd5b50600c54610794906601000000000000900461ffff1681565b348015610a5857600080fd5b50610404610a67366004614536565b61377b565b348015610a7857600080fd5b506104377f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617181565b60006001600160e01b031982166380ac58cd60e01b1480610ad157506001600160e01b03198216635b5e139f60e01b145b80610aec57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b0190614a88565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2d90614a88565b8015610b7a5780601f10610b4f57610100808354040283529160200191610b7a565b820191906000526020600020905b815481529060010190602001808311610b5d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c2982611286565b9050806001600160a01b0316836001600160a01b03161415610c975760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610cb35750610cb381336109d9565b610d255760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610d2f83836137b0565b505050565b6006546001600160a01b03163314610d5e5760405162461bcd60e51b8152600401610bf990614ac3565b808015610eaa5760005a600f54909150610100900460ff16158015610d865750600f5460ff16155b610dc15760405162461bcd60e51b815260206004820152600c60248201526b53616c65206973206c69766560a01b6044820152606401610bf9565b610dcb858561381e565b6000610dd8366010614b0e565b5a610de584615208614b2d565b610def9190614b45565b610df99190614b2d565b90506000610e1f61a3db610e0f8461374a614b2d565b610e199190614b72565b856138ab565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b158015610e6957600080fd5b505af1158015610e7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea19190614b86565b50505050610f0a565b600f54610100900460ff16158015610ec55750600f5460ff16155b610f005760405162461bcd60e51b815260206004820152600c60248201526b53616c65206973206c69766560a01b6044820152606401610bf9565b610f0a848461381e565b50505050565b6006546001600160a01b03163314610f3a5760405162461bcd60e51b8152600401610bf990614ac3565b600d54811115610f5c5760405162461bcd60e51b8152600401610bf990614b9f565b60005b81811015610feb576000610f716138c1565b9050610f81848261ffff16613a60565b61ffff81166000908152600e602052604090205460ff1615610fd8576001600c60068282829054906101000a900461ffff16610fbd9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b5080610fe381614c0f565b915050610f5f565b5080600b6000828254610ffe9190614b2d565b90915550505050565b600f546201000090046001600160a01b0316336001600160a01b03161461104e576110323382613a7a565b61104e5760405162461bcd60e51b8152600401610bf990614c2a565b610d2f838383613b71565b6006546001600160a01b031633146110835760405162461bcd60e51b8152600401610bf990614ac3565b604051479073a3f447f39201957c3f904e20a8f116b9ee28f9939082156108fc029083906000818181858888f193505050501580156110c6573d6000803e3d6000fd5b5050565b610d2f8383836040518060200160405280600081525061358c565b6006546001600160a01b0316331461110f5760405162461bcd60e51b8152600401610bf990614ac3565b600f805460ff19811660ff90911615179055565b6006546001600160a01b0316331461114d5760405162461bcd60e51b8152600401610bf990614ac3565b600c805461ffff191661ffff92909216919091179055565b6000818152600260205260408120546001600160a01b03161515610aec565b6006546001600160a01b031633146111ae5760405162461bcd60e51b8152600401610bf990614ac3565b60005b82811015610f0a5781600e60008686858181106111d0576111d0614c7b565b90506020020160208101906111e59190614611565b61ffff1681526020810191909152604001600020805460ff19169115159190911790558061121281614c0f565b9150506111b1565b6006546001600160a01b031633146112445760405162461bcd60e51b8152600401610bf990614ac3565b600855565b6006546001600160a01b031633146112735760405162461bcd60e51b8152600401610bf990614ac3565b80516110c69060079060208401906143ff565b6000818152600260205260408120546001600160a01b031680610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b60006060336001600160a01b031661131d6006546001600160a01b031690565b6001600160a01b0316146113435760405162461bcd60e51b8152600401610bf990614ac3565b600d80546040805160208084028201810190925282815291929190829084908301828280156113b957602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116113805790505b50505050509050915091509091565b60006001600160a01b0382166114335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146114795760405162461bcd60e51b8152600401610bf990614ac3565b6114836000613d11565b565b6006546001600160a01b031633146114af5760405162461bcd60e51b8152600401610bf990614ac3565b60118054911515600160a01b0260ff60a01b19909216919091179055565b6114d8856005614b0e565b8015611aaa5760005a90503233146115025760405162461bcd60e51b8152600401610bf990614c91565b600f54610100900460ff166115595760405162461bcd60e51b815260206004820152601c60248201527f507269766174652073616c65206d75737420626520656e61626c6564000000006044820152606401610bf9565b86600010801561156b57506008548711155b6115875760405162461bcd60e51b8152600401610bf990614cb3565b600d548711156115a95760405162461bcd60e51b8152600401610bf990614b9f565b34876009546115b89190614b0e565b146115d55760405162461bcd60e51b8152600401610bf990614ce3565b604080518082018252601281527113595d185b5bdbdcd94810dbdb9d1c9858dd60721b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f5be95c9a52498b5000c9e07a17e9fb7c906f3ef70ea92cf82b4b68077bdae05581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617160c08301526001600160a01b038c1660e08301526101008083018c90528451808403909101815261012083019094528351939092019290922061190160f01b6101408401526101428301829052610162830181905290916000906101820160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8d1692840192909252606083018b9052608083018a90529092509060019060a0016020604051602081039080840390855afa15801561175a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811673719dec089084c98d505695a2cdc82238024d0bad146117c75760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e61746f727960781b6044820152606401610bf9565b600b546000886117e557604080516000815260208101909152611828565b8c6001600160401b038111156117fd576117fd6146e1565b604051908082528060200260200182016040528015611826578160200160208202803683370190505b505b905060005b8d81101561192157600061183f6138c1565b905061185e8161ffff166000908152600e602052604090205460ff1690565b1561189e576001600c60068282829054906101000a900461ffff166118839190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8a6118b6576118b1338261ffff16613a60565b611900565b600f546118d6906201000090046001600160a01b031661ffff8316613a60565b808383815181106118e9576118e9614c7b565b602002602001019061ffff16908161ffff16815250505b8361190a81614c0f565b94505050808061191990614c0f565b91505061182d565b50600b829055881561199757600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906119649033908590600401614d13565b600060405180830381600087803b15801561197e57600080fd5b505af1158015611992573d6000803e3d6000fd5b505050505b60408051338152602081018f90527f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f9537910160405180910390a150505050505060008036905060106119e89190614b0e565b5a6119f584615208614b2d565b6119ff9190614b45565b611a099190614b2d565b90506000611a1f61a3db610e0f8461374a614b2d565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b158015611a6957600080fd5b505af1158015611a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa19190614b86565b50505050611f9e565b323314611ac95760405162461bcd60e51b8152600401610bf990614c91565b600f54610100900460ff16611b205760405162461bcd60e51b815260206004820152601c60248201527f507269766174652073616c65206d75737420626520656e61626c6564000000006044820152606401610bf9565b856000108015611b3257506008548611155b611b4e5760405162461bcd60e51b8152600401610bf990614cb3565b600d54861115611b705760405162461bcd60e51b8152600401610bf990614b9f565b3486600954611b7f9190614b0e565b14611b9c5760405162461bcd60e51b8152600401610bf990614ce3565b604080518082018252601281527113595d185b5bdbdcd94810dbdb9d1c9858dd60721b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f5be95c9a52498b5000c9e07a17e9fb7c906f3ef70ea92cf82b4b68077bdae05581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617160c08301526001600160a01b038b1660e08301526101008083018b90528451808403909101815261012083019094528351939092019290922061190160f01b6101408401526101428301829052610162830181905290916000906101820160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8c1692840192909252606083018a9052608083018990529092509060019060a0016020604051602081039080840390855afa158015611d21573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811673719dec089084c98d505695a2cdc82238024d0bad14611d8e5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e61746f727960781b6044820152606401610bf9565b600b54600087611dac57604080516000815260208101909152611def565b8b6001600160401b03811115611dc457611dc46146e1565b604051908082528060200260200182016040528015611ded578160200160208202803683370190505b505b905060005b8c811015611ee8576000611e066138c1565b9050611e258161ffff166000908152600e602052604090205460ff1690565b15611e65576001600c60068282829054906101000a900461ffff16611e4a9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b89611e7d57611e78338261ffff16613a60565b611ec7565b600f54611e9d906201000090046001600160a01b031661ffff8316613a60565b80838381518110611eb057611eb0614c7b565b602002602001019061ffff16908161ffff16815250505b83611ed181614c0f565b945050508080611ee090614c0f565b915050611df4565b50600b8290558715611f5e57600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe90611f2b9033908590600401614d13565b600060405180830381600087803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b505050505b60408051338152602081018e90527f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f9537910160405180910390a15050505050505b50505050505050565b6006546001600160a01b03163314611fd15760405162461bcd60e51b8152600401610bf990614ac3565b600a6020527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc7929092557fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba85560036000527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa3975955565b606060018054610b0190614a88565b6110c6338383613d63565b61206b826005614b0e565b80156128d35760005a90503233146120955760405162461bcd60e51b8152600401610bf990614c91565b600f5460ff166120e75760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206d75737420626520656e61626c656400000000006044820152606401610bf9565b8360001080156120f957506008548411155b6121155760405162461bcd60e51b8152600401610bf990614cb3565b600d548411156121375760405162461bcd60e51b8152600401610bf990614b9f565b600c5460009061ffff166121765734856009546121549190614b0e565b146121715760405162461bcd60e51b8152600401610bf990614ce3565b612252565b34156121c45760405162461bcd60e51b815260206004820152601d60248201527f4e6f77206d696e74696e6720697320646f6e65207669612050656e6e790000006044820152606401610bf9565b600c5461ffff166000908152600a60205260409020546121e5908690614b0e565b9050801561225257601054604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561223957600080fd5b505af115801561224d573d6000803e3d6000fd5b505050505b600b54600085612270576040805160008152602081019091526122b3565b866001600160401b03811115612288576122886146e1565b6040519080825280602002602001820160405280156122b1578160200160208202803683370190505b505b90506000808780156122ca5750600c5461ffff1615155b6122e257604080516000815260208101909152612325565b886001600160401b038111156122fa576122fa6146e1565b604051908082528060200260200182016040528015612323578160200160208202803683370190505b505b905060005b8981101561271557600061233d82613e32565b905060006123496138c1565b90506123688161ffff166000908152600e602052604090205460ff1690565b156123a8576001600c60068282829054906101000a900461ffff1661238d9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b03821633146124985761ffff81166000908152600e602052604090205460ff16612411576001600c60048282829054906101000a900461ffff166123f39190614be9565b92506101000a81548161ffff021916908361ffff160217905561244b565b6001600c60028282829054906101000a900461ffff166124319190614be9565b92506101000a81548161ffff021916908361ffff16021790555b506040805133815261ffff831660208201526001600160a01b0384168183015290517f5c8f955114cce6fe18920ee4bb38271b9a0f5579589f3767ccf22eb6484e06109181900360600190a15b8a15806124ae57506001600160a01b0382163314155b156124c6576124c1828261ffff16613a60565b612510565b600f546124e6906201000090046001600160a01b031661ffff8316613a60565b808684815181106124f9576124f9614c7b565b602002602001019061ffff16908161ffff16815250505b8661251a81614c0f565b600c5490985061ffff1615801591506125495750600161253a848e614b45565b6125449190614b45565b600d54115b80156125da57506011546040516337347e0560e11b81526004810189905260646024820152600a916001600160a01b031690636e68fc0a9060440160206040518083038186803b15801561259c57600080fd5b505afa1580156125b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d49190614d37565b61ffff16105b1561270057846125e957600194505b60006125f36138c1565b90506126128161ffff166000908152600e602052604090205460ff1690565b15612652576001600c60068282829054906101000a900461ffff166126379190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8b61266a57612665338261ffff16613a60565b6126b4565b600f5461268a906201000090046001600160a01b031661ffff8316613a60565b8085858151811061269d5761269d614c7b565b602002602001019061ffff16908161ffff16815250505b876126be81614c0f565b6040805133815261ffff85166020820152919a507f7f1ea6c9b07d8a4a0a8ec8a88695f4aa2d74b82d347f636a529efe20e63e90d992500160405180910390a1505b5050808061270d90614c0f565b91505061232a565b50600b849055871561278b57600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906127589033908790600401614d13565b600060405180830381600087803b15801561277257600080fd5b505af1158015612786573d6000803e3d6000fd5b505050505b8780156127955750815b1561280457600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906127d19033908590600401614d13565b600060405180830381600087803b1580156127eb57600080fd5b505af11580156127ff573d6000803e3d6000fd5b505050505b506000935061281a925036915060109050614b0e565b5a61282784615208614b2d565b6128319190614b45565b61283b9190614b2d565b9050600061285161a3db610e0f8461374a614b2d565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b15801561289b57600080fd5b505af11580156128af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9e9190614b86565b3233146128f25760405162461bcd60e51b8152600401610bf990614c91565b600f5460ff166129445760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206d75737420626520656e61626c656400000000006044820152606401610bf9565b82600010801561295657506008548311155b6129725760405162461bcd60e51b8152600401610bf990614cb3565b600d548311156129945760405162461bcd60e51b8152600401610bf990614b9f565b600c5460009061ffff166129d35734846009546129b19190614b0e565b146129ce5760405162461bcd60e51b8152600401610bf990614ce3565b612aaf565b3415612a215760405162461bcd60e51b815260206004820152601d60248201527f4e6f77206d696e74696e6720697320646f6e65207669612050656e6e790000006044820152606401610bf9565b600c5461ffff166000908152600a6020526040902054612a42908590614b0e565b90508015612aaf57601054604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015612a9657600080fd5b505af1158015612aaa573d6000803e3d6000fd5b505050505b600b54600084612acd57604080516000815260208101909152612b10565b856001600160401b03811115612ae557612ae56146e1565b604051908082528060200260200182016040528015612b0e578160200160208202803683370190505b505b9050600080868015612b275750600c5461ffff1615155b612b3f57604080516000815260208101909152612b82565b876001600160401b03811115612b5757612b576146e1565b604051908082528060200260200182016040528015612b80578160200160208202803683370190505b505b905060005b88811015612f72576000612b9a82613e32565b90506000612ba66138c1565b9050612bc58161ffff166000908152600e602052604090205460ff1690565b15612c05576001600c60068282829054906101000a900461ffff16612bea9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b0382163314612cf55761ffff81166000908152600e602052604090205460ff16612c6e576001600c60048282829054906101000a900461ffff16612c509190614be9565b92506101000a81548161ffff021916908361ffff1602179055612ca8565b6001600c60028282829054906101000a900461ffff16612c8e9190614be9565b92506101000a81548161ffff021916908361ffff16021790555b506040805133815261ffff831660208201526001600160a01b0384168183015290517f5c8f955114cce6fe18920ee4bb38271b9a0f5579589f3767ccf22eb6484e06109181900360600190a15b891580612d0b57506001600160a01b0382163314155b15612d2357612d1e828261ffff16613a60565b612d6d565b600f54612d43906201000090046001600160a01b031661ffff8316613a60565b80868481518110612d5657612d56614c7b565b602002602001019061ffff16908161ffff16815250505b86612d7781614c0f565b600c5490985061ffff161580159150612da657506001612d97848d614b45565b612da19190614b45565b600d54115b8015612e3757506011546040516337347e0560e11b81526004810189905260646024820152600a916001600160a01b031690636e68fc0a9060440160206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e319190614d37565b61ffff16105b15612f5d5784612e4657600194505b6000612e506138c1565b9050612e6f8161ffff166000908152600e602052604090205460ff1690565b15612eaf576001600c60068282829054906101000a900461ffff16612e949190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8a612ec757612ec2338261ffff16613a60565b612f11565b600f54612ee7906201000090046001600160a01b031661ffff8316613a60565b80858581518110612efa57612efa614c7b565b602002602001019061ffff16908161ffff16815250505b87612f1b81614c0f565b6040805133815261ffff85166020820152919a507f7f1ea6c9b07d8a4a0a8ec8a88695f4aa2d74b82d347f636a529efe20e63e90d992500160405180910390a1505b50508080612f6a90614c0f565b915050612b87565b50600b8490558615612fe857600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe90612fb59033908790600401614d13565b600060405180830381600087803b158015612fcf57600080fd5b505af1158015612fe3573d6000803e3d6000fd5b505050505b868015612ff25750815b1561306157600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe9061302e9033908590600401614d13565b600060405180830381600087803b15801561304857600080fd5b505af115801561305c573d6000803e3d6000fd5b505050505b5050505050505050565b601154600160a01b900460ff166130ba5760405162461bcd60e51b8152602060048201526013602482015272109d5c9b881a5cc81b9bdd08185b1b1bddd959606a1b6044820152606401610bf9565b60005b82811015613232576006546001600160a01b031633148061310d575061310d338585848181106130ef576130ef614c7b565b90506020020160208101906131049190614611565b61ffff16613a7a565b6131725760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610bf9565b6131a584848381811061318757613187614c7b565b905060200201602081019061319c9190614611565b61ffff16613fa3565b6001600b546131b49190614b45565b600b556131e18484838181106131cc576131cc614c7b565b90506020020160208101906109829190614611565b1561322057600c54613203906001906601000000000000900461ffff16614d54565b600c60066101000a81548161ffff021916908361ffff1602179055505b8061322a81614c0f565b9150506130bd565b5080801561324b57506006546001600160a01b03163314155b80156132575750600182115b15610d2f5760006132666138c1565b9050613276338261ffff16613a60565b61ffff81166000908152600e602052604090205460ff16156132cd576001600c60068282829054906101000a900461ffff166132b29190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b600b80549060006132dd83614c0f565b919050555050505050565b6006546001600160a01b031633146133125760405162461bcd60e51b8152600401610bf990614ac3565b600f80546001600160a01b03948516620100000262010000600160b01b0319909116179055601080549284166001600160a01b031993841617905560118054919093169116179055565b6006546001600160a01b031633146133865760405162461bcd60e51b8152600401610bf990614ac3565b600d805461339690600190614b45565b815481106133a6576133a6614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff16600d82815481106133dd576133dd614c7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d80548061341d5761341d614d77565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550565b6006546001600160a01b031633146134765760405162461bcd60e51b8152600401610bf990614ac3565b600d54156134c65760405162461bcd60e51b815260206004820152601760248201527f417661696c61626c6520746f6b656e73206578697374730000000000000000006044820152606401610bf9565b60005b8181101561356c57613505848484848181106134e7576134e7614c7b565b90506020020160208101906134fc9190614611565b61ffff16613a60565b61351a8383838181106131cc576131cc614c7b565b1561355a576001600c60068282829054906101000a900461ffff1661353f9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8061356481614c0f565b9150506134c9565b5081819050600b60008282546135829190614b2d565b9091555050505050565b6135963383613a7a565b6135b25760405162461bcd60e51b8152600401610bf990614c2a565b610f0a8484848461403e565b6006546001600160a01b031633146135e85760405162461bcd60e51b8152600401610bf990614ac3565b600f805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260409020546060906001600160a01b03166136845760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf9565b600061368e614071565b905060008151116136ae57604051806020016040528060008152506136d9565b806136b884614080565b6040516020016136c9929190614d8d565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461370a5760405162461bcd60e51b8152600401610bf990614ac3565b6001600160a01b03811661376f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b61377881613d11565b50565b6006546001600160a01b031633146137a55760405162461bcd60e51b8152600401610bf990614ac3565b600955565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906137e582611286565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b815b8161ffff168161ffff1611610d2f5761383c8161ffff16611165565b61389957600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb560108204018054600f9092166002026101000a61ffff81810219909316928416029190911790555b806138a381614db3565b915050613820565b60008183106138ba57816136d9565b5090919050565b601154600d546040516337347e0560e11b815260009283926001600160a01b0390911691636e68fc0a91613902918190600401918252602082015260400190565b60206040518083038186803b15801561391a57600080fd5b505afa15801561392e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139529190614d37565b61ffff1690506000600d828154811061396d5761396d614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff169050600d6001600d805490506139a79190614b45565b815481106139b7576139b7614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff16600d83815481106139ee576139ee614c7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d805480613a2e57613a2e614d77565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905592915050565b6110c682826040518060200160405280600081525061417d565b6000818152600260205260408120546001600160a01b0316613af35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b6000613afe83611286565b9050806001600160a01b0316846001600160a01b03161480613b395750836001600160a01b0316613b2e84610b84565b6001600160a01b0316145b80613b6957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613b8482611286565b6001600160a01b031614613bec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b038216613c4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b613c596000826137b0565b6001600160a01b0383166000908152600360205260408120805460019290613c82908490614b45565b90915550506001600160a01b0382166000908152600360205260408120805460019290613cb0908490614b2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415613dc55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600c5460009061ffff16613e47575033919050565b601154600b54600a916001600160a01b031690636e68fc0a90613e6b908690614b2d565b6040516001600160e01b031960e084901b16815260048101919091526064602482015260440160206040518083038186803b158015613ea957600080fd5b505afa158015613ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ee19190614d37565b61ffff1610613ef1575033919050565b600f54600b546000916201000090046001600160a01b031690631aace9b790613f1b908690614b2d565b6040518263ffffffff1660e01b8152600401613f3991815260200190565b602060405180830381600087803b158015613f5357600080fd5b505af1158015613f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f8b9190614dd5565b90506001600160a01b038116610aec57503392915050565b6000613fae82611286565b9050613fbb6000836137b0565b6001600160a01b0381166000908152600360205260408120805460019290613fe4908490614b45565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b614049848484613b71565b614055848484846141b0565b610f0a5760405162461bcd60e51b8152600401610bf990614df2565b606060078054610b0190614a88565b6060816140a45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156140ce57806140b881614c0f565b91506140c79050600a83614b72565b91506140a8565b6000816001600160401b038111156140e8576140e86146e1565b6040519080825280601f01601f191660200182016040528015614112576020820181803683370190505b5090505b8415613b6957614127600183614b45565b9150614134600a86614e44565b61413f906030614b2d565b60f81b81838151811061415457614154614c7b565b60200101906001600160f81b031916908160001a905350614176600a86614b72565b9450614116565b61418783836142bd565b61419460008484846141b0565b610d2f5760405162461bcd60e51b8152600401610bf990614df2565b60006001600160a01b0384163b156142b257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906141f4903390899088908890600401614e58565b602060405180830381600087803b15801561420e57600080fd5b505af192505050801561423e575060408051601f3d908101601f1916820190925261423b91810190614e95565b60015b614298573d80801561426c576040519150601f19603f3d011682016040523d82523d6000602084013e614271565b606091505b5080516142905760405162461bcd60e51b8152600401610bf990614df2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613b69565b506001949350505050565b6001600160a01b0382166143135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156143785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b6001600160a01b03821660009081526003602052604081208054600192906143a1908490614b2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461440b90614a88565b90600052602060002090601f01602090048101928261442d5760008555614473565b82601f1061444657805160ff1916838001178555614473565b82800160010185558215614473579182015b82811115614473578251825591602001919060010190614458565b5061447f929150614483565b5090565b5b8082111561447f5760008155600101614484565b6001600160e01b03198116811461377857600080fd5b6000602082840312156144c057600080fd5b81356136d981614498565b60005b838110156144e65781810151838201526020016144ce565b83811115610f0a5750506000910152565b6000815180845261450f8160208601602086016144cb565b601f01601f19169290920160200192915050565b6020815260006136d960208301846144f7565b60006020828403121561454857600080fd5b5035919050565b6001600160a01b038116811461377857600080fd5b6000806040838503121561457757600080fd5b82356145828161454f565b946020939093013593505050565b61ffff8116811461377857600080fd5b6000806000606084860312156145b557600080fd5b83356145c081614590565b925060208401356145d081614590565b929592945050506040919091013590565b6000806000606084860312156145f657600080fd5b83356146018161454f565b925060208401356145d08161454f565b60006020828403121561462357600080fd5b81356136d981614590565b60008083601f84011261464057600080fd5b5081356001600160401b0381111561465757600080fd5b6020830191508360208260051b850101111561467257600080fd5b9250929050565b8035801515811461468957600080fd5b919050565b6000806000604084860312156146a357600080fd5b83356001600160401b038111156146b957600080fd5b6146c58682870161462e565b90945092506146d8905060208501614679565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614711576147116146e1565b604051601f8501601f19908116603f01168101908282118183101715614739576147396146e1565b8160405280935085815286868601111561475257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561477e57600080fd5b81356001600160401b0381111561479457600080fd5b8201601f810184136147a557600080fd5b613b69848235602084016146f7565b600081518084526020808501945080840160005b838110156147e857815161ffff16875295820195908201906001016147c8565b509495945050505050565b828152604060208201526000613b6960408301846147b4565b60006020828403121561481e57600080fd5b81356136d98161454f565b60006020828403121561483b57600080fd5b6136d982614679565b60008060008060008060c0878903121561485d57600080fd5b86356148688161454f565b955060208701359450604087013560ff8116811461488557600080fd5b935060608701359250608087013591506148a160a08801614679565b90509295509295509295565b6000806000606084860312156148c257600080fd5b505081359360208301359350604090920135919050565b600080604083850312156148ec57600080fd5b82356148f78161454f565b915061490560208401614679565b90509250929050565b6000806040838503121561492157600080fd5b8235915061490560208401614679565b60008060006060848603121561494657600080fd5b83356149518161454f565b925060208401356149618161454f565b915060408401356149718161454f565b809150509250925092565b60008060006040848603121561499157600080fd5b833561499c8161454f565b925060208401356001600160401b038111156149b757600080fd5b6149c38682870161462e565b9497909650939450505050565b600080600080608085870312156149e657600080fd5b84356149f18161454f565b93506020850135614a018161454f565b92506040850135915060608501356001600160401b03811115614a2357600080fd5b8501601f81018713614a3457600080fd5b614a43878235602084016146f7565b91505092959194509250565b60008060408385031215614a6257600080fd5b8235614a6d8161454f565b91506020830135614a7d8161454f565b809150509250929050565b600181811c90821680614a9c57607f821691505b60208210811415614abd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614b2857614b28614af8565b500290565b60008219821115614b4057614b40614af8565b500190565b600082821015614b5757614b57614af8565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614b8157614b81614b5c565b500490565b600060208284031215614b9857600080fd5b5051919050565b6020808252602a908201527f416c6c20746f6b656e7320666f7220746869732050686173652061726520616c6040820152691c9958591e481cdbdb1960b21b606082015260800190565b600061ffff808316818516808303821115614c0657614c06614af8565b01949350505050565b6000600019821415614c2357614c23614af8565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b602080825260169082015275125b9d985b1a5908185b5bdd5b9d081d1bc81b5a5b9d60521b604082015260600190565b602080825260169082015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b604082015260600190565b6001600160a01b0383168152604060208201819052600090613b69908301846147b4565b600060208284031215614d4957600080fd5b81516136d981614590565b600061ffff83811690831681811015614d6f57614d6f614af8565b039392505050565b634e487b7160e01b600052603160045260246000fd5b60008351614d9f8184602088016144cb565b835190830190614c068183602088016144cb565b600061ffff80831681811415614dcb57614dcb614af8565b6001019392505050565b600060208284031215614de757600080fd5b81516136d98161454f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614e5357614e53614b5c565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614e8b908301846144f7565b9695505050505050565b600060208284031215614ea757600080fd5b81516136d98161449856fea2646970667358221220e909e9d0947381ab439caf964832a8a64ef084247a9991d149658cce9943e5b964736f6c634300080900334552433732313a207472616e7366657220746f206e6f6e204552433732315265
Deployed Bytecode
0x6080604052600436106103505760003560e01c80637b2c835f116101c6578063b60f8a53116100f7578063d246fa7911610095578063f2fde38b1161006f578063f2fde38b14610a07578063f47aae0d14610a27578063f4a0a52814610a4c578063f76fc35e14610a6c57600080fd5b8063d246fa7914610967578063d659c8691461099b578063e985e9c5146109be57600080fd5b8063c182cab0116100d1578063c182cab0146108e3578063c87b56dd146108f8578063c9150a9e14610918578063c92aecc41461094557600080fd5b8063b60f8a5314610884578063b88d4fde146108a4578063bf441ab1146108c457600080fd5b8063a22cb46511610164578063aa0388f11161013e578063aa0388f114610809578063b1c9fe6e14610829578063b3066d4914610844578063b3fd9b871461086457600080fd5b8063a22cb465146107bc578063a243d3b6146107dc578063a59af6f6146107ef57600080fd5b8063825c5d84116101a0578063825c5d84146107355780638da5cb5b14610755578063901314c71461077357806395d89b41146107a757600080fd5b80637b2c835f146106dc5780637e64c8fb146106fc5780637fe191d61461072257600080fd5b80634c982130116102a05780636352211e1161023e5780636de9f32b116102185780636de9f32b1461067b57806370a0823114610691578063715018a6146106b15780637501f741146106c657600080fd5b80636352211e146106225780636817c76c1461064257806369bb4dc21461065857600080fd5b8063547520fe1161027a578063547520fe1461058357806355f804b3146105a35780635dc96d16146105c3578063614d08f8146105e457600080fd5b80634c982130146105235780634f558e79146105435780635018af301461056357600080fd5b806318db20cf1161030d57806323b872dd116102e757806323b872dd146104b95780633ccfd60b146104d957806342842e0e146104ee57806345487dc31461050e57600080fd5b806318db20cf146104455780631fba8b001461046557806320606b701461048557600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063095ea7b3146103e4578063103815ac1461040657806318160ddd14610426575b600080fd5b34801561036157600080fd5b506103756103703660046144ae565b610aa0565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610af2565b6040516103819190614523565b3480156103b857600080fd5b506103cc6103c7366004614536565b610b84565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b506104046103ff366004614564565b610c1e565b005b34801561041257600080fd5b506104046104213660046145a0565b610d34565b34801561043257600080fd5b50600b545b604051908152602001610381565b34801561045157600080fd5b506010546103cc906001600160a01b031681565b34801561047157600080fd5b50610404610480366004614564565b610f10565b34801561049157600080fd5b506104377f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b3480156104c557600080fd5b506104046104d43660046145e1565b611007565b3480156104e557600080fd5b50610404611059565b3480156104fa57600080fd5b506104046105093660046145e1565b6110ca565b34801561051a57600080fd5b506104046110e5565b34801561052f57600080fd5b5061040461053e366004614611565b611123565b34801561054f57600080fd5b5061037561055e366004614536565b611165565b34801561056f57600080fd5b5061040461057e36600461468e565b611184565b34801561058f57600080fd5b5061040461059e366004614536565b61121a565b3480156105af57600080fd5b506104046105be36600461476c565b611249565b3480156105cf57600080fd5b5060115461037590600160a01b900460ff1681565b3480156105f057600080fd5b5061039f6040518060400160405280601281526020017113595d185b5bdbdcd94810dbdb9d1c9858dd60721b81525081565b34801561062e57600080fd5b506103cc61063d366004614536565b611286565b34801561064e57600080fd5b5061043760095481565b34801561066457600080fd5b5061066d6112fd565b6040516103819291906147f3565b34801561068757600080fd5b50610437600b5481565b34801561069d57600080fd5b506104376106ac36600461480c565b6113c8565b3480156106bd57600080fd5b5061040461144f565b3480156106d257600080fd5b5061043760085481565b3480156106e857600080fd5b506104046106f7366004614829565b611485565b34801561070857600080fd5b50600f546103cc906201000090046001600160a01b031681565b610404610730366004614844565b6114cd565b34801561074157600080fd5b506104046107503660046148ad565b611fa7565b34801561076157600080fd5b506006546001600160a01b03166103cc565b34801561077f57600080fd5b50600c546107949062010000900461ffff1681565b60405161ffff9091168152602001610381565b3480156107b357600080fd5b5061039f612046565b3480156107c857600080fd5b506104046107d73660046148d9565b612055565b6104046107ea36600461490e565b612060565b3480156107fb57600080fd5b50600f546103759060ff1681565b34801561081557600080fd5b5061040461082436600461468e565b61306b565b34801561083557600080fd5b50600c546107949061ffff1681565b34801561085057600080fd5b5061040461085f366004614931565b6132e8565b34801561087057600080fd5b5061040461087f366004614536565b61335c565b34801561089057600080fd5b5061040461089f36600461497c565b61344c565b3480156108b057600080fd5b506104046108bf3660046149d0565b61358c565b3480156108d057600080fd5b50600f5461037590610100900460ff1681565b3480156108ef57600080fd5b506104046135be565b34801561090457600080fd5b5061039f610913366004614536565b613605565b34801561092457600080fd5b50610437610933366004614611565b600a6020526000908152604090205481565b34801561095157600080fd5b506103cc6d4946c0e9f43f4dee607b0ef1fa1c81565b34801561097357600080fd5b50610375610982366004614611565b61ffff166000908152600e602052604090205460ff1690565b3480156109a757600080fd5b50600c5461079490640100000000900461ffff1681565b3480156109ca57600080fd5b506103756109d9366004614a4f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b50610404610a2236600461480c565b6136e0565b348015610a3357600080fd5b50600c54610794906601000000000000900461ffff1681565b348015610a5857600080fd5b50610404610a67366004614536565b61377b565b348015610a7857600080fd5b506104377f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617181565b60006001600160e01b031982166380ac58cd60e01b1480610ad157506001600160e01b03198216635b5e139f60e01b145b80610aec57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b0190614a88565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2d90614a88565b8015610b7a5780601f10610b4f57610100808354040283529160200191610b7a565b820191906000526020600020905b815481529060010190602001808311610b5d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c2982611286565b9050806001600160a01b0316836001600160a01b03161415610c975760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610cb35750610cb381336109d9565b610d255760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610d2f83836137b0565b505050565b6006546001600160a01b03163314610d5e5760405162461bcd60e51b8152600401610bf990614ac3565b808015610eaa5760005a600f54909150610100900460ff16158015610d865750600f5460ff16155b610dc15760405162461bcd60e51b815260206004820152600c60248201526b53616c65206973206c69766560a01b6044820152606401610bf9565b610dcb858561381e565b6000610dd8366010614b0e565b5a610de584615208614b2d565b610def9190614b45565b610df99190614b2d565b90506000610e1f61a3db610e0f8461374a614b2d565b610e199190614b72565b856138ab565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b158015610e6957600080fd5b505af1158015610e7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea19190614b86565b50505050610f0a565b600f54610100900460ff16158015610ec55750600f5460ff16155b610f005760405162461bcd60e51b815260206004820152600c60248201526b53616c65206973206c69766560a01b6044820152606401610bf9565b610f0a848461381e565b50505050565b6006546001600160a01b03163314610f3a5760405162461bcd60e51b8152600401610bf990614ac3565b600d54811115610f5c5760405162461bcd60e51b8152600401610bf990614b9f565b60005b81811015610feb576000610f716138c1565b9050610f81848261ffff16613a60565b61ffff81166000908152600e602052604090205460ff1615610fd8576001600c60068282829054906101000a900461ffff16610fbd9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b5080610fe381614c0f565b915050610f5f565b5080600b6000828254610ffe9190614b2d565b90915550505050565b600f546201000090046001600160a01b0316336001600160a01b03161461104e576110323382613a7a565b61104e5760405162461bcd60e51b8152600401610bf990614c2a565b610d2f838383613b71565b6006546001600160a01b031633146110835760405162461bcd60e51b8152600401610bf990614ac3565b604051479073a3f447f39201957c3f904e20a8f116b9ee28f9939082156108fc029083906000818181858888f193505050501580156110c6573d6000803e3d6000fd5b5050565b610d2f8383836040518060200160405280600081525061358c565b6006546001600160a01b0316331461110f5760405162461bcd60e51b8152600401610bf990614ac3565b600f805460ff19811660ff90911615179055565b6006546001600160a01b0316331461114d5760405162461bcd60e51b8152600401610bf990614ac3565b600c805461ffff191661ffff92909216919091179055565b6000818152600260205260408120546001600160a01b03161515610aec565b6006546001600160a01b031633146111ae5760405162461bcd60e51b8152600401610bf990614ac3565b60005b82811015610f0a5781600e60008686858181106111d0576111d0614c7b565b90506020020160208101906111e59190614611565b61ffff1681526020810191909152604001600020805460ff19169115159190911790558061121281614c0f565b9150506111b1565b6006546001600160a01b031633146112445760405162461bcd60e51b8152600401610bf990614ac3565b600855565b6006546001600160a01b031633146112735760405162461bcd60e51b8152600401610bf990614ac3565b80516110c69060079060208401906143ff565b6000818152600260205260408120546001600160a01b031680610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b60006060336001600160a01b031661131d6006546001600160a01b031690565b6001600160a01b0316146113435760405162461bcd60e51b8152600401610bf990614ac3565b600d80546040805160208084028201810190925282815291929190829084908301828280156113b957602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116113805790505b50505050509050915091509091565b60006001600160a01b0382166114335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146114795760405162461bcd60e51b8152600401610bf990614ac3565b6114836000613d11565b565b6006546001600160a01b031633146114af5760405162461bcd60e51b8152600401610bf990614ac3565b60118054911515600160a01b0260ff60a01b19909216919091179055565b6114d8856005614b0e565b8015611aaa5760005a90503233146115025760405162461bcd60e51b8152600401610bf990614c91565b600f54610100900460ff166115595760405162461bcd60e51b815260206004820152601c60248201527f507269766174652073616c65206d75737420626520656e61626c6564000000006044820152606401610bf9565b86600010801561156b57506008548711155b6115875760405162461bcd60e51b8152600401610bf990614cb3565b600d548711156115a95760405162461bcd60e51b8152600401610bf990614b9f565b34876009546115b89190614b0e565b146115d55760405162461bcd60e51b8152600401610bf990614ce3565b604080518082018252601281527113595d185b5bdbdcd94810dbdb9d1c9858dd60721b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f5be95c9a52498b5000c9e07a17e9fb7c906f3ef70ea92cf82b4b68077bdae05581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617160c08301526001600160a01b038c1660e08301526101008083018c90528451808403909101815261012083019094528351939092019290922061190160f01b6101408401526101428301829052610162830181905290916000906101820160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8d1692840192909252606083018b9052608083018a90529092509060019060a0016020604051602081039080840390855afa15801561175a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811673719dec089084c98d505695a2cdc82238024d0bad146117c75760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e61746f727960781b6044820152606401610bf9565b600b546000886117e557604080516000815260208101909152611828565b8c6001600160401b038111156117fd576117fd6146e1565b604051908082528060200260200182016040528015611826578160200160208202803683370190505b505b905060005b8d81101561192157600061183f6138c1565b905061185e8161ffff166000908152600e602052604090205460ff1690565b1561189e576001600c60068282829054906101000a900461ffff166118839190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8a6118b6576118b1338261ffff16613a60565b611900565b600f546118d6906201000090046001600160a01b031661ffff8316613a60565b808383815181106118e9576118e9614c7b565b602002602001019061ffff16908161ffff16815250505b8361190a81614c0f565b94505050808061191990614c0f565b91505061182d565b50600b829055881561199757600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906119649033908590600401614d13565b600060405180830381600087803b15801561197e57600080fd5b505af1158015611992573d6000803e3d6000fd5b505050505b60408051338152602081018f90527f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f9537910160405180910390a150505050505060008036905060106119e89190614b0e565b5a6119f584615208614b2d565b6119ff9190614b45565b611a099190614b2d565b90506000611a1f61a3db610e0f8461374a614b2d565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b158015611a6957600080fd5b505af1158015611a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa19190614b86565b50505050611f9e565b323314611ac95760405162461bcd60e51b8152600401610bf990614c91565b600f54610100900460ff16611b205760405162461bcd60e51b815260206004820152601c60248201527f507269766174652073616c65206d75737420626520656e61626c6564000000006044820152606401610bf9565b856000108015611b3257506008548611155b611b4e5760405162461bcd60e51b8152600401610bf990614cb3565b600d54861115611b705760405162461bcd60e51b8152600401610bf990614b9f565b3486600954611b7f9190614b0e565b14611b9c5760405162461bcd60e51b8152600401610bf990614ce3565b604080518082018252601281527113595d185b5bdbdcd94810dbdb9d1c9858dd60721b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f5be95c9a52498b5000c9e07a17e9fb7c906f3ef70ea92cf82b4b68077bdae05581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207f79800d7a879f6d3ff90ed42057b41065ab94943f7417273b44f9e3044f19617160c08301526001600160a01b038b1660e08301526101008083018b90528451808403909101815261012083019094528351939092019290922061190160f01b6101408401526101428301829052610162830181905290916000906101820160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8c1692840192909252606083018a9052608083018990529092509060019060a0016020604051602081039080840390855afa158015611d21573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811673719dec089084c98d505695a2cdc82238024d0bad14611d8e5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e61746f727960781b6044820152606401610bf9565b600b54600087611dac57604080516000815260208101909152611def565b8b6001600160401b03811115611dc457611dc46146e1565b604051908082528060200260200182016040528015611ded578160200160208202803683370190505b505b905060005b8c811015611ee8576000611e066138c1565b9050611e258161ffff166000908152600e602052604090205460ff1690565b15611e65576001600c60068282829054906101000a900461ffff16611e4a9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b89611e7d57611e78338261ffff16613a60565b611ec7565b600f54611e9d906201000090046001600160a01b031661ffff8316613a60565b80838381518110611eb057611eb0614c7b565b602002602001019061ffff16908161ffff16815250505b83611ed181614c0f565b945050508080611ee090614c0f565b915050611df4565b50600b8290558715611f5e57600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe90611f2b9033908590600401614d13565b600060405180830381600087803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b505050505b60408051338152602081018e90527f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f9537910160405180910390a15050505050505b50505050505050565b6006546001600160a01b03163314611fd15760405162461bcd60e51b8152600401610bf990614ac3565b600a6020527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc7929092557fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba85560036000527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa3975955565b606060018054610b0190614a88565b6110c6338383613d63565b61206b826005614b0e565b80156128d35760005a90503233146120955760405162461bcd60e51b8152600401610bf990614c91565b600f5460ff166120e75760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206d75737420626520656e61626c656400000000006044820152606401610bf9565b8360001080156120f957506008548411155b6121155760405162461bcd60e51b8152600401610bf990614cb3565b600d548411156121375760405162461bcd60e51b8152600401610bf990614b9f565b600c5460009061ffff166121765734856009546121549190614b0e565b146121715760405162461bcd60e51b8152600401610bf990614ce3565b612252565b34156121c45760405162461bcd60e51b815260206004820152601d60248201527f4e6f77206d696e74696e6720697320646f6e65207669612050656e6e790000006044820152606401610bf9565b600c5461ffff166000908152600a60205260409020546121e5908690614b0e565b9050801561225257601054604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561223957600080fd5b505af115801561224d573d6000803e3d6000fd5b505050505b600b54600085612270576040805160008152602081019091526122b3565b866001600160401b03811115612288576122886146e1565b6040519080825280602002602001820160405280156122b1578160200160208202803683370190505b505b90506000808780156122ca5750600c5461ffff1615155b6122e257604080516000815260208101909152612325565b886001600160401b038111156122fa576122fa6146e1565b604051908082528060200260200182016040528015612323578160200160208202803683370190505b505b905060005b8981101561271557600061233d82613e32565b905060006123496138c1565b90506123688161ffff166000908152600e602052604090205460ff1690565b156123a8576001600c60068282829054906101000a900461ffff1661238d9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b03821633146124985761ffff81166000908152600e602052604090205460ff16612411576001600c60048282829054906101000a900461ffff166123f39190614be9565b92506101000a81548161ffff021916908361ffff160217905561244b565b6001600c60028282829054906101000a900461ffff166124319190614be9565b92506101000a81548161ffff021916908361ffff16021790555b506040805133815261ffff831660208201526001600160a01b0384168183015290517f5c8f955114cce6fe18920ee4bb38271b9a0f5579589f3767ccf22eb6484e06109181900360600190a15b8a15806124ae57506001600160a01b0382163314155b156124c6576124c1828261ffff16613a60565b612510565b600f546124e6906201000090046001600160a01b031661ffff8316613a60565b808684815181106124f9576124f9614c7b565b602002602001019061ffff16908161ffff16815250505b8661251a81614c0f565b600c5490985061ffff1615801591506125495750600161253a848e614b45565b6125449190614b45565b600d54115b80156125da57506011546040516337347e0560e11b81526004810189905260646024820152600a916001600160a01b031690636e68fc0a9060440160206040518083038186803b15801561259c57600080fd5b505afa1580156125b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d49190614d37565b61ffff16105b1561270057846125e957600194505b60006125f36138c1565b90506126128161ffff166000908152600e602052604090205460ff1690565b15612652576001600c60068282829054906101000a900461ffff166126379190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8b61266a57612665338261ffff16613a60565b6126b4565b600f5461268a906201000090046001600160a01b031661ffff8316613a60565b8085858151811061269d5761269d614c7b565b602002602001019061ffff16908161ffff16815250505b876126be81614c0f565b6040805133815261ffff85166020820152919a507f7f1ea6c9b07d8a4a0a8ec8a88695f4aa2d74b82d347f636a529efe20e63e90d992500160405180910390a1505b5050808061270d90614c0f565b91505061232a565b50600b849055871561278b57600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906127589033908790600401614d13565b600060405180830381600087803b15801561277257600080fd5b505af1158015612786573d6000803e3d6000fd5b505050505b8780156127955750815b1561280457600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe906127d19033908590600401614d13565b600060405180830381600087803b1580156127eb57600080fd5b505af11580156127ff573d6000803e3d6000fd5b505050505b506000935061281a925036915060109050614b0e565b5a61282784615208614b2d565b6128319190614b45565b61283b9190614b2d565b9050600061285161a3db610e0f8461374a614b2d565b6040516331b35c9b60e11b8152600481018290529091506d4946c0e9f43f4dee607b0ef1fa1c90636366b93690602401602060405180830381600087803b15801561289b57600080fd5b505af11580156128af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9e9190614b86565b3233146128f25760405162461bcd60e51b8152600401610bf990614c91565b600f5460ff166129445760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206d75737420626520656e61626c656400000000006044820152606401610bf9565b82600010801561295657506008548311155b6129725760405162461bcd60e51b8152600401610bf990614cb3565b600d548311156129945760405162461bcd60e51b8152600401610bf990614b9f565b600c5460009061ffff166129d35734846009546129b19190614b0e565b146129ce5760405162461bcd60e51b8152600401610bf990614ce3565b612aaf565b3415612a215760405162461bcd60e51b815260206004820152601d60248201527f4e6f77206d696e74696e6720697320646f6e65207669612050656e6e790000006044820152606401610bf9565b600c5461ffff166000908152600a6020526040902054612a42908590614b0e565b90508015612aaf57601054604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015612a9657600080fd5b505af1158015612aaa573d6000803e3d6000fd5b505050505b600b54600084612acd57604080516000815260208101909152612b10565b856001600160401b03811115612ae557612ae56146e1565b604051908082528060200260200182016040528015612b0e578160200160208202803683370190505b505b9050600080868015612b275750600c5461ffff1615155b612b3f57604080516000815260208101909152612b82565b876001600160401b03811115612b5757612b576146e1565b604051908082528060200260200182016040528015612b80578160200160208202803683370190505b505b905060005b88811015612f72576000612b9a82613e32565b90506000612ba66138c1565b9050612bc58161ffff166000908152600e602052604090205460ff1690565b15612c05576001600c60068282829054906101000a900461ffff16612bea9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b0382163314612cf55761ffff81166000908152600e602052604090205460ff16612c6e576001600c60048282829054906101000a900461ffff16612c509190614be9565b92506101000a81548161ffff021916908361ffff1602179055612ca8565b6001600c60028282829054906101000a900461ffff16612c8e9190614be9565b92506101000a81548161ffff021916908361ffff16021790555b506040805133815261ffff831660208201526001600160a01b0384168183015290517f5c8f955114cce6fe18920ee4bb38271b9a0f5579589f3767ccf22eb6484e06109181900360600190a15b891580612d0b57506001600160a01b0382163314155b15612d2357612d1e828261ffff16613a60565b612d6d565b600f54612d43906201000090046001600160a01b031661ffff8316613a60565b80868481518110612d5657612d56614c7b565b602002602001019061ffff16908161ffff16815250505b86612d7781614c0f565b600c5490985061ffff161580159150612da657506001612d97848d614b45565b612da19190614b45565b600d54115b8015612e3757506011546040516337347e0560e11b81526004810189905260646024820152600a916001600160a01b031690636e68fc0a9060440160206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e319190614d37565b61ffff16105b15612f5d5784612e4657600194505b6000612e506138c1565b9050612e6f8161ffff166000908152600e602052604090205460ff1690565b15612eaf576001600c60068282829054906101000a900461ffff16612e949190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8a612ec757612ec2338261ffff16613a60565b612f11565b600f54612ee7906201000090046001600160a01b031661ffff8316613a60565b80858581518110612efa57612efa614c7b565b602002602001019061ffff16908161ffff16815250505b87612f1b81614c0f565b6040805133815261ffff85166020820152919a507f7f1ea6c9b07d8a4a0a8ec8a88695f4aa2d74b82d347f636a529efe20e63e90d992500160405180910390a1505b50508080612f6a90614c0f565b915050612b87565b50600b8490558615612fe857600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe90612fb59033908790600401614d13565b600060405180830381600087803b158015612fcf57600080fd5b505af1158015612fe3573d6000803e3d6000fd5b505050505b868015612ff25750815b1561306157600f5460405163710fa65f60e11b8152620100009091046001600160a01b03169063e21f4cbe9061302e9033908590600401614d13565b600060405180830381600087803b15801561304857600080fd5b505af115801561305c573d6000803e3d6000fd5b505050505b5050505050505050565b601154600160a01b900460ff166130ba5760405162461bcd60e51b8152602060048201526013602482015272109d5c9b881a5cc81b9bdd08185b1b1bddd959606a1b6044820152606401610bf9565b60005b82811015613232576006546001600160a01b031633148061310d575061310d338585848181106130ef576130ef614c7b565b90506020020160208101906131049190614611565b61ffff16613a7a565b6131725760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610bf9565b6131a584848381811061318757613187614c7b565b905060200201602081019061319c9190614611565b61ffff16613fa3565b6001600b546131b49190614b45565b600b556131e18484838181106131cc576131cc614c7b565b90506020020160208101906109829190614611565b1561322057600c54613203906001906601000000000000900461ffff16614d54565b600c60066101000a81548161ffff021916908361ffff1602179055505b8061322a81614c0f565b9150506130bd565b5080801561324b57506006546001600160a01b03163314155b80156132575750600182115b15610d2f5760006132666138c1565b9050613276338261ffff16613a60565b61ffff81166000908152600e602052604090205460ff16156132cd576001600c60068282829054906101000a900461ffff166132b29190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b600b80549060006132dd83614c0f565b919050555050505050565b6006546001600160a01b031633146133125760405162461bcd60e51b8152600401610bf990614ac3565b600f80546001600160a01b03948516620100000262010000600160b01b0319909116179055601080549284166001600160a01b031993841617905560118054919093169116179055565b6006546001600160a01b031633146133865760405162461bcd60e51b8152600401610bf990614ac3565b600d805461339690600190614b45565b815481106133a6576133a6614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff16600d82815481106133dd576133dd614c7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d80548061341d5761341d614d77565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550565b6006546001600160a01b031633146134765760405162461bcd60e51b8152600401610bf990614ac3565b600d54156134c65760405162461bcd60e51b815260206004820152601760248201527f417661696c61626c6520746f6b656e73206578697374730000000000000000006044820152606401610bf9565b60005b8181101561356c57613505848484848181106134e7576134e7614c7b565b90506020020160208101906134fc9190614611565b61ffff16613a60565b61351a8383838181106131cc576131cc614c7b565b1561355a576001600c60068282829054906101000a900461ffff1661353f9190614be9565b92506101000a81548161ffff021916908361ffff1602179055505b8061356481614c0f565b9150506134c9565b5081819050600b60008282546135829190614b2d565b9091555050505050565b6135963383613a7a565b6135b25760405162461bcd60e51b8152600401610bf990614c2a565b610f0a8484848461403e565b6006546001600160a01b031633146135e85760405162461bcd60e51b8152600401610bf990614ac3565b600f805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260409020546060906001600160a01b03166136845760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf9565b600061368e614071565b905060008151116136ae57604051806020016040528060008152506136d9565b806136b884614080565b6040516020016136c9929190614d8d565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461370a5760405162461bcd60e51b8152600401610bf990614ac3565b6001600160a01b03811661376f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b61377881613d11565b50565b6006546001600160a01b031633146137a55760405162461bcd60e51b8152600401610bf990614ac3565b600955565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906137e582611286565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b815b8161ffff168161ffff1611610d2f5761383c8161ffff16611165565b61389957600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb560108204018054600f9092166002026101000a61ffff81810219909316928416029190911790555b806138a381614db3565b915050613820565b60008183106138ba57816136d9565b5090919050565b601154600d546040516337347e0560e11b815260009283926001600160a01b0390911691636e68fc0a91613902918190600401918252602082015260400190565b60206040518083038186803b15801561391a57600080fd5b505afa15801561392e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139529190614d37565b61ffff1690506000600d828154811061396d5761396d614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff169050600d6001600d805490506139a79190614b45565b815481106139b7576139b7614c7b565b90600052602060002090601091828204019190066002029054906101000a900461ffff16600d83815481106139ee576139ee614c7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d805480613a2e57613a2e614d77565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905592915050565b6110c682826040518060200160405280600081525061417d565b6000818152600260205260408120546001600160a01b0316613af35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b6000613afe83611286565b9050806001600160a01b0316846001600160a01b03161480613b395750836001600160a01b0316613b2e84610b84565b6001600160a01b0316145b80613b6957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613b8482611286565b6001600160a01b031614613bec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b038216613c4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b613c596000826137b0565b6001600160a01b0383166000908152600360205260408120805460019290613c82908490614b45565b90915550506001600160a01b0382166000908152600360205260408120805460019290613cb0908490614b2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415613dc55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600c5460009061ffff16613e47575033919050565b601154600b54600a916001600160a01b031690636e68fc0a90613e6b908690614b2d565b6040516001600160e01b031960e084901b16815260048101919091526064602482015260440160206040518083038186803b158015613ea957600080fd5b505afa158015613ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ee19190614d37565b61ffff1610613ef1575033919050565b600f54600b546000916201000090046001600160a01b031690631aace9b790613f1b908690614b2d565b6040518263ffffffff1660e01b8152600401613f3991815260200190565b602060405180830381600087803b158015613f5357600080fd5b505af1158015613f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f8b9190614dd5565b90506001600160a01b038116610aec57503392915050565b6000613fae82611286565b9050613fbb6000836137b0565b6001600160a01b0381166000908152600360205260408120805460019290613fe4908490614b45565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b614049848484613b71565b614055848484846141b0565b610f0a5760405162461bcd60e51b8152600401610bf990614df2565b606060078054610b0190614a88565b6060816140a45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156140ce57806140b881614c0f565b91506140c79050600a83614b72565b91506140a8565b6000816001600160401b038111156140e8576140e86146e1565b6040519080825280601f01601f191660200182016040528015614112576020820181803683370190505b5090505b8415613b6957614127600183614b45565b9150614134600a86614e44565b61413f906030614b2d565b60f81b81838151811061415457614154614c7b565b60200101906001600160f81b031916908160001a905350614176600a86614b72565b9450614116565b61418783836142bd565b61419460008484846141b0565b610d2f5760405162461bcd60e51b8152600401610bf990614df2565b60006001600160a01b0384163b156142b257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906141f4903390899088908890600401614e58565b602060405180830381600087803b15801561420e57600080fd5b505af192505050801561423e575060408051601f3d908101601f1916820190925261423b91810190614e95565b60015b614298573d80801561426c576040519150601f19603f3d011682016040523d82523d6000602084013e614271565b606091505b5080516142905760405162461bcd60e51b8152600401610bf990614df2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613b69565b506001949350505050565b6001600160a01b0382166143135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156143785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b6001600160a01b03821660009081526003602052604081208054600192906143a1908490614b2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461440b90614a88565b90600052602060002090601f01602090048101928261442d5760008555614473565b82601f1061444657805160ff1916838001178555614473565b82800160010185558215614473579182015b82811115614473578251825591602001919060010190614458565b5061447f929150614483565b5090565b5b8082111561447f5760008155600101614484565b6001600160e01b03198116811461377857600080fd5b6000602082840312156144c057600080fd5b81356136d981614498565b60005b838110156144e65781810151838201526020016144ce565b83811115610f0a5750506000910152565b6000815180845261450f8160208601602086016144cb565b601f01601f19169290920160200192915050565b6020815260006136d960208301846144f7565b60006020828403121561454857600080fd5b5035919050565b6001600160a01b038116811461377857600080fd5b6000806040838503121561457757600080fd5b82356145828161454f565b946020939093013593505050565b61ffff8116811461377857600080fd5b6000806000606084860312156145b557600080fd5b83356145c081614590565b925060208401356145d081614590565b929592945050506040919091013590565b6000806000606084860312156145f657600080fd5b83356146018161454f565b925060208401356145d08161454f565b60006020828403121561462357600080fd5b81356136d981614590565b60008083601f84011261464057600080fd5b5081356001600160401b0381111561465757600080fd5b6020830191508360208260051b850101111561467257600080fd5b9250929050565b8035801515811461468957600080fd5b919050565b6000806000604084860312156146a357600080fd5b83356001600160401b038111156146b957600080fd5b6146c58682870161462e565b90945092506146d8905060208501614679565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614711576147116146e1565b604051601f8501601f19908116603f01168101908282118183101715614739576147396146e1565b8160405280935085815286868601111561475257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561477e57600080fd5b81356001600160401b0381111561479457600080fd5b8201601f810184136147a557600080fd5b613b69848235602084016146f7565b600081518084526020808501945080840160005b838110156147e857815161ffff16875295820195908201906001016147c8565b509495945050505050565b828152604060208201526000613b6960408301846147b4565b60006020828403121561481e57600080fd5b81356136d98161454f565b60006020828403121561483b57600080fd5b6136d982614679565b60008060008060008060c0878903121561485d57600080fd5b86356148688161454f565b955060208701359450604087013560ff8116811461488557600080fd5b935060608701359250608087013591506148a160a08801614679565b90509295509295509295565b6000806000606084860312156148c257600080fd5b505081359360208301359350604090920135919050565b600080604083850312156148ec57600080fd5b82356148f78161454f565b915061490560208401614679565b90509250929050565b6000806040838503121561492157600080fd5b8235915061490560208401614679565b60008060006060848603121561494657600080fd5b83356149518161454f565b925060208401356149618161454f565b915060408401356149718161454f565b809150509250925092565b60008060006040848603121561499157600080fd5b833561499c8161454f565b925060208401356001600160401b038111156149b757600080fd5b6149c38682870161462e565b9497909650939450505050565b600080600080608085870312156149e657600080fd5b84356149f18161454f565b93506020850135614a018161454f565b92506040850135915060608501356001600160401b03811115614a2357600080fd5b8501601f81018713614a3457600080fd5b614a43878235602084016146f7565b91505092959194509250565b60008060408385031215614a6257600080fd5b8235614a6d8161454f565b91506020830135614a7d8161454f565b809150509250929050565b600181811c90821680614a9c57607f821691505b60208210811415614abd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614b2857614b28614af8565b500290565b60008219821115614b4057614b40614af8565b500190565b600082821015614b5757614b57614af8565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614b8157614b81614b5c565b500490565b600060208284031215614b9857600080fd5b5051919050565b6020808252602a908201527f416c6c20746f6b656e7320666f7220746869732050686173652061726520616c6040820152691c9958591e481cdbdb1960b21b606082015260800190565b600061ffff808316818516808303821115614c0657614c06614af8565b01949350505050565b6000600019821415614c2357614c23614af8565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b602080825260169082015275125b9d985b1a5908185b5bdd5b9d081d1bc81b5a5b9d60521b604082015260600190565b602080825260169082015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b604082015260600190565b6001600160a01b0383168152604060208201819052600090613b69908301846147b4565b600060208284031215614d4957600080fd5b81516136d981614590565b600061ffff83811690831681811015614d6f57614d6f614af8565b039392505050565b634e487b7160e01b600052603160045260246000fd5b60008351614d9f8184602088016144cb565b835190830190614c068183602088016144cb565b600061ffff80831681811415614dcb57614dcb614af8565b6001019392505050565b600060208284031215614de757600080fd5b81516136d98161454f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614e5357614e53614b5c565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614e8b908301846144f7565b9695505050505050565b600060208284031215614ea757600080fd5b81516136d98161449856fea2646970667358221220e909e9d0947381ab439caf964832a8a64ef084247a9991d149658cce9943e5b964736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.