NFT
Overview
TokenID
776
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:
TheOtherSide
Compiler Version
v0.8.0+commit.c7dfd78e
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.0; /**************************************** * @author: tos_nft * * @team: TheOtherSide * **************************************** * TOS-ERC721 provides low-gas * * mints + transfers * ****************************************/ import './Delegated.sol'; import './ERC721EnumerableT.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract TheOtherSide is ERC721EnumerableT, Delegated, ReentrancyGuard { using Strings for uint; /** * @dev Data structure of Moon */ struct Moon { address owner; bool celestialType; } /** * @notice Keep track of each user and their info */ struct Staker { mapping(address => uint256[]) stakedTokens; mapping(address => uint256) timeStaked; uint256 amountStaked; } // @notice mapping of a staker to its current properties mapping(address => Staker) public stakers; // Mapping from token ID to owner address mapping(uint256 => address) public originalStakeOwner; // @notice event emitted when a user has staked a token event Staked(address owner, uint256 tokenId); // @notice event emitted when a user has unstaked a token event Unstaked(address owner, uint256 tokenId); bool public revealed = false; string public notRevealedUri = "ipfs://QmXZGWhQp3CQc3svnDhUuf4yTtoQBuqumHeC33jmEG69Dd/hidden.json"; uint public MAX_SUPPLY = 8888; uint public PRICE = 0.15 ether; uint public MAX_QTY = 2; Moon[] public moons; bool public isWhitelistActive = false; bool public isMintActive = false; mapping(address => uint) public accessList; bool public isStakeActive = false; mapping(address => uint) private _balances; string private _tokenURIPrefix; string private _tokenURISuffix = ".json"; constructor() ERC721T("The Other Side", "TOS"){ } /** * @dev Returns the number of tokens in ``owners``'s account. */ function balanceOf(address account) public view override returns (uint) { require(account != address(0), "MOON: balance query for the zero address"); return _balances[account]; } /** * @dev Returns the bool of tokens if``owner``'s account contains the tokenIds. */ function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){ for(uint i; i < tokenIds.length; ++i ){ if( moons[ tokenIds[i] ].owner != account ) return false; } return true; } /** * @dev Returns the owner of the `tokenId` token. * */ function ownerOf( uint tokenId ) public override view returns( address owner_ ){ address owner = moons[tokenId].owner; require(owner != address(0), "MOON: query for nonexistent token"); return owner; } /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint index) external view override returns (uint) { require(index < totalSupply(), "MOON: global index out of bounds"); return index; } /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) { uint count; for( uint i; i < moons.length; ++i ){ if( owner == moons[i].owner ){ if( count == index ) return i; else ++count; } } revert("ERC721Enumerable: owner index out of bounds"); } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint tokenId) external view override returns (string memory) { require(_exists(tokenId), "MOON: URI query for nonexistent token"); if(revealed == false) { return notRevealedUri; } return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString(), _tokenURISuffix)); } /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() public view override returns( uint totalSupply_ ){ return moons.length; } /** * @dev Returns the list of tokenIds stored by the owner's account. */ function walletOfOwner( address account ) external view override returns( uint[] memory ){ uint quantity = balanceOf( account ); uint[] memory wallet = new uint[]( quantity ); for( uint i; i < quantity; ++i ){ wallet[i] = tokenOfOwnerByIndex( account, i ); } return wallet; } /** * @dev Owner sets the Staking contract address. */ function setRevealState(bool reveal_) external onlyDelegates { revealed = reveal_; } /** * @dev Owner sets the Staking contract address. */ function setUnrevealURI(string calldata notRevealUri_) external onlyDelegates { notRevealedUri = notRevealUri_; } /** * @dev mints token based on the number of qty specified. */ function mint( uint quantity ) external payable nonReentrant { require(isMintActive == true,"MOON: Minting needs to be enabled."); require( msg.value >= PRICE * quantity, "MOON: Ether sent is not correct" ); //If whitelist is active, people in WL can mint //based on the allowable qty limit set by owner/delegates. if( isWhitelistActive ){ require( accessList[ msg.sender ] >= quantity, "MOON: Account is less than the qty limit"); accessList[ msg.sender ] -= quantity; } else { //For public, MAX_QTY limit will be applied. //MAX_QTY is determined by the owner/delegates require(quantity <= MAX_QTY, "MOON:Quantity must be less than or equal MAX_QTY"); } uint supply = totalSupply(); require( supply + quantity <= MAX_SUPPLY, "MOON: Mint/order exceeds supply" ); for(uint i; i < quantity; ++i){ _mint( msg.sender, supply++ ); } } /** * @dev Returns the balance amount of the Contract address. */ function getBalanceofContract() external view returns (uint256) { return address(this).balance; } /** * @dev Withdraws an amount from the contract balance. */ function withdraw(uint256 amount_) public onlyOwner { require(address(this).balance >= amount_, "Address: insufficient balance"); // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= (bool os, ) = payable(owner()).call{value: amount_}(""); require(os); // ============================================================================= } /** * @dev Allows team to mint the token without restriction. */ function team_mint(uint[] calldata quantity, address[] calldata recipient) external onlyDelegates{ require(quantity.length == recipient.length, "MOON: Must provide equal quantities and recipients" ); uint totalQuantity; uint supply = totalSupply(); for(uint i; i < quantity.length; ++i){ totalQuantity += quantity[i]; } require( supply + totalQuantity < MAX_SUPPLY, "MOON: Mint/order exceeds supply" ); for(uint i; i < recipient.length; ++i){ for(uint j; j < quantity[i]; ++j){ uint tokenId = supply++; _mint( recipient[i], tokenId); } } } /** * @dev Owner/Delegate sets the Whitelist active flag. */ function setWhitelistAddress(address[] calldata accounts, uint allowed) external onlyDelegates{ for(uint i; i < accounts.length; ++i){ accessList[ accounts[i] ] = allowed; } } /** * @dev Owner/Delegate sets the Minting flag. */ function setMintingActive(bool mintActive_) external onlyDelegates { require( isMintActive != mintActive_ , "MOON: New value matches old" ); isMintActive = mintActive_; } /** * @dev Owner/Delegate sets the Whitelist active flag. */ function setWhitelistActive(bool isWhitelistActive_) external onlyDelegates{ require( isWhitelistActive != isWhitelistActive_ , "MOON: New value matches old" ); isWhitelistActive = isWhitelistActive_; } /** * @dev Owner/Delegates sets the BaseURI of IPFS. */ function setBaseURI(string calldata prefix, string calldata suffix) external onlyDelegates{ _tokenURIPrefix = prefix; _tokenURISuffix = suffix; } /** * @dev Owner/Delegate sets the Max supply of the token. */ function setMaxSupply(uint maxSupply) external onlyDelegates{ require( MAX_SUPPLY != maxSupply, "MOON: New value matches old" ); require( maxSupply >= totalSupply(), "MOON: Specified supply is lower than current balance" ); MAX_SUPPLY = maxSupply; } /** * @dev Owner/Delegate sets the Max. qty */ function setMaxQty(uint maxQty) external onlyDelegates{ require( MAX_QTY != maxQty, "MOON: New value matches old" ); MAX_QTY = maxQty; } /** * @dev Owner/Delegate sets the minting price. */ function setPrice(uint price) external onlyDelegates{ require( PRICE != price, "MOON: New value matches old" ); PRICE = price; } /** * @dev increment and decrement balances based on address from and to. */ function _beforeTokenTransfer(address from, address to) internal { if( from != address(0) ) --_balances[ from ]; if( to != address(0) ) ++_balances[ to ]; } /** * @dev returns bool if the tokenId exist. */ function _exists(uint tokenId) internal view override returns (bool) { return tokenId < moons.length && moons[tokenId].owner != address(0); } /** * @dev mints token based address and tokenId */ function _mint(address to, uint tokenId) internal { _beforeTokenTransfer(address(0), to); moons.push(Moon(to,false)); emit Transfer(address(0), to, tokenId); } /** * @dev update the moon type. */ function updateMoontype(bool moonType, uint[] calldata tokenIds ) external onlyDelegates { //update logic to update the MoonType for(uint i=0; i < tokenIds.length; i++) { require(_exists(tokenIds[i]), "MOON: TokenId not exist"); moons[tokenIds[i]].celestialType = moonType; } } /** * @dev returns the moontypes based on the tokenIds. */ function getMoonType(uint[] calldata tokenIds) external view returns(bool[] memory moonTypes) { // return moontype true/false bool[] memory _moonTypes = new bool[](tokenIds.length); for(uint i; i < tokenIds.length; i++) { _moonTypes[i] = moons[tokenIds[i]].celestialType; } return _moonTypes; } /** * @dev transfer tokenId to other address. */ function _transfer(address from, address to, uint tokenId) internal override { require(moons[tokenId].owner == from, "MOON: transfer of token that is not owned"); // Clear approvals from the previous owner _approve(address(0), tokenId); _beforeTokenTransfer(from, to); moons[tokenId].owner = to; emit Transfer(from, to, tokenId); } /** * @dev Get the tokens staked by a user */ function getStakedTokens(address _user) public view returns (uint256[] memory tokenIds) { Staker storage staker = stakers[_user]; return staker.stakedTokens[_user]; } /** * @dev Stake the NFT based on array of tokenIds */ function stake( uint[] calldata tokenIds ) external { require( isStakeActive, "MOON: Staking is not active" ); Moon storage moon; //Check if TokenIds exist and the moon owner is the msge sender for( uint i; i < tokenIds.length; ++i ){ require( _exists(tokenIds[i]), "MOON: Query for nonexistent token" ); moon = moons[ tokenIds[i] ]; require(moon.owner == msg.sender, "MOON: Staking token that is not owned"); _stake(msg.sender, tokenIds[i]); } } /** * @dev For internal access to stake the NFT based tokenId */ function _stake( address _user, uint256 _tokenId ) internal { Staker storage staker = stakers[_user]; staker.amountStaked += 1; staker.timeStaked[_user] = block.timestamp; staker.stakedTokens[_user].push(_tokenId); originalStakeOwner[_tokenId] = msg.sender; _transfer(_user,address(this), _tokenId); emit Staked(_user, _tokenId); } /** * @dev Unstake the token based on array of tokenIds */ function unStake( uint[] calldata tokenIds ) external { require( isStakeActive, "MOON: Staking is not active" ); //Check if TokenIds exist for( uint i; i < tokenIds.length; ++i ){ require( originalStakeOwner[tokenIds[i]] == msg.sender, "MOON._unstake: Sender must have staked tokenID"); _unstake(msg.sender,tokenIds[i]); } } /** * @dev For internal access to unstake the NFT based tokenId */ function _unstake( address _user, uint256 _tokenId) internal { Staker storage staker = stakers[_user]; _removeElement(_user, _tokenId); delete originalStakeOwner[_tokenId]; staker.timeStaked[_user] = block.timestamp; staker.amountStaked -= 1; if(staker.amountStaked == 0) { delete stakers[_user]; } _transfer(address(this),_user, _tokenId); emit Unstaked(_user, _tokenId); } /** * @dev Owner/Delegate sets the Whitelist active flag. */ function setStakeActive( bool isActive_ ) external onlyDelegates { require( isStakeActive != isActive_ , "MOON: New value matches old" ); isStakeActive = isActive_; } /** * @notice remove given elements from array * @dev usable only if _array contains unique elements only */ function _removeElement(address _user, uint256 _element) internal { Staker storage staker = stakers[_user]; for (uint256 i; i<staker.stakedTokens[_user].length; i++) { if (staker.stakedTokens[_user][i] == _element) { staker.stakedTokens[_user][i] = staker.stakedTokens[_user][staker.stakedTokens[_user].length - 1]; staker.stakedTokens[_user].pop(); break; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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: BSD-3-Clause pragma solidity ^0.8.0; /**************************************** * @author: squeebo_nft * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ import "./ERC721T.sol"; import "./IERC721Batch.sol"; import "./IERC721Enumerable.sol"; abstract contract ERC721EnumerableT is ERC721T, IERC721Batch, IERC721Enumerable { function balanceOf( address owner ) public view virtual override( IERC721, ERC721T ) returns( uint ); function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual override returns( bool ); function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721T) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint index) public view virtual override returns( uint tokenId ); function tokenByIndex(uint index) external view virtual override returns (uint) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return index; } function totalSupply() public view virtual override returns( uint ); function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{ for(uint i; i < tokenIds.length; ++i ){ safeTransferFrom( from, to, tokenIds[i], data ); } } function walletOfOwner( address account ) external view virtual override returns( uint[] memory ){ uint quantity = balanceOf( account ); uint[] memory wallet = new uint[]( quantity ); for( uint i; i < quantity; ++i ){ wallet[i] = tokenOfOwnerByIndex( account, i ); } return wallet; } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /*********************** * @author: squeebo_nft * ************************/ import "./Ownable.sol"; contract Delegated is Ownable { mapping(address => bool) internal _delegates; constructor(){ _delegates[owner()] = true; } modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns ( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; interface IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external; function walletOfOwner( address account ) external view returns( uint[] memory ); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /**************************************** * @author: squeebo_nft * * @team: GoldenX * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./ERC165.sol"; abstract contract ERC721T is Context, ERC165, IERC721, IERC721Metadata { using Address for address; string private _name; string private _symbol; mapping(uint => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) internal _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } //public function balanceOf(address owner) public view virtual override returns( uint ); function name() external view virtual override returns (string memory) { return _name; } function ownerOf(uint tokenId) public view virtual override returns (address); function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view virtual override returns (string memory) { return _symbol; } /* function totalSupply() public view virtual returns (uint) { return _owners.length - (_offset + _burned); } */ function approve(address to, uint tokenId) external virtual override { address owner = 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); } function getApproved(uint tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) external virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function transferFrom( address from, address to, uint 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); } function safeTransferFrom( address from, address to, uint tokenId ) external virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } //internal function _approve(address to, uint tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } function _checkOnERC721Received( address from, address to, uint 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; } } function _exists(uint tokenId) internal view virtual returns (bool); function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeTransfer( address from, address to, uint tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } function _transfer(address from, address to, uint tokenId) internal virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "./ERC165.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 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 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 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 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 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" ] } } }
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":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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"MAX_QTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accessList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"getBalanceofContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getMoonType","outputs":[{"internalType":"bool[]","name":"moonTypes","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getStakedTokens","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStakeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"moons","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"celestialType","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originalStakeOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxQty","type":"uint256"}],"name":"setMaxQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mintActive_","type":"bool"}],"name":"setMintingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"reveal_","type":"bool"}],"name":"setRevealState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive_","type":"bool"}],"name":"setStakeActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"notRevealUri_","type":"string"}],"name":"setUnrevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isWhitelistActive_","type":"bool"}],"name":"setWhitelistActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256","name":"allowed","type":"uint256"}],"name":"setWhitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"amountStaked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"team_mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"totalSupply_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"moonType","type":"bool"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"updateMoontype","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6009805460ff19169055610100604052604160808181529062003f1c60a03980516200003491600a91602090910190620001ca565b506122b8600b55670214e8348c4f0000600c556002600d55600f805461ffff191690556011805460ff1916905560408051808201909152600580825264173539b7b760d91b60209092019182526200008f91601491620001ca565b503480156200009d57600080fd5b50604080518082018252600e81526d546865204f74686572205369646560901b602080830191825283518085019094526003845262544f5360e81b908401528151919291620000ef91600091620001ca565b50805162000105906001906020840190620001ca565b505050620001226200011c6200016560201b60201c565b62000169565b60016005600062000132620001bb565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556001600655620002ad565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6004546001600160a01b031690565b828054620001d89062000270565b90600052602060002090601f016020900481019282620001fc576000855562000247565b82601f106200021757805160ff191683800117855562000247565b8280016001018555821562000247579182015b82811115620002475782518255916020019190600101906200022a565b506200025592915062000259565b5090565b5b808211156200025557600081556001016200025a565b6002810460018216806200028557607f821691505b60208210811415620002a757634e487b7160e01b600052602260045260246000fd5b50919050565b613c5f80620002bd6000396000f3fe6080604052600436106103505760003560e01c80636352211e116101c657806397bc411c116100f7578063b88d4fde11610095578063d01be3d01161006f578063d01be3d014610975578063d04ef28514610995578063e985e9c5146109b5578063f2fde38b146109d557610350565b8063b88d4fde14610915578063c3b754dc14610935578063c87b56dd1461095557610350565b8063aae4ff94116100d1578063aae4ff9414610888578063abe8d620146108b5578063b10dcc93146108d5578063b534a5c4146108f557610350565b806397bc411c14610835578063a0712d6814610855578063a22cb4651461086857610350565b806387a5b67c116101645780638da5cb5b1161013e5780638da5cb5b146107cb5780639168ae72146107e057806391b7f5ed1461080057806395d89b411461082057610350565b806387a5b67c146107765780638b2e9809146107965780638d859f3e146107b657610350565b80636f8b44b0116101a05780636f8b44b01461070157806370a0823114610721578063715018a6146107415780637c0ba74f1461075657610350565b80636352211e146106a157806363c28db1146106c15780636790a9de146106e157610350565b80632f745c59116102a05780634ee6bb231161023e578063524513d611610218578063524513d6146106425780635b92ac0d146106575780635ecc02221461066c5780635ff162ca1461068157610350565b80634ee6bb23146105df5780634f6ccce71461060d578063518302271461062d57610350565b8063438b63001161027a578063438b63001461055d57806345a15d641461058a5780634a994eef1461059f5780634d44660c146105bf57610350565b80632f745c591461050857806332cb6b0c1461052857806342842e0e1461053d57610350565b80630d84d1b11161030d5780631c96cae9116102e75780631c96cae91461049357806323b872dd146104a8578063272ff248146104c85780632e1a7d4d146104e857610350565b80630d84d1b1146104315780630fbf0a931461045157806318160ddd1461047157610350565b806301ffc9a71461035557806306fdde031461038b57806307779627146103ad578063081812fc146103cd578063081c8c44146103fa578063095ea7b31461040f575b600080fd5b34801561036157600080fd5b50610375610370366004612f92565b6109f5565b604051610382919061326e565b60405180910390f35b34801561039757600080fd5b506103a0610a22565b6040516103829190613279565b3480156103b957600080fd5b506103756103c8366004612bd0565b610ab4565b3480156103d957600080fd5b506103ed6103e8366004613059565b610b1d565b604051610382919061316b565b34801561040657600080fd5b506103a0610b60565b34801561041b57600080fd5b5061042f61042a366004612e28565b610bee565b005b34801561043d57600080fd5b506103ed61044c366004613059565b610c86565b34801561045d57600080fd5b5061042f61046c366004612e9a565b610ca1565b34801561047d57600080fd5b50610486610dde565b6040516103829190613aad565b34801561049f57600080fd5b50610486610de4565b3480156104b457600080fd5b5061042f6104c3366004612ca9565b610dea565b3480156104d457600080fd5b5061042f6104e3366004613059565b610e22565b3480156104f457600080fd5b5061042f610503366004613059565b610e78565b34801561051457600080fd5b50610486610523366004612e28565b610f4b565b34801561053457600080fd5b50610486610fe7565b34801561054957600080fd5b5061042f610558366004612ca9565b610fed565b34801561056957600080fd5b5061057d610578366004612bd0565b611008565b6040516103829190613236565b34801561059657600080fd5b506103756110c3565b3480156105ab57600080fd5b5061042f6105ba366004612dff565b6110cc565b3480156105cb57600080fd5b506103756105da366004612daf565b611136565b3480156105eb57600080fd5b506105ff6105fa366004613059565b6111d4565b6040516103829291906131bc565b34801561061957600080fd5b50610486610628366004613059565b611209565b34801561063957600080fd5b50610375611235565b34801561064e57600080fd5b5061037561123e565b34801561066357600080fd5b50610375611247565b34801561067857600080fd5b50610486611255565b34801561068d57600080fd5b5061042f61069c366004612f41565b611259565b3480156106ad57600080fd5b506103ed6106bc366004613059565b6112c4565b3480156106cd57600080fd5b5061057d6106dc366004612bd0565b61131c565b3480156106ed57600080fd5b5061042f6106fc366004612ffd565b61138f565b34801561070d57600080fd5b5061042f61071c366004613059565b6113de565b34801561072d57600080fd5b5061048661073c366004612bd0565b61145b565b34801561074d57600080fd5b5061042f61149f565b34801561076257600080fd5b5061042f610771366004612ed9565b6114ea565b34801561078257600080fd5b50610486610791366004612bd0565b611674565b3480156107a257600080fd5b5061042f6107b1366004612f41565b611686565b3480156107c257600080fd5b506104866116c8565b3480156107d757600080fd5b506103ed6116ce565b3480156107ec57600080fd5b506104866107fb366004612bd0565b6116dd565b34801561080c57600080fd5b5061042f61081b366004613059565b6116f2565b34801561082c57600080fd5b506103a0611748565b34801561084157600080fd5b5061042f610850366004612fca565b611757565b61042f610863366004613059565b611792565b34801561087457600080fd5b5061042f610883366004612dff565b61190c565b34801561089457600080fd5b506108a86108a3366004612e9a565b6119da565b60405161038291906131f0565b3480156108c157600080fd5b5061042f6108d0366004612f5b565b611adf565b3480156108e157600080fd5b5061042f6108f0366004612e9a565b611bd7565b34801561090157600080fd5b5061042f610910366004612c1c565b611ca9565b34801561092157600080fd5b5061042f610930366004612ce4565b611d2c565b34801561094157600080fd5b5061042f610950366004612f41565b611d65565b34801561096157600080fd5b506103a0610970366004613059565b611dd0565b34801561098157600080fd5b5061042f610990366004612e51565b611ec8565b3480156109a157600080fd5b5061042f6109b0366004612f41565b611f66565b3480156109c157600080fd5b506103756109d0366004612bea565b611fde565b3480156109e157600080fd5b5061042f6109f0366004612bd0565b61200c565b60006001600160e01b0319821663780e9d6360e01b1480610a1a5750610a1a8261207a565b90505b919050565b606060008054610a3190613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5d90613b67565b8015610aaa5780601f10610a7f57610100808354040283529160200191610aaa565b820191906000526020600020905b815481529060010190602001808311610a8d57829003601f168201915b5050505050905090565b6000610abe6120ba565b6001600160a01b0316610acf6116ce565b6001600160a01b031614610afe5760405162461bcd60e51b8152600401610af5906137e9565b60405180910390fd5b506001600160a01b031660009081526005602052604090205460ff1690565b6000610b28826120be565b610b445760405162461bcd60e51b8152600401610af590613712565b506000908152600260205260409020546001600160a01b031690565b600a8054610b6d90613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9990613b67565b8015610be65780601f10610bbb57610100808354040283529160200191610be6565b820191906000526020600020905b815481529060010190602001808311610bc957829003601f168201915b505050505081565b6000610bf9826112c4565b9050806001600160a01b0316836001600160a01b03161415610c2d5760405162461bcd60e51b8152600401610af59061381e565b806001600160a01b0316610c3f6120ba565b6001600160a01b03161480610c5b5750610c5b816109d06120ba565b610c775760405162461bcd60e51b8152600401610af590613673565b610c818383612116565b505050565b6008602052600090815260409020546001600160a01b031681565b60115460ff16610cc35760405162461bcd60e51b8152600401610af590613532565b6000805b82811015610dd857610cfe848483818110610cf257634e487b7160e01b600052603260045260246000fd5b905060200201356120be565b610d1a5760405162461bcd60e51b8152600401610af590613971565b600e848483818110610d3c57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110610d6157634e487b7160e01b600052603260045260246000fd5b600091825260209091200180549092506001600160a01b03163314610d985760405162461bcd60e51b8152600401610af5906132da565b610dc833858584818110610dbc57634e487b7160e01b600052603260045260246000fd5b90506020020135612184565b610dd181613ba2565b9050610cc7565b50505050565b600e5490565b600d5481565b610dfb610df56120ba565b82612252565b610e175760405162461bcd60e51b8152600401610af590613920565b610c818383836122d7565b3360009081526005602052604090205460ff16610e515760405162461bcd60e51b8152600401610af590613367565b80600d541415610e735760405162461bcd60e51b8152600401610af590613a76565b600d55565b610e806120ba565b6001600160a01b0316610e916116ce565b6001600160a01b031614610eb75760405162461bcd60e51b8152600401610af5906137e9565b80471015610ed75760405162461bcd60e51b8152600401610af5906135bb565b6000610ee16116ce565b6001600160a01b031682604051610ef790613168565b60006040518083038185875af1925050503d8060008114610f34576040519150601f19603f3d011682016040523d82523d6000602084013e610f39565b606091505b5050905080610f4757600080fd5b5050565b60008060005b600e54811015610fc857600e8181548110610f7c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610fb85783821415610fac579150610fe19050565b610fb582613ba2565b91505b610fc181613ba2565b9050610f51565b5060405162461bcd60e51b8152600401610af590613391565b92915050565b600b5481565b610c8183838360405180602001604052806000815250611d2c565b606060006110158361145b565b90506000816001600160401b0381111561103f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611068578160200160208202803683370190505b50905060005b828110156110bb576110808582610f4b565b8282815181106110a057634e487b7160e01b600052603260045260246000fd5b60209081029190910101526110b481613ba2565b905061106e565b509392505050565b60115460ff1681565b6110d46120ba565b6001600160a01b03166110e56116ce565b6001600160a01b03161461110b5760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000805b828110156111c757846001600160a01b0316600e85858481811061116e57634e487b7160e01b600052603260045260246000fd5b905060200201358154811061119357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316146111b75760009150506111cd565b6111c081613ba2565b905061113a565b50600190505b9392505050565b600e81815481106111e457600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900460ff1682565b6000611213610dde565b82106112315760405162461bcd60e51b8152600401610af59061363e565b5090565b60095460ff1681565b600f5460ff1681565b600f54610100900460ff1681565b4790565b3360009081526005602052604090205460ff166112885760405162461bcd60e51b8152600401610af590613367565b60115460ff16151581151514156112b15760405162461bcd60e51b8152600401610af590613a76565b6011805460ff1916911515919091179055565b600080600e83815481106112e857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316905080610a1a5760405162461bcd60e51b8152600401610af5906138a8565b6001600160a01b03811660009081526007602090815260408083208083529281902080548251818502810185019093528083526060949383018282801561138257602002820191906000526020600020905b81548152602001906001019080831161136e575b5050505050915050919050565b3360009081526005602052604090205460ff166113be5760405162461bcd60e51b8152600401610af590613367565b6113ca60138585612a92565b506113d760148383612a92565b5050505050565b3360009081526005602052604090205460ff1661140d5760405162461bcd60e51b8152600401610af590613367565b80600b54141561142f5760405162461bcd60e51b8152600401610af590613a76565b611437610dde565b8110156114565760405162461bcd60e51b8152600401610af59061375e565b600b55565b60006001600160a01b0382166114835760405162461bcd60e51b8152600401610af59061331f565b506001600160a01b031660009081526012602052604090205490565b6114a76120ba565b6001600160a01b03166114b86116ce565b6001600160a01b0316146114de5760405162461bcd60e51b8152600401610af5906137e9565b6114e860006123c5565b565b3360009081526005602052604090205460ff166115195760405162461bcd60e51b8152600401610af590613367565b8281146115385760405162461bcd60e51b8152600401610af590613569565b600080611543610dde565b905060005b858110156115945786868281811061157057634e487b7160e01b600052603260045260246000fd5b90506020020135836115829190613ac2565b925061158d81613ba2565b9050611548565b50600b546115a28383613ac2565b106115bf5760405162461bcd60e51b8152600401610af5906134c4565b60005b8381101561166b5760005b8787838181106115ed57634e487b7160e01b600052603260045260246000fd5b9050602002013581101561165a5760008361160781613ba2565b9450905061164987878581811061162e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116439190612bd0565b82612417565b5061165381613ba2565b90506115cd565b5061166481613ba2565b90506115c2565b50505050505050565b60106020526000908152604090205481565b3360009081526005602052604090205460ff166116b55760405162461bcd60e51b8152600401610af590613367565b6009805460ff1916911515919091179055565b600c5481565b6004546001600160a01b031690565b60076020526000908152604090206002015481565b3360009081526005602052604090205460ff166117215760405162461bcd60e51b8152600401610af590613367565b80600c5414156117435760405162461bcd60e51b8152600401610af590613a76565b600c55565b606060018054610a3190613b67565b3360009081526005602052604090205460ff166117865760405162461bcd60e51b8152600401610af590613367565b610c81600a8383612a92565b600260065414156117b55760405162461bcd60e51b8152600401610af590613a3f565b6002600655600f5460ff6101009091041615156001146117e75760405162461bcd60e51b8152600401610af5906136d0565b80600c546117f59190613aee565b3410156118145760405162461bcd60e51b8152600401610af5906137b2565b600f5460ff1615611878573360009081526010602052604090205481111561184e5760405162461bcd60e51b8152600401610af5906139f7565b336000908152601060205260408120805483929061186d908490613b0d565b9091555061189a9050565b600d5481111561189a5760405162461bcd60e51b8152600401610af59061342e565b60006118a4610dde565b600b549091506118b48383613ac2565b11156118d25760405162461bcd60e51b8152600401610af5906134c4565b60005b82811015611902576118f233836118eb81613ba2565b9450612417565b6118fb81613ba2565b90506118d5565b5050600160065550565b6119146120ba565b6001600160a01b0316826001600160a01b031614156119455760405162461bcd60e51b8152600401610af5906134fb565b80600360006119526120ba565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556119966120ba565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119ce919061326e565b60405180910390a35050565b60606000826001600160401b03811115611a0457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a2d578160200160208202803683370190505b50905060005b838110156110bb57600e858583818110611a5d57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110611a8257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160149054906101000a900460ff16828281518110611abd57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280611ad781613ba2565b915050611a33565b3360009081526005602052604090205460ff16611b0e5760405162461bcd60e51b8152600401610af590613367565b60005b81811015610dd857611b3c838383818110610cf257634e487b7160e01b600052603260045260246000fd5b611b585760405162461bcd60e51b8152600401610af5906138e9565b83600e848484818110611b7b57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110611ba057634e487b7160e01b600052603260045260246000fd5b60009182526020909120018054911515600160a01b0260ff60a01b1990921691909117905580611bcf81613ba2565b915050611b11565b60115460ff16611bf95760405162461bcd60e51b8152600401610af590613532565b60005b81811015610c81573360086000858585818110611c2957634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020546001600160a01b031614611c695760405162461bcd60e51b8152600401610af59061328c565b611c9933848484818110611c8d57634e487b7160e01b600052603260045260246000fd5b905060200201356124d4565b611ca281613ba2565b9050611bfc565b60005b8381101561166b57611d1c8787878785818110611cd957634e487b7160e01b600052603260045260246000fd5b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d2c92505050565b611d2581613ba2565b9050611cac565b611d3d611d376120ba565b83612252565b611d595760405162461bcd60e51b8152600401610af590613920565b610dd8848484846125aa565b3360009081526005602052604090205460ff16611d945760405162461bcd60e51b8152600401610af590613367565b600f5460ff1615158115151415611dbd5760405162461bcd60e51b8152600401610af590613a76565b600f805460ff1916911515919091179055565b6060611ddb826120be565b611df75760405162461bcd60e51b8152600401610af5906139b2565b60095460ff16611e9357600a8054611e0e90613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3a90613b67565b8015611e875780601f10611e5c57610100808354040283529160200191611e87565b820191906000526020600020905b815481529060010190602001808311611e6a57829003601f168201915b50505050509050610a1d565b6013611e9e836125dd565b6014604051602001611eb293929190613135565b6040516020818303038152906040529050919050565b3360009081526005602052604090205460ff16611ef75760405162461bcd60e51b8152600401610af590613367565b60005b82811015610dd8578160106000868685818110611f2757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611f3c9190612bd0565b6001600160a01b03168152602081019190915260400160002055611f5f81613ba2565b9050611efa565b3360009081526005602052604090205460ff16611f955760405162461bcd60e51b8152600401610af590613367565b600f5460ff6101009091041615158115151415611fc45760405162461bcd60e51b8152600401610af590613a76565b600f80549115156101000261ff0019909216919091179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6120146120ba565b6001600160a01b03166120256116ce565b6001600160a01b03161461204b5760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b0381166000908152600560205260409020805460ff19166001179055612077816126f7565b50565b60006001600160e01b031982166380ac58cd60e01b14806120ab57506001600160e01b03198216635b5e139f60e01b145b80610a1a5750610a1a82612765565b3390565b600e5460009082108015610a1a575060006001600160a01b0316600e83815481106120f957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260026020526040902080546001600160a01b0319166001600160a01b038416908117909155819061214b826112c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216600090815260076020526040812060028101805491926001926121b2908490613ac2565b90915550506001600160a01b038316600090815260018083016020908152604080842042905584825280842080549384018155845281842090920185905584835260089052902080546001600160a01b031916331790556122148330846122d7565b7f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d83836040516122459291906131d7565b60405180910390a1505050565b600061225d826120be565b6122795760405162461bcd60e51b8152600401610af5906135f2565b6000612284836112c4565b9050806001600160a01b0316846001600160a01b031614806122bf5750836001600160a01b03166122b484610b1d565b6001600160a01b0316145b806122cf57506122cf8185611fde565b949350505050565b826001600160a01b0316600e828154811061230257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316146123345760405162461bcd60e51b8152600401610af59061385f565b61233f600082612116565b612349838361277e565b81600e828154811061236b57634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61242260008361277e565b6040805180820182526001600160a01b03808516808352600060208401818152600e805460018101825590835294517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd909501805491511515600160a01b0260ff60a01b19969095166001600160a01b031990921691909117949094169290921790925591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b03821660009081526007602052604090206124f683836127f5565b600082815260086020908152604080832080546001600160a01b03191690556001600160a01b03861683526001848101909252822042905560028301805491929091612543908490613b0d565b9091555050600281015461256e576001600160a01b0383166000908152600760205260408120600201555b6125793084846122d7565b7f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7583836040516122459291906131d7565b6125b58484846122d7565b6125c184848484612971565b610dd85760405162461bcd60e51b8152600401610af5906133dc565b60608161260257506040805180820190915260018152600360fc1b6020820152610a1d565b8160005b811561262c578061261681613ba2565b91506126259050600a83613ada565b9150612606565b6000816001600160401b0381111561265457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561267e576020820181803683370190505b5090505b84156122cf57612693600183613b0d565b91506126a0600a86613bbd565b6126ab906030613ac2565b60f81b8183815181106126ce57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506126f0600a86613ada565b9450612682565b6126ff6120ba565b6001600160a01b03166127106116ce565b6001600160a01b0316146127365760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b03811661275c5760405162461bcd60e51b8152600401610af59061347e565b612077816123c5565b6001600160e01b031981166301ffc9a760e01b14919050565b6001600160a01b038216156127b8576001600160a01b038216600090815260126020526040812080549091906127b390613b50565b909155505b6001600160a01b03811615610f47576001600160a01b038116600090815260126020526040812080549091906127ed90613ba2565b909155505050565b6001600160a01b0382166000908152600760205260408120905b6001600160a01b038416600090815260208390526040902054811015610dd8576001600160a01b038416600090815260208390526040902080548491908390811061286a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154141561295f576001600160a01b038416600090815260208390526040902080546128a190600190613b0d565b815481106128bf57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b038716835290849052604090912080548390811061290257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b0386168152908390526040902080548061294457634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055610dd8565b8061296981613ba2565b91505061280f565b6000612985846001600160a01b0316612a8c565b15612a8157836001600160a01b031663150b7a026129a16120ba565b8786866040518563ffffffff1660e01b81526004016129c3949392919061317f565b602060405180830381600087803b1580156129dd57600080fd5b505af1925050508015612a0d575060408051601f3d908101601f19168201909252612a0a91810190612fae565b60015b612a67573d808015612a3b576040519150601f19603f3d011682016040523d82523d6000602084013e612a40565b606091505b508051612a5f5760405162461bcd60e51b8152600401610af5906133dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122cf565b506001949350505050565b3b151590565b828054612a9e90613b67565b90600052602060002090601f016020900481019282612ac05760008555612b06565b82601f10612ad95782800160ff19823516178555612b06565b82800160010185558215612b06579182015b82811115612b06578235825591602001919060010190612aeb565b506112319291505b808211156112315760008155600101612b0e565b80356001600160a01b0381168114610a1d57600080fd5b60008083601f840112612b4a578081fd5b5081356001600160401b03811115612b60578182fd5b6020830191508360208083028501011115612b7a57600080fd5b9250929050565b80358015158114610a1d57600080fd5b60008083601f840112612ba2578182fd5b5081356001600160401b03811115612bb8578182fd5b602083019150836020828501011115612b7a57600080fd5b600060208284031215612be1578081fd5b6111cd82612b22565b60008060408385031215612bfc578081fd5b612c0583612b22565b9150612c1360208401612b22565b90509250929050565b60008060008060008060808789031215612c34578182fd5b612c3d87612b22565b9550612c4b60208801612b22565b945060408701356001600160401b0380821115612c66578384fd5b612c728a838b01612b39565b90965094506060890135915080821115612c8a578384fd5b50612c9789828a01612b91565b979a9699509497509295939492505050565b600080600060608486031215612cbd578283fd5b612cc684612b22565b9250612cd460208501612b22565b9150604084013590509250925092565b60008060008060808587031215612cf9578384fd5b612d0285612b22565b93506020612d11818701612b22565b93506040860135925060608601356001600160401b0380821115612d33578384fd5b818801915088601f830112612d46578384fd5b813581811115612d5857612d58613bfd565b604051601f8201601f1916810185018381118282101715612d7b57612d7b613bfd565b60405281815283820185018b1015612d91578586fd5b81858501868301379081019093019390935250939692955090935050565b600080600060408486031215612dc3578283fd5b612dcc84612b22565b925060208401356001600160401b03811115612de6578283fd5b612df286828701612b39565b9497909650939450505050565b60008060408385031215612e11578182fd5b612e1a83612b22565b9150612c1360208401612b81565b60008060408385031215612e3a578182fd5b612e4383612b22565b946020939093013593505050565b600080600060408486031215612e65578283fd5b83356001600160401b03811115612e7a578384fd5b612e8686828701612b39565b909790965060209590950135949350505050565b60008060208385031215612eac578182fd5b82356001600160401b03811115612ec1578283fd5b612ecd85828601612b39565b90969095509350505050565b60008060008060408587031215612eee578182fd5b84356001600160401b0380821115612f04578384fd5b612f1088838901612b39565b90965094506020870135915080821115612f28578384fd5b50612f3587828801612b39565b95989497509550505050565b600060208284031215612f52578081fd5b6111cd82612b81565b600080600060408486031215612f6f578081fd5b612f7884612b81565b925060208401356001600160401b03811115612de6578182fd5b600060208284031215612fa3578081fd5b81356111cd81613c13565b600060208284031215612fbf578081fd5b81516111cd81613c13565b60008060208385031215612fdc578182fd5b82356001600160401b03811115612ff1578283fd5b612ecd85828601612b91565b60008060008060408587031215613012578182fd5b84356001600160401b0380821115613028578384fd5b61303488838901612b91565b9096509450602087013591508082111561304c578384fd5b50612f3587828801612b91565b60006020828403121561306a578081fd5b5035919050565b60008151808452613089816020860160208601613b24565b601f01601f19169290920160200192915050565b8054600090600281046001808316806130b757607f831692505b60208084108214156130d757634e487b7160e01b86526022600452602486fd5b8180156130eb57600181146130fc57613129565b60ff19861689528489019650613129565b61310588613ab6565b60005b868110156131215781548b820152908501908301613108565b505084890196505b50505050505092915050565b6000613141828661309d565b8451613151818360208901613b24565b61315d8183018661309d565b979650505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131b290830184613071565b9695505050505050565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b8181101561322a57835115158352928401929184019160010161320c565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561322a57835183529284019291840191600101613252565b901515815260200190565b6000602082526111cd6020830184613071565b6020808252602e908201527f4d4f4f4e2e5f756e7374616b653a2053656e646572206d75737420686176652060408201526d1cdd185ad959081d1bdad95b925160921b606082015260800190565b60208082526025908201527f4d4f4f4e3a205374616b696e6720746f6b656e2074686174206973206e6f74206040820152641bdddb995960da1b606082015260800190565b60208082526028908201527f4d4f4f4e3a2062616c616e636520717565727920666f7220746865207a65726f604082015267206164647265737360c01b606082015260800190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d4f4f4e3a5175616e74697479206d757374206265206c657373207468616e2060408201526f6f7220657175616c204d41585f51545960801b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601f908201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c7900604082015260600190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f4d4f4f4e3a205374616b696e67206973206e6f74206163746976650000000000604082015260600190565b60208082526032908201527f4d4f4f4e3a204d7573742070726f7669646520657175616c207175616e74697460408201527169657320616e6420726563697069656e747360701b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4d4f4f4e3a20676c6f62616c20696e646578206f7574206f6620626f756e6473604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526022908201527f4d4f4f4e3a204d696e74696e67206e6565647320746f20626520656e61626c65604082015261321760f11b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526034908201527f4d4f4f4e3a2053706563696669656420737570706c79206973206c6f776572206040820152737468616e2063757272656e742062616c616e636560601b606082015260800190565b6020808252601f908201527f4d4f4f4e3a2045746865722073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526029908201527f4d4f4f4e3a207472616e73666572206f6620746f6b656e2074686174206973206040820152681b9bdd081bdddb995960ba1b606082015260800190565b60208082526021908201527f4d4f4f4e3a20717565727920666f72206e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526017908201527f4d4f4f4e3a20546f6b656e4964206e6f74206578697374000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f4d4f4f4e3a20517565727920666f72206e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526025908201527f4d4f4f4e3a2055524920717565727920666f72206e6f6e6578697374656e74206040820152643a37b5b2b760d91b606082015260800190565b60208082526028908201527f4d4f4f4e3a204163636f756e74206973206c657373207468616e2074686520716040820152671d1e481b1a5b5a5d60c21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c640000000000604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613ad557613ad5613bd1565b500190565b600082613ae957613ae9613be7565b500490565b6000816000190483118215151615613b0857613b08613bd1565b500290565b600082821015613b1f57613b1f613bd1565b500390565b60005b83811015613b3f578181015183820152602001613b27565b83811115610dd85750506000910152565b600081613b5f57613b5f613bd1565b506000190190565b600281046001821680613b7b57607f821691505b60208210811415613b9c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613bb657613bb6613bd1565b5060010190565b600082613bcc57613bcc613be7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461207757600080fdfea26469706673582212206fa65af9bf12d8cd7b3b28fb35f7a1398e27fcc6e72cde44f0147cfcee12d7d064736f6c63430008000033697066733a2f2f516d585a4757685170334351633373766e4468557566347954746f51427571756d48654333336a6d4547363944642f68696464656e2e6a736f6e
Deployed Bytecode
0x6080604052600436106103505760003560e01c80636352211e116101c657806397bc411c116100f7578063b88d4fde11610095578063d01be3d01161006f578063d01be3d014610975578063d04ef28514610995578063e985e9c5146109b5578063f2fde38b146109d557610350565b8063b88d4fde14610915578063c3b754dc14610935578063c87b56dd1461095557610350565b8063aae4ff94116100d1578063aae4ff9414610888578063abe8d620146108b5578063b10dcc93146108d5578063b534a5c4146108f557610350565b806397bc411c14610835578063a0712d6814610855578063a22cb4651461086857610350565b806387a5b67c116101645780638da5cb5b1161013e5780638da5cb5b146107cb5780639168ae72146107e057806391b7f5ed1461080057806395d89b411461082057610350565b806387a5b67c146107765780638b2e9809146107965780638d859f3e146107b657610350565b80636f8b44b0116101a05780636f8b44b01461070157806370a0823114610721578063715018a6146107415780637c0ba74f1461075657610350565b80636352211e146106a157806363c28db1146106c15780636790a9de146106e157610350565b80632f745c59116102a05780634ee6bb231161023e578063524513d611610218578063524513d6146106425780635b92ac0d146106575780635ecc02221461066c5780635ff162ca1461068157610350565b80634ee6bb23146105df5780634f6ccce71461060d578063518302271461062d57610350565b8063438b63001161027a578063438b63001461055d57806345a15d641461058a5780634a994eef1461059f5780634d44660c146105bf57610350565b80632f745c591461050857806332cb6b0c1461052857806342842e0e1461053d57610350565b80630d84d1b11161030d5780631c96cae9116102e75780631c96cae91461049357806323b872dd146104a8578063272ff248146104c85780632e1a7d4d146104e857610350565b80630d84d1b1146104315780630fbf0a931461045157806318160ddd1461047157610350565b806301ffc9a71461035557806306fdde031461038b57806307779627146103ad578063081812fc146103cd578063081c8c44146103fa578063095ea7b31461040f575b600080fd5b34801561036157600080fd5b50610375610370366004612f92565b6109f5565b604051610382919061326e565b60405180910390f35b34801561039757600080fd5b506103a0610a22565b6040516103829190613279565b3480156103b957600080fd5b506103756103c8366004612bd0565b610ab4565b3480156103d957600080fd5b506103ed6103e8366004613059565b610b1d565b604051610382919061316b565b34801561040657600080fd5b506103a0610b60565b34801561041b57600080fd5b5061042f61042a366004612e28565b610bee565b005b34801561043d57600080fd5b506103ed61044c366004613059565b610c86565b34801561045d57600080fd5b5061042f61046c366004612e9a565b610ca1565b34801561047d57600080fd5b50610486610dde565b6040516103829190613aad565b34801561049f57600080fd5b50610486610de4565b3480156104b457600080fd5b5061042f6104c3366004612ca9565b610dea565b3480156104d457600080fd5b5061042f6104e3366004613059565b610e22565b3480156104f457600080fd5b5061042f610503366004613059565b610e78565b34801561051457600080fd5b50610486610523366004612e28565b610f4b565b34801561053457600080fd5b50610486610fe7565b34801561054957600080fd5b5061042f610558366004612ca9565b610fed565b34801561056957600080fd5b5061057d610578366004612bd0565b611008565b6040516103829190613236565b34801561059657600080fd5b506103756110c3565b3480156105ab57600080fd5b5061042f6105ba366004612dff565b6110cc565b3480156105cb57600080fd5b506103756105da366004612daf565b611136565b3480156105eb57600080fd5b506105ff6105fa366004613059565b6111d4565b6040516103829291906131bc565b34801561061957600080fd5b50610486610628366004613059565b611209565b34801561063957600080fd5b50610375611235565b34801561064e57600080fd5b5061037561123e565b34801561066357600080fd5b50610375611247565b34801561067857600080fd5b50610486611255565b34801561068d57600080fd5b5061042f61069c366004612f41565b611259565b3480156106ad57600080fd5b506103ed6106bc366004613059565b6112c4565b3480156106cd57600080fd5b5061057d6106dc366004612bd0565b61131c565b3480156106ed57600080fd5b5061042f6106fc366004612ffd565b61138f565b34801561070d57600080fd5b5061042f61071c366004613059565b6113de565b34801561072d57600080fd5b5061048661073c366004612bd0565b61145b565b34801561074d57600080fd5b5061042f61149f565b34801561076257600080fd5b5061042f610771366004612ed9565b6114ea565b34801561078257600080fd5b50610486610791366004612bd0565b611674565b3480156107a257600080fd5b5061042f6107b1366004612f41565b611686565b3480156107c257600080fd5b506104866116c8565b3480156107d757600080fd5b506103ed6116ce565b3480156107ec57600080fd5b506104866107fb366004612bd0565b6116dd565b34801561080c57600080fd5b5061042f61081b366004613059565b6116f2565b34801561082c57600080fd5b506103a0611748565b34801561084157600080fd5b5061042f610850366004612fca565b611757565b61042f610863366004613059565b611792565b34801561087457600080fd5b5061042f610883366004612dff565b61190c565b34801561089457600080fd5b506108a86108a3366004612e9a565b6119da565b60405161038291906131f0565b3480156108c157600080fd5b5061042f6108d0366004612f5b565b611adf565b3480156108e157600080fd5b5061042f6108f0366004612e9a565b611bd7565b34801561090157600080fd5b5061042f610910366004612c1c565b611ca9565b34801561092157600080fd5b5061042f610930366004612ce4565b611d2c565b34801561094157600080fd5b5061042f610950366004612f41565b611d65565b34801561096157600080fd5b506103a0610970366004613059565b611dd0565b34801561098157600080fd5b5061042f610990366004612e51565b611ec8565b3480156109a157600080fd5b5061042f6109b0366004612f41565b611f66565b3480156109c157600080fd5b506103756109d0366004612bea565b611fde565b3480156109e157600080fd5b5061042f6109f0366004612bd0565b61200c565b60006001600160e01b0319821663780e9d6360e01b1480610a1a5750610a1a8261207a565b90505b919050565b606060008054610a3190613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5d90613b67565b8015610aaa5780601f10610a7f57610100808354040283529160200191610aaa565b820191906000526020600020905b815481529060010190602001808311610a8d57829003601f168201915b5050505050905090565b6000610abe6120ba565b6001600160a01b0316610acf6116ce565b6001600160a01b031614610afe5760405162461bcd60e51b8152600401610af5906137e9565b60405180910390fd5b506001600160a01b031660009081526005602052604090205460ff1690565b6000610b28826120be565b610b445760405162461bcd60e51b8152600401610af590613712565b506000908152600260205260409020546001600160a01b031690565b600a8054610b6d90613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9990613b67565b8015610be65780601f10610bbb57610100808354040283529160200191610be6565b820191906000526020600020905b815481529060010190602001808311610bc957829003601f168201915b505050505081565b6000610bf9826112c4565b9050806001600160a01b0316836001600160a01b03161415610c2d5760405162461bcd60e51b8152600401610af59061381e565b806001600160a01b0316610c3f6120ba565b6001600160a01b03161480610c5b5750610c5b816109d06120ba565b610c775760405162461bcd60e51b8152600401610af590613673565b610c818383612116565b505050565b6008602052600090815260409020546001600160a01b031681565b60115460ff16610cc35760405162461bcd60e51b8152600401610af590613532565b6000805b82811015610dd857610cfe848483818110610cf257634e487b7160e01b600052603260045260246000fd5b905060200201356120be565b610d1a5760405162461bcd60e51b8152600401610af590613971565b600e848483818110610d3c57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110610d6157634e487b7160e01b600052603260045260246000fd5b600091825260209091200180549092506001600160a01b03163314610d985760405162461bcd60e51b8152600401610af5906132da565b610dc833858584818110610dbc57634e487b7160e01b600052603260045260246000fd5b90506020020135612184565b610dd181613ba2565b9050610cc7565b50505050565b600e5490565b600d5481565b610dfb610df56120ba565b82612252565b610e175760405162461bcd60e51b8152600401610af590613920565b610c818383836122d7565b3360009081526005602052604090205460ff16610e515760405162461bcd60e51b8152600401610af590613367565b80600d541415610e735760405162461bcd60e51b8152600401610af590613a76565b600d55565b610e806120ba565b6001600160a01b0316610e916116ce565b6001600160a01b031614610eb75760405162461bcd60e51b8152600401610af5906137e9565b80471015610ed75760405162461bcd60e51b8152600401610af5906135bb565b6000610ee16116ce565b6001600160a01b031682604051610ef790613168565b60006040518083038185875af1925050503d8060008114610f34576040519150601f19603f3d011682016040523d82523d6000602084013e610f39565b606091505b5050905080610f4757600080fd5b5050565b60008060005b600e54811015610fc857600e8181548110610f7c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610fb85783821415610fac579150610fe19050565b610fb582613ba2565b91505b610fc181613ba2565b9050610f51565b5060405162461bcd60e51b8152600401610af590613391565b92915050565b600b5481565b610c8183838360405180602001604052806000815250611d2c565b606060006110158361145b565b90506000816001600160401b0381111561103f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611068578160200160208202803683370190505b50905060005b828110156110bb576110808582610f4b565b8282815181106110a057634e487b7160e01b600052603260045260246000fd5b60209081029190910101526110b481613ba2565b905061106e565b509392505050565b60115460ff1681565b6110d46120ba565b6001600160a01b03166110e56116ce565b6001600160a01b03161461110b5760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000805b828110156111c757846001600160a01b0316600e85858481811061116e57634e487b7160e01b600052603260045260246000fd5b905060200201358154811061119357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316146111b75760009150506111cd565b6111c081613ba2565b905061113a565b50600190505b9392505050565b600e81815481106111e457600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900460ff1682565b6000611213610dde565b82106112315760405162461bcd60e51b8152600401610af59061363e565b5090565b60095460ff1681565b600f5460ff1681565b600f54610100900460ff1681565b4790565b3360009081526005602052604090205460ff166112885760405162461bcd60e51b8152600401610af590613367565b60115460ff16151581151514156112b15760405162461bcd60e51b8152600401610af590613a76565b6011805460ff1916911515919091179055565b600080600e83815481106112e857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316905080610a1a5760405162461bcd60e51b8152600401610af5906138a8565b6001600160a01b03811660009081526007602090815260408083208083529281902080548251818502810185019093528083526060949383018282801561138257602002820191906000526020600020905b81548152602001906001019080831161136e575b5050505050915050919050565b3360009081526005602052604090205460ff166113be5760405162461bcd60e51b8152600401610af590613367565b6113ca60138585612a92565b506113d760148383612a92565b5050505050565b3360009081526005602052604090205460ff1661140d5760405162461bcd60e51b8152600401610af590613367565b80600b54141561142f5760405162461bcd60e51b8152600401610af590613a76565b611437610dde565b8110156114565760405162461bcd60e51b8152600401610af59061375e565b600b55565b60006001600160a01b0382166114835760405162461bcd60e51b8152600401610af59061331f565b506001600160a01b031660009081526012602052604090205490565b6114a76120ba565b6001600160a01b03166114b86116ce565b6001600160a01b0316146114de5760405162461bcd60e51b8152600401610af5906137e9565b6114e860006123c5565b565b3360009081526005602052604090205460ff166115195760405162461bcd60e51b8152600401610af590613367565b8281146115385760405162461bcd60e51b8152600401610af590613569565b600080611543610dde565b905060005b858110156115945786868281811061157057634e487b7160e01b600052603260045260246000fd5b90506020020135836115829190613ac2565b925061158d81613ba2565b9050611548565b50600b546115a28383613ac2565b106115bf5760405162461bcd60e51b8152600401610af5906134c4565b60005b8381101561166b5760005b8787838181106115ed57634e487b7160e01b600052603260045260246000fd5b9050602002013581101561165a5760008361160781613ba2565b9450905061164987878581811061162e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116439190612bd0565b82612417565b5061165381613ba2565b90506115cd565b5061166481613ba2565b90506115c2565b50505050505050565b60106020526000908152604090205481565b3360009081526005602052604090205460ff166116b55760405162461bcd60e51b8152600401610af590613367565b6009805460ff1916911515919091179055565b600c5481565b6004546001600160a01b031690565b60076020526000908152604090206002015481565b3360009081526005602052604090205460ff166117215760405162461bcd60e51b8152600401610af590613367565b80600c5414156117435760405162461bcd60e51b8152600401610af590613a76565b600c55565b606060018054610a3190613b67565b3360009081526005602052604090205460ff166117865760405162461bcd60e51b8152600401610af590613367565b610c81600a8383612a92565b600260065414156117b55760405162461bcd60e51b8152600401610af590613a3f565b6002600655600f5460ff6101009091041615156001146117e75760405162461bcd60e51b8152600401610af5906136d0565b80600c546117f59190613aee565b3410156118145760405162461bcd60e51b8152600401610af5906137b2565b600f5460ff1615611878573360009081526010602052604090205481111561184e5760405162461bcd60e51b8152600401610af5906139f7565b336000908152601060205260408120805483929061186d908490613b0d565b9091555061189a9050565b600d5481111561189a5760405162461bcd60e51b8152600401610af59061342e565b60006118a4610dde565b600b549091506118b48383613ac2565b11156118d25760405162461bcd60e51b8152600401610af5906134c4565b60005b82811015611902576118f233836118eb81613ba2565b9450612417565b6118fb81613ba2565b90506118d5565b5050600160065550565b6119146120ba565b6001600160a01b0316826001600160a01b031614156119455760405162461bcd60e51b8152600401610af5906134fb565b80600360006119526120ba565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556119966120ba565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119ce919061326e565b60405180910390a35050565b60606000826001600160401b03811115611a0457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611a2d578160200160208202803683370190505b50905060005b838110156110bb57600e858583818110611a5d57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110611a8257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160149054906101000a900460ff16828281518110611abd57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280611ad781613ba2565b915050611a33565b3360009081526005602052604090205460ff16611b0e5760405162461bcd60e51b8152600401610af590613367565b60005b81811015610dd857611b3c838383818110610cf257634e487b7160e01b600052603260045260246000fd5b611b585760405162461bcd60e51b8152600401610af5906138e9565b83600e848484818110611b7b57634e487b7160e01b600052603260045260246000fd5b9050602002013581548110611ba057634e487b7160e01b600052603260045260246000fd5b60009182526020909120018054911515600160a01b0260ff60a01b1990921691909117905580611bcf81613ba2565b915050611b11565b60115460ff16611bf95760405162461bcd60e51b8152600401610af590613532565b60005b81811015610c81573360086000858585818110611c2957634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020546001600160a01b031614611c695760405162461bcd60e51b8152600401610af59061328c565b611c9933848484818110611c8d57634e487b7160e01b600052603260045260246000fd5b905060200201356124d4565b611ca281613ba2565b9050611bfc565b60005b8381101561166b57611d1c8787878785818110611cd957634e487b7160e01b600052603260045260246000fd5b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d2c92505050565b611d2581613ba2565b9050611cac565b611d3d611d376120ba565b83612252565b611d595760405162461bcd60e51b8152600401610af590613920565b610dd8848484846125aa565b3360009081526005602052604090205460ff16611d945760405162461bcd60e51b8152600401610af590613367565b600f5460ff1615158115151415611dbd5760405162461bcd60e51b8152600401610af590613a76565b600f805460ff1916911515919091179055565b6060611ddb826120be565b611df75760405162461bcd60e51b8152600401610af5906139b2565b60095460ff16611e9357600a8054611e0e90613b67565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3a90613b67565b8015611e875780601f10611e5c57610100808354040283529160200191611e87565b820191906000526020600020905b815481529060010190602001808311611e6a57829003601f168201915b50505050509050610a1d565b6013611e9e836125dd565b6014604051602001611eb293929190613135565b6040516020818303038152906040529050919050565b3360009081526005602052604090205460ff16611ef75760405162461bcd60e51b8152600401610af590613367565b60005b82811015610dd8578160106000868685818110611f2757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611f3c9190612bd0565b6001600160a01b03168152602081019190915260400160002055611f5f81613ba2565b9050611efa565b3360009081526005602052604090205460ff16611f955760405162461bcd60e51b8152600401610af590613367565b600f5460ff6101009091041615158115151415611fc45760405162461bcd60e51b8152600401610af590613a76565b600f80549115156101000261ff0019909216919091179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6120146120ba565b6001600160a01b03166120256116ce565b6001600160a01b03161461204b5760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b0381166000908152600560205260409020805460ff19166001179055612077816126f7565b50565b60006001600160e01b031982166380ac58cd60e01b14806120ab57506001600160e01b03198216635b5e139f60e01b145b80610a1a5750610a1a82612765565b3390565b600e5460009082108015610a1a575060006001600160a01b0316600e83815481106120f957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b600081815260026020526040902080546001600160a01b0319166001600160a01b038416908117909155819061214b826112c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216600090815260076020526040812060028101805491926001926121b2908490613ac2565b90915550506001600160a01b038316600090815260018083016020908152604080842042905584825280842080549384018155845281842090920185905584835260089052902080546001600160a01b031916331790556122148330846122d7565b7f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d83836040516122459291906131d7565b60405180910390a1505050565b600061225d826120be565b6122795760405162461bcd60e51b8152600401610af5906135f2565b6000612284836112c4565b9050806001600160a01b0316846001600160a01b031614806122bf5750836001600160a01b03166122b484610b1d565b6001600160a01b0316145b806122cf57506122cf8185611fde565b949350505050565b826001600160a01b0316600e828154811061230257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316146123345760405162461bcd60e51b8152600401610af59061385f565b61233f600082612116565b612349838361277e565b81600e828154811061236b57634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61242260008361277e565b6040805180820182526001600160a01b03808516808352600060208401818152600e805460018101825590835294517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd909501805491511515600160a01b0260ff60a01b19969095166001600160a01b031990921691909117949094169290921790925591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b03821660009081526007602052604090206124f683836127f5565b600082815260086020908152604080832080546001600160a01b03191690556001600160a01b03861683526001848101909252822042905560028301805491929091612543908490613b0d565b9091555050600281015461256e576001600160a01b0383166000908152600760205260408120600201555b6125793084846122d7565b7f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f7583836040516122459291906131d7565b6125b58484846122d7565b6125c184848484612971565b610dd85760405162461bcd60e51b8152600401610af5906133dc565b60608161260257506040805180820190915260018152600360fc1b6020820152610a1d565b8160005b811561262c578061261681613ba2565b91506126259050600a83613ada565b9150612606565b6000816001600160401b0381111561265457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561267e576020820181803683370190505b5090505b84156122cf57612693600183613b0d565b91506126a0600a86613bbd565b6126ab906030613ac2565b60f81b8183815181106126ce57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506126f0600a86613ada565b9450612682565b6126ff6120ba565b6001600160a01b03166127106116ce565b6001600160a01b0316146127365760405162461bcd60e51b8152600401610af5906137e9565b6001600160a01b03811661275c5760405162461bcd60e51b8152600401610af59061347e565b612077816123c5565b6001600160e01b031981166301ffc9a760e01b14919050565b6001600160a01b038216156127b8576001600160a01b038216600090815260126020526040812080549091906127b390613b50565b909155505b6001600160a01b03811615610f47576001600160a01b038116600090815260126020526040812080549091906127ed90613ba2565b909155505050565b6001600160a01b0382166000908152600760205260408120905b6001600160a01b038416600090815260208390526040902054811015610dd8576001600160a01b038416600090815260208390526040902080548491908390811061286a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154141561295f576001600160a01b038416600090815260208390526040902080546128a190600190613b0d565b815481106128bf57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b038716835290849052604090912080548390811061290257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b0386168152908390526040902080548061294457634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055610dd8565b8061296981613ba2565b91505061280f565b6000612985846001600160a01b0316612a8c565b15612a8157836001600160a01b031663150b7a026129a16120ba565b8786866040518563ffffffff1660e01b81526004016129c3949392919061317f565b602060405180830381600087803b1580156129dd57600080fd5b505af1925050508015612a0d575060408051601f3d908101601f19168201909252612a0a91810190612fae565b60015b612a67573d808015612a3b576040519150601f19603f3d011682016040523d82523d6000602084013e612a40565b606091505b508051612a5f5760405162461bcd60e51b8152600401610af5906133dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122cf565b506001949350505050565b3b151590565b828054612a9e90613b67565b90600052602060002090601f016020900481019282612ac05760008555612b06565b82601f10612ad95782800160ff19823516178555612b06565b82800160010185558215612b06579182015b82811115612b06578235825591602001919060010190612aeb565b506112319291505b808211156112315760008155600101612b0e565b80356001600160a01b0381168114610a1d57600080fd5b60008083601f840112612b4a578081fd5b5081356001600160401b03811115612b60578182fd5b6020830191508360208083028501011115612b7a57600080fd5b9250929050565b80358015158114610a1d57600080fd5b60008083601f840112612ba2578182fd5b5081356001600160401b03811115612bb8578182fd5b602083019150836020828501011115612b7a57600080fd5b600060208284031215612be1578081fd5b6111cd82612b22565b60008060408385031215612bfc578081fd5b612c0583612b22565b9150612c1360208401612b22565b90509250929050565b60008060008060008060808789031215612c34578182fd5b612c3d87612b22565b9550612c4b60208801612b22565b945060408701356001600160401b0380821115612c66578384fd5b612c728a838b01612b39565b90965094506060890135915080821115612c8a578384fd5b50612c9789828a01612b91565b979a9699509497509295939492505050565b600080600060608486031215612cbd578283fd5b612cc684612b22565b9250612cd460208501612b22565b9150604084013590509250925092565b60008060008060808587031215612cf9578384fd5b612d0285612b22565b93506020612d11818701612b22565b93506040860135925060608601356001600160401b0380821115612d33578384fd5b818801915088601f830112612d46578384fd5b813581811115612d5857612d58613bfd565b604051601f8201601f1916810185018381118282101715612d7b57612d7b613bfd565b60405281815283820185018b1015612d91578586fd5b81858501868301379081019093019390935250939692955090935050565b600080600060408486031215612dc3578283fd5b612dcc84612b22565b925060208401356001600160401b03811115612de6578283fd5b612df286828701612b39565b9497909650939450505050565b60008060408385031215612e11578182fd5b612e1a83612b22565b9150612c1360208401612b81565b60008060408385031215612e3a578182fd5b612e4383612b22565b946020939093013593505050565b600080600060408486031215612e65578283fd5b83356001600160401b03811115612e7a578384fd5b612e8686828701612b39565b909790965060209590950135949350505050565b60008060208385031215612eac578182fd5b82356001600160401b03811115612ec1578283fd5b612ecd85828601612b39565b90969095509350505050565b60008060008060408587031215612eee578182fd5b84356001600160401b0380821115612f04578384fd5b612f1088838901612b39565b90965094506020870135915080821115612f28578384fd5b50612f3587828801612b39565b95989497509550505050565b600060208284031215612f52578081fd5b6111cd82612b81565b600080600060408486031215612f6f578081fd5b612f7884612b81565b925060208401356001600160401b03811115612de6578182fd5b600060208284031215612fa3578081fd5b81356111cd81613c13565b600060208284031215612fbf578081fd5b81516111cd81613c13565b60008060208385031215612fdc578182fd5b82356001600160401b03811115612ff1578283fd5b612ecd85828601612b91565b60008060008060408587031215613012578182fd5b84356001600160401b0380821115613028578384fd5b61303488838901612b91565b9096509450602087013591508082111561304c578384fd5b50612f3587828801612b91565b60006020828403121561306a578081fd5b5035919050565b60008151808452613089816020860160208601613b24565b601f01601f19169290920160200192915050565b8054600090600281046001808316806130b757607f831692505b60208084108214156130d757634e487b7160e01b86526022600452602486fd5b8180156130eb57600181146130fc57613129565b60ff19861689528489019650613129565b61310588613ab6565b60005b868110156131215781548b820152908501908301613108565b505084890196505b50505050505092915050565b6000613141828661309d565b8451613151818360208901613b24565b61315d8183018661309d565b979650505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131b290830184613071565b9695505050505050565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b8181101561322a57835115158352928401929184019160010161320c565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561322a57835183529284019291840191600101613252565b901515815260200190565b6000602082526111cd6020830184613071565b6020808252602e908201527f4d4f4f4e2e5f756e7374616b653a2053656e646572206d75737420686176652060408201526d1cdd185ad959081d1bdad95b925160921b606082015260800190565b60208082526025908201527f4d4f4f4e3a205374616b696e6720746f6b656e2074686174206973206e6f74206040820152641bdddb995960da1b606082015260800190565b60208082526028908201527f4d4f4f4e3a2062616c616e636520717565727920666f7220746865207a65726f604082015267206164647265737360c01b606082015260800190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d4f4f4e3a5175616e74697479206d757374206265206c657373207468616e2060408201526f6f7220657175616c204d41585f51545960801b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601f908201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c7900604082015260600190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f4d4f4f4e3a205374616b696e67206973206e6f74206163746976650000000000604082015260600190565b60208082526032908201527f4d4f4f4e3a204d7573742070726f7669646520657175616c207175616e74697460408201527169657320616e6420726563697069656e747360701b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4d4f4f4e3a20676c6f62616c20696e646578206f7574206f6620626f756e6473604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526022908201527f4d4f4f4e3a204d696e74696e67206e6565647320746f20626520656e61626c65604082015261321760f11b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526034908201527f4d4f4f4e3a2053706563696669656420737570706c79206973206c6f776572206040820152737468616e2063757272656e742062616c616e636560601b606082015260800190565b6020808252601f908201527f4d4f4f4e3a2045746865722073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526029908201527f4d4f4f4e3a207472616e73666572206f6620746f6b656e2074686174206973206040820152681b9bdd081bdddb995960ba1b606082015260800190565b60208082526021908201527f4d4f4f4e3a20717565727920666f72206e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526017908201527f4d4f4f4e3a20546f6b656e4964206e6f74206578697374000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f4d4f4f4e3a20517565727920666f72206e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526025908201527f4d4f4f4e3a2055524920717565727920666f72206e6f6e6578697374656e74206040820152643a37b5b2b760d91b606082015260800190565b60208082526028908201527f4d4f4f4e3a204163636f756e74206973206c657373207468616e2074686520716040820152671d1e481b1a5b5a5d60c21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c640000000000604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613ad557613ad5613bd1565b500190565b600082613ae957613ae9613be7565b500490565b6000816000190483118215151615613b0857613b08613bd1565b500290565b600082821015613b1f57613b1f613bd1565b500390565b60005b83811015613b3f578181015183820152602001613b27565b83811115610dd85750506000910152565b600081613b5f57613b5f613bd1565b506000190190565b600281046001821680613b7b57607f821691505b60208210811415613b9c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613bb657613bb6613bd1565b5060010190565b600082613bcc57613bcc613be7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461207757600080fdfea26469706673582212206fa65af9bf12d8cd7b3b28fb35f7a1398e27fcc6e72cde44f0147cfcee12d7d064736f6c63430008000033
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.