Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
3,900 GEN0IDENT
Holders
1,584
Market
Volume (24H)
0.0035 ETH
Min Price (24H)
$9.19 @ 0.003500 ETH
Max Price (24H)
$9.19 @ 0.003500 ETH
Other Info
Token Contract
Balance
1 GEN0IDENTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Gridcraft_Genesis_Identities
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721P.sol"; contract Gridcraft_Genesis_Identities is ERC721P, Ownable { string private baseTokenURI = "ipfs://QmQpQbrTPomXFq2s54NLwDzfAXbhW4chq9r8VpW9E8JDTm/"; string public provenance = ""; uint256 public startingIndexBlock; uint256 public startingIndex; mapping(uint16 => uint256) locks; uint256 public revealDate = 4796668800; uint256 public maxSupply = 9800; uint256 public reserved = 300; address public mintCoordinator; uint256 public breedTime = 7862400; // 13 weeks bool breedingActive = false; event Staking(bool state, uint256 startTime, uint16 tokenId, address owner); event Breeding(uint256 releaseTime, uint16 tokenId1, uint16 tokenId2, address owner); modifier onlyCoordinator { require (_msgSender() == mintCoordinator, "Not allowed"); _; } constructor() ERC721P("Gridcraft Network Genesis Identities", "GEN0IDENT") {} function saleMint(address _recepient, uint256 _amount, bool _startStaking) external onlyCoordinator { mint(_amount, _recepient, _startStaking); } function ownerMint(address _recepient, uint256 _amount, bool _startStaking) external onlyOwner { require(totalSupply() + _amount <= maxSupply, "Exceeds max supply"); require(_amount <= reserved, "Amount exceeds reserve"); unchecked { reserved -= _amount; } mint(_amount, _recepient, _startStaking); } function mint(uint256 _amount, address _recepient, bool _startStaking) internal { for (uint i; i<_amount; ){ _safeMint(_recepient); if (_startStaking){ _stake(uint16(totalSupply())); } unchecked { ++i; } } if (startingIndexBlock == 0 && (totalSupply() == maxSupply || block.timestamp > revealDate)) { _setStartingIndex(); } } function stake(uint16[] memory _tokenIds) external { for (uint i; i < _tokenIds.length ;){ require(ownerOf(_tokenIds[i]) == msg.sender, "Not owned or already staked"); _stake(_tokenIds[i]); unchecked { ++i; } } } function stakeAll() external { uint16[] memory tokensOwned = tokensOfOwner(msg.sender); for (uint i; i < tokensOwned.length ; ){ if (ownerOf(tokensOwned[i]) == msg.sender) { _stake(tokensOwned[i]); } unchecked { ++i; } } } function unstake(uint16[] memory _tokenIds) external { require(isTrueOwnerOfTokens(msg.sender, _tokenIds), "Not owned"); for (uint i; i < _tokenIds.length ;){ require(isTokenStaked(_tokenIds[i]), "Not staked"); require(locks[_tokenIds[i]] < block.timestamp, "Token still breeding"); _unstake(msg.sender, _tokenIds[i]); unchecked { ++i; } } } function unstakeAll() external { uint16[] memory tokensOwned = tokensOfOwner(msg.sender); for (uint i; i < tokensOwned.length ; ){ if (ownerOf(tokensOwned[i]) != msg.sender && locks[tokensOwned[i]] < block.timestamp) { _unstake(msg.sender, tokensOwned[i]); } unchecked { ++i; } } } function breed(uint16[] memory _tokenIds) external { require(breedingActive, "Breeding not active"); require(isTrueOwnerOfTokens(msg.sender, _tokenIds), "Not owned"); require(_tokenIds.length % 2 == 0, "Need even number of parents"); uint256 curTime = block.timestamp; for (uint i; i < _tokenIds.length ;){ require(_tokenIds[i] != _tokenIds[i+1], "Duplicate token Id"); require(locks[_tokenIds[i]] < curTime && locks[_tokenIds[i+1]] < curTime, "Already breeding"); if (!isTokenStaked(_tokenIds[i])){ _stake(_tokenIds[i]); } if (!isTokenStaked(_tokenIds[i+1])){ _stake(_tokenIds[i+1]); } unchecked{ locks[_tokenIds[i]] = curTime + breedTime; locks[_tokenIds[i+1]] = curTime + breedTime; } emit Breeding(locks[_tokenIds[i]], _tokenIds[i], _tokenIds[i+1], msg.sender); unchecked { i += 2; } } } // internal function _stake(uint16 _tokenId) internal { _owners[_tokenId] = address(this); emit Transfer(ownerOf(_tokenId), address(this), _tokenId); } function _unstake(address _realOwner, uint16 _tokenId) internal { _owners[_tokenId] = _realOwner; emit Transfer(address(this), _realOwner, _tokenId); } function _setStartingIndex() internal { require(startingIndexBlock == 0, "Starting index already set"); startingIndexBlock = block.number - 1; startingIndex = uint(blockhash(startingIndexBlock)) % maxSupply; } // getters function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function baseURI() public view returns (string memory) { return _baseURI(); } function isTokenStaked(uint16 _tokenId) public view returns (bool) { return ownerOf(_tokenId) == address(this); } function isTokenLocked(uint16 _tokenId) external view returns (bool) { return locks[_tokenId] > block.timestamp; } function tokenLockEnd(uint16 _tokenId) external view returns (uint256) { return locks[_tokenId]; } function stakedNumberByOwner(address _user) public view returns (uint16 stakedCount) { uint16[] memory tokensOwned = tokensOfOwner(_user); for (uint i; i < tokensOwned.length ;) { if (isTokenStaked(tokensOwned[i])){ ++stakedCount; } unchecked { ++i; } } } function unstakedNumberByOwner(address _user) public view returns (uint16 unstakedCount) { uint16[] memory tokensOwned = tokensOfOwner(_user); for (uint i; i < tokensOwned.length ;) { if (!isTokenStaked(tokensOwned[i])){ ++unstakedCount; } unchecked { ++i; } } } function stakedIdsByOwner(address _user) external view returns (uint16[] memory) { uint16[] memory tokensOwned = tokensOfOwner(_user); uint stakedCount = stakedNumberByOwner(_user); uint16[] memory tokensStaked = new uint16[](stakedCount); uint idx; for (uint i; i < tokensOwned.length ;) { if (isTokenStaked(tokensOwned[i])){ tokensStaked[idx] = tokensOwned[i]; ++idx; } unchecked { ++i; } } return tokensStaked; } function unstakedIdsByOwner(address _user) external view returns (uint16[] memory) { uint16[] memory tokensOwned = tokensOfOwner(_user); uint unstakedCount = unstakedNumberByOwner(_user); uint16[] memory tokensUnstaked = new uint16[](unstakedCount); uint idx; for (uint i; i < tokensOwned.length ;) { if (!isTokenStaked(tokensOwned[i])){ tokensUnstaked[idx] = tokensOwned[i]; ++idx; } unchecked { ++i; } } return tokensUnstaked; } function isTrueOwnerOfTokens(address _user, uint16[] memory _tokenIds) public view returns (bool) { bool found; uint16[] memory tokensOwned = tokensOfOwner(_user); for (uint i; i < _tokenIds.length ; ) { found = false; for (uint j; j < tokensOwned.length ; ) { if (_tokenIds[i] == tokensOwned[j]){ found = true; break; } unchecked { ++j; } } if (!found) return false; unchecked { ++i; } } return true; } function remaining() public view returns (uint256 nftsRemaining){ unchecked{ nftsRemaining = maxSupply - totalSupply() - reserved; } } // Owner setters function setBreedTime(uint256 _newBreedTime) external onlyOwner { breedTime = _newBreedTime; } function setCoordinator(address _newCoordinator) external onlyOwner { mintCoordinator = _newCoordinator; } function setBaseURI(string calldata _newBaseTokenURI) external onlyOwner { baseTokenURI = _newBaseTokenURI; } function setRevealDate(uint256 _newReveal) external onlyOwner { revealDate = _newReveal; } function setProvenanceHash(string memory provenanceHash) external onlyOwner { provenance = provenanceHash; } function toggleBreeding() external onlyOwner { breedingActive = !breedingActive; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721P is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; uint16 currentIndex; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) public _owners; // Mapping owner address to tokens mapping(address => uint16[]) public _addressTokens; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _addressTokens[owner].length; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index > 0 && index <= totalSupply(), "ERC721: global index out of bounds"); return index; } /** * @dev not part of standard IERC721Enumerable * This function returns all the tokens of a certain owner as an array * and is very cheap to use on-chain */ function tokensOfOwner(address owner) public view returns (uint16[] memory) { return _addressTokens[owner]; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721: owner index out of bounds"); return _addressTokens[owner][index]; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public 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); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to) internal virtual { _safeMint(to, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, bytes memory _data ) internal virtual { _mint(to); require( _checkOnERC721Received(address(0), to, currentIndex, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); unchecked { ++currentIndex; } _beforeTokenTransfer(address(0), to, currentIndex); _addressTokens[to].push(currentIndex); _owners[currentIndex] = to; emit Transfer(address(0), to, currentIndex); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _findAndDelete(from,uint16(tokenId)); _addressTokens[to].push(uint16(tokenId)); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _findAndDelete(address owner, uint16 tokenId) internal { uint256 length = _addressTokens[owner].length; if (length == 1){ _addressTokens[owner].pop(); return; } unchecked { --length; } for (uint i; i < length; ){ if (_addressTokens[owner][i] == tokenId){ _addressTokens[owner][i] = _addressTokens[owner][length]; _addressTokens[owner].pop(); return; } unchecked { ++i; } } _addressTokens[owner].pop(); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"releaseTime","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"tokenId1","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"tokenId2","type":"uint16"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Breeding","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":"bool","name":"state","type":"bool"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Staking","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_addressTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_tokenIds","type":"uint16[]"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"breedTime","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"isTokenLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"isTokenStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint16[]","name":"_tokenIds","type":"uint16[]"}],"name":"isTrueOwnerOfTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCoordinator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recepient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_startStaking","type":"bool"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remaining","outputs":[{"internalType":"uint256","name":"nftsRemaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_recepient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_startStaking","type":"bool"}],"name":"saleMint","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":"_newBaseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newBreedTime","type":"uint256"}],"name":"setBreedTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newCoordinator","type":"address"}],"name":"setCoordinator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newReveal","type":"uint256"}],"name":"setRevealDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_tokenIds","type":"uint16[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"stakedIdsByOwner","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"stakedNumberByOwner","outputs":[{"internalType":"uint16","name":"stakedCount","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexBlock","outputs":[{"internalType":"uint256","name":"","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":[],"name":"toggleBreeding","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":"uint16","name":"_tokenId","type":"uint16"}],"name":"tokenLockEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_tokenIds","type":"uint16[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"unstakedIdsByOwner","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"unstakedNumberByOwner","outputs":[{"internalType":"uint16","name":"unstakedCount","type":"uint16"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405260366080818152906200380160a0398051620000299160089160209091019062000162565b506040805160208101918290526000908190526200004a9160099162000162565b5064011de75b80600d55612648600e5561012c600f556277f8806011556012805460ff191690553480156200007e57600080fd5b50604051806060016040528060248152602001620037dd602491396040518060400160405280600981526020016811d1538c125111539560ba1b8152508160019080519060200190620000d392919062000162565b508051620000e990600290602084019062000162565b50505062000106620001006200010c60201b60201c565b62000110565b62000245565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001709062000208565b90600052602060002090601f016020900481019282620001945760008555620001df565b82601f10620001af57805160ff1916838001178555620001df565b82800160010185558215620001df579182015b82811115620001df578251825591602001919060010190620001c2565b50620001ed929150620001f1565b5090565b5b80821115620001ed5760008155600101620001f2565b600181811c908216806200021d57607f821691505b602082108114156200023f57634e487b7160e01b600052602260045260246000fd5b50919050565b61358880620002556000396000f3fe608060405234801561001057600080fd5b50600436106103575760003560e01c8063732b1df5116101c8578063b88d4fde11610104578063e36d6498116100a2578063f2fde38b1161007c578063f2fde38b14610735578063f3169b8614610748578063f3daaa6614610750578063fe60d12c1461076357600080fd5b8063e36d6498146106cc578063e7867e26146106d5578063e985e9c5146106f957600080fd5b8063cb774d47116100de578063cb774d4714610694578063ce18a0531461069d578063d5abeb01146106b0578063dd5129cf146106b957600080fd5b8063b88d4fde1461065b578063be5ff0e11461066e578063c87b56dd1461068157600080fd5b806391d65b4d11610171578063992924a61161014b578063992924a6146105e65780639eb462661461060f5780639fe43c0f14610635578063a22cb4651461064857600080fd5b806391d65b4d146105b857806395d89b41146105cb57806397671130146105d357600080fd5b80638da5cb5b116101a25780638da5cb5b1461058c5780638dcb40611461059d5780638ea98117146105a557600080fd5b8063732b1df5146105405780638462151c14610566578063880b1d041461057957600080fd5b806335322f371161029757806355f804b3116102405780636b7450d51161021a5780636b7450d5146104fd5780636c0360eb1461051d57806370a0823114610525578063715018a61461053857600080fd5b806355f804b3146104c457806357c1af93146104d75780636352211e146104ea57600080fd5b806342842e0e1161027157806342842e0e146104965780634f6ccce7146104a957806355234ec0146104bc57600080fd5b806335322f3714610472578063362096e21461047a578063393f1df61461048357600080fd5b806310969523116103045780632380f302116102de5780632380f3021461042657806323b872dd146104395780632bdcfe721461044c5780632f745c591461045f57600080fd5b806310969523146103f457806318160ddd146104075780631e08a9e41461041d57600080fd5b8063095ea7b311610335578063095ea7b3146103c45780630c88b731146103d95780630f7309e8146103ec57600080fd5b806301ffc9a71461035c57806306fdde0314610384578063081812fc14610399575b600080fd5b61036f61036a366004613187565b61076c565b60405190151581526020015b60405180910390f35b61038c610809565b60405161037b919061338f565b6103ac6103a7366004613297565b61089b565b6040516001600160a01b03909116815260200161037b565b6103d76103d23660046130ec565b610935565b005b6103d76103e7366004613297565b610a67565b61038c610ac6565b6103d7610402366004613233565b610b54565b60005461ffff165b60405190815260200161037b565b61040f600d5481565b6103d7610434366004613297565b610bc5565b6103d7610447366004612fbc565b610c24565b6103d761045a366004613152565b610cab565b61040f61046d3660046130ec565b610d67565b6103d7610e3a565b61040f60115481565b61036f610491366004613074565b610eec565b6103d76104a4366004612fbc565b610f91565b61040f6104b7366004613297565b610fac565b61040f611039565b6103d76104d23660046131c1565b611055565b6103d76104e5366004613152565b6110bb565b6103ac6104f8366004613297565b611218565b61051061050b366004612f6e565b6112a3565b60405161037b9190613347565b61038c61138f565b61040f610533366004612f6e565b61139e565b6103d7611438565b61055361054e366004612f6e565b61149e565b60405161ffff909116815260200161037b565b610510610574366004612f6e565b6114ed565b61036f61058736600461327c565b611581565b6007546001600160a01b03166103ac565b6103d76115a1565b6103d76105b3366004612f6e565b611605565b6103d76105c6366004613116565b611681565b61038c6116ef565b6105536105e1366004612f6e565b6116fe565b6103ac6105f4366004613297565b6003602052600090815260409020546001600160a01b031681565b61036f61061d36600461327c565b61ffff166000908152600c6020526040902054421090565b6103d7610643366004613116565b611745565b6103d76106563660046130c2565b61186e565b6103d7610669366004612ff8565b611933565b61051061067c366004612f6e565b6119c1565b61038c61068f366004613297565b611aa1565b61040f600b5481565b6105536106ab3660046130ec565b611b8a565b61040f600e5481565b6103d76106c7366004613152565b611bd1565b61040f600a5481565b61040f6106e336600461327c565b61ffff166000908152600c602052604090205490565b61036f610707366004612f89565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103d7610743366004612f6e565b611ff5565b6103d76120d7565b6010546103ac906001600160a01b031681565b61040f600f5481565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107cf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461081890613442565b80601f016020809104026020016040519081016040528092919081815260200182805461084490613442565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061094082611218565b9050806001600160a01b0316836001600160a01b031614156109ca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610910565b336001600160a01b03821614806109e657506109e68133610707565b610a585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610910565b610a628383612145565b505050565b6007546001600160a01b03163314610ac15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b600d55565b60098054610ad390613442565b80601f0160208091040260200160405190810160405280929190818152602001828054610aff90613442565b8015610b4c5780601f10610b2157610100808354040283529160200191610b4c565b820191906000526020600020905b815481529060010190602001808311610b2f57829003601f168201915b505050505081565b6007546001600160a01b03163314610bae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b8051610bc1906009906020840190612d42565b5050565b6007546001600160a01b03163314610c1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b601155565b610c2e33826121b3565b610ca05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610910565b610a628383836122aa565b60005b8151811015610bc157336001600160a01b0316610ce7838381518110610cd657610cd6613510565b602002602001015161ffff16611218565b6001600160a01b031614610d3d5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74206f776e6564206f7220616c7265616479207374616b656400000000006044820152606401610910565b610d5f828281518110610d5257610d52613510565b6020026020010151612463565b600101610cae565b6000610d728361139e565b8210610de65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a206f776e657220696e646578206f7574206f6620626f756e6460448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610910565b6001600160a01b0383166000908152600460205260409020805483908110610e1057610e10613510565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905092915050565b6000610e45336114ed565b905060005b8151811015610bc157336001600160a01b0316610e72838381518110610cd657610cd6613510565b6001600160a01b031614158015610ebc575042600c6000848481518110610e9b57610e9b613510565b602002602001015161ffff1661ffff16815260200190815260200160002054105b15610ee457610ee433838381518110610ed757610ed7613510565b60200260200101516124ca565b600101610e4a565b6000806000610efa856114ed565b905060005b8451811015610f85576000925060005b8251811015610f6b57828181518110610f2a57610f2a613510565b602002602001015161ffff16868381518110610f4857610f48613510565b602002602001015161ffff161415610f635760019350610f6b565b600101610f0f565b5082610f7d5760009350505050610803565b600101610eff565b50600195945050505050565b610a6283838360405180602001604052806000815250611933565b60008082118015610fc3575060005461ffff168211155b6110355760405162461bcd60e51b815260206004820152602260248201527f4552433732313a20676c6f62616c20696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610910565b5090565b6000600f5461104b60005461ffff1690565b600e540303905090565b6007546001600160a01b031633146110af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b610a6260088383612dc2565b6110c53382610eec565b6110fd5760405162461bcd60e51b8152602060048201526009602482015268139bdd081bdddb995960ba1b6044820152606401610910565b60005b8151811015610bc15761112b82828151811061111e5761111e613510565b6020026020010151611581565b6111775760405162461bcd60e51b815260206004820152600a60248201527f4e6f74207374616b6564000000000000000000000000000000000000000000006044820152606401610910565b42600c600084848151811061118e5761118e613510565b602002602001015161ffff1661ffff16815260200190815260200160002054106111fa5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e207374696c6c206272656564696e670000000000000000000000006044820152606401610910565b61121033838381518110610ed757610ed7613510565b600101611100565b6000818152600360205260408120546001600160a01b0316806108035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610910565b606060006112b0836114ed565b905060006112bd8461149e565b61ffff16905060008167ffffffffffffffff8111156112de576112de613526565b604051908082528060200260200182016040528015611307578160200160208202803683370190505b5090506000805b84518110156113845761132c85828151811061111e5761111e613510565b1561137c5784818151811061134357611343613510565b602002602001015183838151811061135d5761135d613510565b61ffff909216602092830291909101909101526113798261349f565b91505b60010161130e565b509095945050505050565b6060611399612528565b905090565b60006001600160a01b03821661141c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610910565b506001600160a01b031660009081526004602052604090205490565b6007546001600160a01b031633146114925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b61149c6000612537565b565b6000806114aa836114ed565b905060005b81518110156114e6576114cd82828151811061111e5761111e613510565b156114de576114db8361347d565b92505b6001016114af565b5050919050565b6001600160a01b03811660009081526004602090815260409182902080548351818402810184019094528084526060939283018282801561157557602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161153c5790505b50505050509050919050565b60003061159161ffff8416611218565b6001600160a01b03161492915050565b60006115ac336114ed565b905060005b8151811015610bc157336001600160a01b03166115d9838381518110610cd657610cd6613510565b6001600160a01b031614156115fd576115fd828281518110610d5257610d52613510565b6001016115b1565b6007546001600160a01b0316331461165f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6010546001600160a01b0316336001600160a01b0316146116e45760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420616c6c6f7765640000000000000000000000000000000000000000006044820152606401610910565b610a62828483612589565b60606002805461081890613442565b60008061170a836114ed565b905060005b81518110156114e65761172d82828151811061111e5761111e613510565b61173d5761173a8361347d565b92505b60010161170f565b6007546001600160a01b0316331461179f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b600e54826117b060005461ffff1690565b6117ba91906133d3565b11156118085760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610910565b600f5482111561185a5760405162461bcd60e51b815260206004820152601660248201527f416d6f756e7420657863656564732072657365727665000000000000000000006044820152606401610910565b600f80548390039055610a62828483612589565b6001600160a01b0382163314156118c75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610910565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193d33836121b3565b6119af5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610910565b6119bb848484846125f0565b50505050565b606060006119ce836114ed565b905060006119db846116fe565b61ffff16905060008167ffffffffffffffff8111156119fc576119fc613526565b604051908082528060200260200182016040528015611a25578160200160208202803683370190505b5090506000805b845181101561138457611a4a85828151811061111e5761111e613510565b611a9957848181518110611a6057611a60613510565b6020026020010151838381518110611a7a57611a7a613510565b61ffff90921660209283029190910190910152611a968261349f565b91505b600101611a2c565b6000818152600360205260409020546060906001600160a01b0316611b2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610910565b6000611b38612528565b90506000815111611b585760405180602001604052806000815250611b83565b80611b628461266e565b604051602001611b739291906132dc565b6040516020818303038152906040525b9392505050565b60046020528160005260406000208181548110611ba657600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b60125460ff16611c235760405162461bcd60e51b815260206004820152601360248201527f4272656564696e67206e6f7420616374697665000000000000000000000000006044820152606401610910565b611c2d3382610eec565b611c655760405162461bcd60e51b8152602060048201526009602482015268139bdd081bdddb995960ba1b6044820152606401610910565b60028151611c7391906134ba565b15611cc05760405162461bcd60e51b815260206004820152601b60248201527f4e656564206576656e206e756d626572206f6620706172656e747300000000006044820152606401610910565b4260005b8251811015610a625782611cd98260016133d3565b81518110611ce957611ce9613510565b602002602001015161ffff16838281518110611d0757611d07613510565b602002602001015161ffff161415611d615760405162461bcd60e51b815260206004820152601260248201527f4475706c696361746520746f6b656e20496400000000000000000000000000006044820152606401610910565b81600c6000858481518110611d7857611d78613510565b602002602001015161ffff1661ffff16815260200190815260200160002054108015611de1575081600c600085611db08560016133d3565b81518110611dc057611dc0613510565b602002602001015161ffff1661ffff16815260200190815260200160002054105b611e2d5760405162461bcd60e51b815260206004820152601060248201527f416c7265616479206272656564696e67000000000000000000000000000000006044820152606401610910565b611e4283828151811061111e5761111e613510565b611e5b57611e5b838281518110610d5257610d52613510565b611e7a83611e6a8360016133d3565b8151811061111e5761111e613510565b611e9d57611e9d83611e8d8360016133d3565b81518110610d5257610d52613510565b6011548201600c6000858481518110611eb857611eb8613510565b602002602001015161ffff1661ffff168152602001908152602001600020819055506011548201600c6000858460010181518110611ef857611ef8613510565b602002602001015161ffff1661ffff168152602001908152602001600020819055507fdf00526ffee4362e983ddffa05beaeb5abfcabb9e244368a2dff0d13063e620e600c6000858481518110611f5157611f51613510565b602002602001015161ffff1661ffff16815260200190815260200160002054848381518110611f8257611f82613510565b602002602001015185846001611f9891906133d3565b81518110611fa857611fa8613510565b602002602001015133604051611fe5949392919093845261ffff9283166020850152911660408301526001600160a01b0316606082015260800190565b60405180910390a1600201611cc4565b6007546001600160a01b0316331461204f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b6001600160a01b0381166120cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610910565b6120d481612537565b50565b6007546001600160a01b031633146121315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b6012805460ff19811660ff90911615179055565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061217a82611218565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b031661222c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b600061223783611218565b9050806001600160a01b0316846001600160a01b031614806122725750836001600160a01b03166122678461089b565b6001600160a01b0316145b806122a257506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166122bd82611218565b6001600160a01b0316146123395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610910565b6001600160a01b0382166123b45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610910565b6123bf600082612145565b6123c983826127a0565b6001600160a01b038281166000818152600460209081526040808320805460018101825590845282842060108204018054600f9092166002026101000a61ffff8181021990931692891602919091179055858352600390915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61ffff8116600081815260036020526040902080546001600160a01b0319163090811790915561249282611218565b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450565b61ffff811660008181526003602052604080822080546001600160a01b0319166001600160a01b0387169081179091559051909130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a45050565b60606008805461081890613442565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b838110156125c05761259d836129cb565b81156125b8576125b86125b360005461ffff1690565b612463565b60010161258c565b50600a541580156125e35750600e5460005461ffff1614806125e35750600d5442115b15610a6257610a626129e4565b6125fb8484846122aa565b61260784848484612a56565b6119bb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b6060816126ae57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126d857806126c28161349f565b91506126d19050600a836133eb565b91506126b2565b60008167ffffffffffffffff8111156126f3576126f3613526565b6040519080825280601f01601f19166020018201604052801561271d576020820181803683370190505b5090505b84156122a2576127326001836133ff565b915061273f600a866134ba565b61274a9060306133d3565b60f81b81838151811061275f5761275f613510565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612799600a866133eb565b9450612721565b6001600160a01b038216600090815260046020526040902054600181141561281a576001600160a01b03831660009081526004602052604090208054806127e9576127e96134fa565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055505050565b6000190160005b818110156129a3576001600160a01b0384166000908152600460205260409020805461ffff851691908390811061285a5761285a613510565b60009182526020909120601082040154600f9091166002026101000a900461ffff16141561299b576001600160a01b03841660009081526004602052604090208054839081106128ac576128ac613510565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660046000866001600160a01b03166001600160a01b03168152602001908152602001600020828154811061290657612906613510565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060046000856001600160a01b03166001600160a01b03168152602001908152602001600020805480612969576129696134fa565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550505050565b600101612821565b506001600160a01b03831660009081526004602052604090208054806127e9576127e96134fa565b6120d48160405180602001604052806000815250612bae565b600a5415612a345760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c7265616479207365740000000000006044820152606401610910565b612a3f6001436133ff565b600a819055600e54612a5191406134ba565b600b55565b60006001600160a01b0384163b15612ba357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a9a90339089908890889060040161330b565b602060405180830381600087803b158015612ab457600080fd5b505af1925050508015612ae4575060408051601f3d908101601f19168201909252612ae1918101906131a4565b60015b612b89573d808015612b12576040519150601f19603f3d011682016040523d82523d6000602084013e612b17565b606091505b508051612b815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122a2565b506001949350505050565b612bb782612c33565b60008054612bcc9190849061ffff1684612a56565b610bc15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b6001600160a01b038116612c895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610910565b6000805461ffff8082166001011661ffff199091161790556001600160a01b0381166000818152600460209081526040808320835481546001810183559185528385206010830401805461ffff600f9094166002026101000a8481021990911692841602919091179055835481168452600390925280832080546001600160a01b031916851790558254905191169291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b828054612d4e90613442565b90600052602060002090601f016020900481019282612d705760008555612db6565b82601f10612d8957805160ff1916838001178555612db6565b82800160010185558215612db6579182015b82811115612db6578251825591602001919060010190612d9b565b50611035929150612e36565b828054612dce90613442565b90600052602060002090601f016020900481019282612df05760008555612db6565b82601f10612e095782800160ff19823516178555612db6565b82800160010185558215612db6579182015b82811115612db6578235825591602001919060010190612e1b565b5b808211156110355760008155600101612e37565b600067ffffffffffffffff831115612e6557612e65613526565b612e78601f8401601f19166020016133a2565b9050828152838383011115612e8c57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612eba57600080fd5b919050565b600082601f830112612ed057600080fd5b8135602067ffffffffffffffff821115612eec57612eec613526565b8160051b612efb8282016133a2565b838152828101908684018388018501891015612f1657600080fd5b600093505b85841015612f4057612f2c81612f5c565b835260019390930192918401918401612f1b565b50979650505050505050565b80358015158114612eba57600080fd5b803561ffff81168114612eba57600080fd5b600060208284031215612f8057600080fd5b611b8382612ea3565b60008060408385031215612f9c57600080fd5b612fa583612ea3565b9150612fb360208401612ea3565b90509250929050565b600080600060608486031215612fd157600080fd5b612fda84612ea3565b9250612fe860208501612ea3565b9150604084013590509250925092565b6000806000806080858703121561300e57600080fd5b61301785612ea3565b935061302560208601612ea3565b925060408501359150606085013567ffffffffffffffff81111561304857600080fd5b8501601f8101871361305957600080fd5b61306887823560208401612e4b565b91505092959194509250565b6000806040838503121561308757600080fd5b61309083612ea3565b9150602083013567ffffffffffffffff8111156130ac57600080fd5b6130b885828601612ebf565b9150509250929050565b600080604083850312156130d557600080fd5b6130de83612ea3565b9150612fb360208401612f4c565b600080604083850312156130ff57600080fd5b61310883612ea3565b946020939093013593505050565b60008060006060848603121561312b57600080fd5b61313484612ea3565b92506020840135915061314960408501612f4c565b90509250925092565b60006020828403121561316457600080fd5b813567ffffffffffffffff81111561317b57600080fd5b6122a284828501612ebf565b60006020828403121561319957600080fd5b8135611b838161353c565b6000602082840312156131b657600080fd5b8151611b838161353c565b600080602083850312156131d457600080fd5b823567ffffffffffffffff808211156131ec57600080fd5b818501915085601f83011261320057600080fd5b81358181111561320f57600080fd5b86602082850101111561322157600080fd5b60209290920196919550909350505050565b60006020828403121561324557600080fd5b813567ffffffffffffffff81111561325c57600080fd5b8201601f8101841361326d57600080fd5b6122a284823560208401612e4b565b60006020828403121561328e57600080fd5b611b8382612f5c565b6000602082840312156132a957600080fd5b5035919050565b600081518084526132c8816020860160208601613416565b601f01601f19169290920160200192915050565b600083516132ee818460208801613416565b835190830190613302818360208801613416565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261333d60808301846132b0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561338357835161ffff1683529284019291840191600101613363565b50909695505050505050565b602081526000611b8360208301846132b0565b604051601f8201601f1916810167ffffffffffffffff811182821017156133cb576133cb613526565b604052919050565b600082198211156133e6576133e66134ce565b500190565b6000826133fa576133fa6134e4565b500490565b600082821015613411576134116134ce565b500390565b60005b83811015613431578181015183820152602001613419565b838111156119bb5750506000910152565b600181811c9082168061345657607f821691505b6020821081141561347757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613495576134956134ce565b6001019392505050565b60006000198214156134b3576134b36134ce565b5060010190565b6000826134c9576134c96134e4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120d457600080fdfea2646970667358221220522ae71b92415e9054fcf89c3d05c6cca7c88c86741292a44a687d44d74f3d5164736f6c63430008070033477269646372616674204e6574776f726b2047656e65736973204964656e746974696573697066733a2f2f516d517051627254506f6d584671327335344e4c77447a664158626857346368713972385670573945384a44546d2f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103575760003560e01c8063732b1df5116101c8578063b88d4fde11610104578063e36d6498116100a2578063f2fde38b1161007c578063f2fde38b14610735578063f3169b8614610748578063f3daaa6614610750578063fe60d12c1461076357600080fd5b8063e36d6498146106cc578063e7867e26146106d5578063e985e9c5146106f957600080fd5b8063cb774d47116100de578063cb774d4714610694578063ce18a0531461069d578063d5abeb01146106b0578063dd5129cf146106b957600080fd5b8063b88d4fde1461065b578063be5ff0e11461066e578063c87b56dd1461068157600080fd5b806391d65b4d11610171578063992924a61161014b578063992924a6146105e65780639eb462661461060f5780639fe43c0f14610635578063a22cb4651461064857600080fd5b806391d65b4d146105b857806395d89b41146105cb57806397671130146105d357600080fd5b80638da5cb5b116101a25780638da5cb5b1461058c5780638dcb40611461059d5780638ea98117146105a557600080fd5b8063732b1df5146105405780638462151c14610566578063880b1d041461057957600080fd5b806335322f371161029757806355f804b3116102405780636b7450d51161021a5780636b7450d5146104fd5780636c0360eb1461051d57806370a0823114610525578063715018a61461053857600080fd5b806355f804b3146104c457806357c1af93146104d75780636352211e146104ea57600080fd5b806342842e0e1161027157806342842e0e146104965780634f6ccce7146104a957806355234ec0146104bc57600080fd5b806335322f3714610472578063362096e21461047a578063393f1df61461048357600080fd5b806310969523116103045780632380f302116102de5780632380f3021461042657806323b872dd146104395780632bdcfe721461044c5780632f745c591461045f57600080fd5b806310969523146103f457806318160ddd146104075780631e08a9e41461041d57600080fd5b8063095ea7b311610335578063095ea7b3146103c45780630c88b731146103d95780630f7309e8146103ec57600080fd5b806301ffc9a71461035c57806306fdde0314610384578063081812fc14610399575b600080fd5b61036f61036a366004613187565b61076c565b60405190151581526020015b60405180910390f35b61038c610809565b60405161037b919061338f565b6103ac6103a7366004613297565b61089b565b6040516001600160a01b03909116815260200161037b565b6103d76103d23660046130ec565b610935565b005b6103d76103e7366004613297565b610a67565b61038c610ac6565b6103d7610402366004613233565b610b54565b60005461ffff165b60405190815260200161037b565b61040f600d5481565b6103d7610434366004613297565b610bc5565b6103d7610447366004612fbc565b610c24565b6103d761045a366004613152565b610cab565b61040f61046d3660046130ec565b610d67565b6103d7610e3a565b61040f60115481565b61036f610491366004613074565b610eec565b6103d76104a4366004612fbc565b610f91565b61040f6104b7366004613297565b610fac565b61040f611039565b6103d76104d23660046131c1565b611055565b6103d76104e5366004613152565b6110bb565b6103ac6104f8366004613297565b611218565b61051061050b366004612f6e565b6112a3565b60405161037b9190613347565b61038c61138f565b61040f610533366004612f6e565b61139e565b6103d7611438565b61055361054e366004612f6e565b61149e565b60405161ffff909116815260200161037b565b610510610574366004612f6e565b6114ed565b61036f61058736600461327c565b611581565b6007546001600160a01b03166103ac565b6103d76115a1565b6103d76105b3366004612f6e565b611605565b6103d76105c6366004613116565b611681565b61038c6116ef565b6105536105e1366004612f6e565b6116fe565b6103ac6105f4366004613297565b6003602052600090815260409020546001600160a01b031681565b61036f61061d36600461327c565b61ffff166000908152600c6020526040902054421090565b6103d7610643366004613116565b611745565b6103d76106563660046130c2565b61186e565b6103d7610669366004612ff8565b611933565b61051061067c366004612f6e565b6119c1565b61038c61068f366004613297565b611aa1565b61040f600b5481565b6105536106ab3660046130ec565b611b8a565b61040f600e5481565b6103d76106c7366004613152565b611bd1565b61040f600a5481565b61040f6106e336600461327c565b61ffff166000908152600c602052604090205490565b61036f610707366004612f89565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103d7610743366004612f6e565b611ff5565b6103d76120d7565b6010546103ac906001600160a01b031681565b61040f600f5481565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107cf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461081890613442565b80601f016020809104026020016040519081016040528092919081815260200182805461084490613442565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061094082611218565b9050806001600160a01b0316836001600160a01b031614156109ca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610910565b336001600160a01b03821614806109e657506109e68133610707565b610a585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610910565b610a628383612145565b505050565b6007546001600160a01b03163314610ac15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b600d55565b60098054610ad390613442565b80601f0160208091040260200160405190810160405280929190818152602001828054610aff90613442565b8015610b4c5780601f10610b2157610100808354040283529160200191610b4c565b820191906000526020600020905b815481529060010190602001808311610b2f57829003601f168201915b505050505081565b6007546001600160a01b03163314610bae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b8051610bc1906009906020840190612d42565b5050565b6007546001600160a01b03163314610c1f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b601155565b610c2e33826121b3565b610ca05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610910565b610a628383836122aa565b60005b8151811015610bc157336001600160a01b0316610ce7838381518110610cd657610cd6613510565b602002602001015161ffff16611218565b6001600160a01b031614610d3d5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74206f776e6564206f7220616c7265616479207374616b656400000000006044820152606401610910565b610d5f828281518110610d5257610d52613510565b6020026020010151612463565b600101610cae565b6000610d728361139e565b8210610de65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a206f776e657220696e646578206f7574206f6620626f756e6460448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610910565b6001600160a01b0383166000908152600460205260409020805483908110610e1057610e10613510565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905092915050565b6000610e45336114ed565b905060005b8151811015610bc157336001600160a01b0316610e72838381518110610cd657610cd6613510565b6001600160a01b031614158015610ebc575042600c6000848481518110610e9b57610e9b613510565b602002602001015161ffff1661ffff16815260200190815260200160002054105b15610ee457610ee433838381518110610ed757610ed7613510565b60200260200101516124ca565b600101610e4a565b6000806000610efa856114ed565b905060005b8451811015610f85576000925060005b8251811015610f6b57828181518110610f2a57610f2a613510565b602002602001015161ffff16868381518110610f4857610f48613510565b602002602001015161ffff161415610f635760019350610f6b565b600101610f0f565b5082610f7d5760009350505050610803565b600101610eff565b50600195945050505050565b610a6283838360405180602001604052806000815250611933565b60008082118015610fc3575060005461ffff168211155b6110355760405162461bcd60e51b815260206004820152602260248201527f4552433732313a20676c6f62616c20696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610910565b5090565b6000600f5461104b60005461ffff1690565b600e540303905090565b6007546001600160a01b031633146110af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b610a6260088383612dc2565b6110c53382610eec565b6110fd5760405162461bcd60e51b8152602060048201526009602482015268139bdd081bdddb995960ba1b6044820152606401610910565b60005b8151811015610bc15761112b82828151811061111e5761111e613510565b6020026020010151611581565b6111775760405162461bcd60e51b815260206004820152600a60248201527f4e6f74207374616b6564000000000000000000000000000000000000000000006044820152606401610910565b42600c600084848151811061118e5761118e613510565b602002602001015161ffff1661ffff16815260200190815260200160002054106111fa5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e207374696c6c206272656564696e670000000000000000000000006044820152606401610910565b61121033838381518110610ed757610ed7613510565b600101611100565b6000818152600360205260408120546001600160a01b0316806108035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610910565b606060006112b0836114ed565b905060006112bd8461149e565b61ffff16905060008167ffffffffffffffff8111156112de576112de613526565b604051908082528060200260200182016040528015611307578160200160208202803683370190505b5090506000805b84518110156113845761132c85828151811061111e5761111e613510565b1561137c5784818151811061134357611343613510565b602002602001015183838151811061135d5761135d613510565b61ffff909216602092830291909101909101526113798261349f565b91505b60010161130e565b509095945050505050565b6060611399612528565b905090565b60006001600160a01b03821661141c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610910565b506001600160a01b031660009081526004602052604090205490565b6007546001600160a01b031633146114925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b61149c6000612537565b565b6000806114aa836114ed565b905060005b81518110156114e6576114cd82828151811061111e5761111e613510565b156114de576114db8361347d565b92505b6001016114af565b5050919050565b6001600160a01b03811660009081526004602090815260409182902080548351818402810184019094528084526060939283018282801561157557602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161153c5790505b50505050509050919050565b60003061159161ffff8416611218565b6001600160a01b03161492915050565b60006115ac336114ed565b905060005b8151811015610bc157336001600160a01b03166115d9838381518110610cd657610cd6613510565b6001600160a01b031614156115fd576115fd828281518110610d5257610d52613510565b6001016115b1565b6007546001600160a01b0316331461165f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6010546001600160a01b0316336001600160a01b0316146116e45760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420616c6c6f7765640000000000000000000000000000000000000000006044820152606401610910565b610a62828483612589565b60606002805461081890613442565b60008061170a836114ed565b905060005b81518110156114e65761172d82828151811061111e5761111e613510565b61173d5761173a8361347d565b92505b60010161170f565b6007546001600160a01b0316331461179f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b600e54826117b060005461ffff1690565b6117ba91906133d3565b11156118085760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610910565b600f5482111561185a5760405162461bcd60e51b815260206004820152601660248201527f416d6f756e7420657863656564732072657365727665000000000000000000006044820152606401610910565b600f80548390039055610a62828483612589565b6001600160a01b0382163314156118c75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610910565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193d33836121b3565b6119af5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610910565b6119bb848484846125f0565b50505050565b606060006119ce836114ed565b905060006119db846116fe565b61ffff16905060008167ffffffffffffffff8111156119fc576119fc613526565b604051908082528060200260200182016040528015611a25578160200160208202803683370190505b5090506000805b845181101561138457611a4a85828151811061111e5761111e613510565b611a9957848181518110611a6057611a60613510565b6020026020010151838381518110611a7a57611a7a613510565b61ffff90921660209283029190910190910152611a968261349f565b91505b600101611a2c565b6000818152600360205260409020546060906001600160a01b0316611b2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610910565b6000611b38612528565b90506000815111611b585760405180602001604052806000815250611b83565b80611b628461266e565b604051602001611b739291906132dc565b6040516020818303038152906040525b9392505050565b60046020528160005260406000208181548110611ba657600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b60125460ff16611c235760405162461bcd60e51b815260206004820152601360248201527f4272656564696e67206e6f7420616374697665000000000000000000000000006044820152606401610910565b611c2d3382610eec565b611c655760405162461bcd60e51b8152602060048201526009602482015268139bdd081bdddb995960ba1b6044820152606401610910565b60028151611c7391906134ba565b15611cc05760405162461bcd60e51b815260206004820152601b60248201527f4e656564206576656e206e756d626572206f6620706172656e747300000000006044820152606401610910565b4260005b8251811015610a625782611cd98260016133d3565b81518110611ce957611ce9613510565b602002602001015161ffff16838281518110611d0757611d07613510565b602002602001015161ffff161415611d615760405162461bcd60e51b815260206004820152601260248201527f4475706c696361746520746f6b656e20496400000000000000000000000000006044820152606401610910565b81600c6000858481518110611d7857611d78613510565b602002602001015161ffff1661ffff16815260200190815260200160002054108015611de1575081600c600085611db08560016133d3565b81518110611dc057611dc0613510565b602002602001015161ffff1661ffff16815260200190815260200160002054105b611e2d5760405162461bcd60e51b815260206004820152601060248201527f416c7265616479206272656564696e67000000000000000000000000000000006044820152606401610910565b611e4283828151811061111e5761111e613510565b611e5b57611e5b838281518110610d5257610d52613510565b611e7a83611e6a8360016133d3565b8151811061111e5761111e613510565b611e9d57611e9d83611e8d8360016133d3565b81518110610d5257610d52613510565b6011548201600c6000858481518110611eb857611eb8613510565b602002602001015161ffff1661ffff168152602001908152602001600020819055506011548201600c6000858460010181518110611ef857611ef8613510565b602002602001015161ffff1661ffff168152602001908152602001600020819055507fdf00526ffee4362e983ddffa05beaeb5abfcabb9e244368a2dff0d13063e620e600c6000858481518110611f5157611f51613510565b602002602001015161ffff1661ffff16815260200190815260200160002054848381518110611f8257611f82613510565b602002602001015185846001611f9891906133d3565b81518110611fa857611fa8613510565b602002602001015133604051611fe5949392919093845261ffff9283166020850152911660408301526001600160a01b0316606082015260800190565b60405180910390a1600201611cc4565b6007546001600160a01b0316331461204f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b6001600160a01b0381166120cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610910565b6120d481612537565b50565b6007546001600160a01b031633146121315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610910565b6012805460ff19811660ff90911615179055565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061217a82611218565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b031661222c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b600061223783611218565b9050806001600160a01b0316846001600160a01b031614806122725750836001600160a01b03166122678461089b565b6001600160a01b0316145b806122a257506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166122bd82611218565b6001600160a01b0316146123395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610910565b6001600160a01b0382166123b45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610910565b6123bf600082612145565b6123c983826127a0565b6001600160a01b038281166000818152600460209081526040808320805460018101825590845282842060108204018054600f9092166002026101000a61ffff8181021990931692891602919091179055858352600390915280822080546001600160a01b031916841790555184938716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61ffff8116600081815260036020526040902080546001600160a01b0319163090811790915561249282611218565b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450565b61ffff811660008181526003602052604080822080546001600160a01b0319166001600160a01b0387169081179091559051909130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a45050565b60606008805461081890613442565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b838110156125c05761259d836129cb565b81156125b8576125b86125b360005461ffff1690565b612463565b60010161258c565b50600a541580156125e35750600e5460005461ffff1614806125e35750600d5442115b15610a6257610a626129e4565b6125fb8484846122aa565b61260784848484612a56565b6119bb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b6060816126ae57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126d857806126c28161349f565b91506126d19050600a836133eb565b91506126b2565b60008167ffffffffffffffff8111156126f3576126f3613526565b6040519080825280601f01601f19166020018201604052801561271d576020820181803683370190505b5090505b84156122a2576127326001836133ff565b915061273f600a866134ba565b61274a9060306133d3565b60f81b81838151811061275f5761275f613510565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612799600a866133eb565b9450612721565b6001600160a01b038216600090815260046020526040902054600181141561281a576001600160a01b03831660009081526004602052604090208054806127e9576127e96134fa565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055505050565b6000190160005b818110156129a3576001600160a01b0384166000908152600460205260409020805461ffff851691908390811061285a5761285a613510565b60009182526020909120601082040154600f9091166002026101000a900461ffff16141561299b576001600160a01b03841660009081526004602052604090208054839081106128ac576128ac613510565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660046000866001600160a01b03166001600160a01b03168152602001908152602001600020828154811061290657612906613510565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060046000856001600160a01b03166001600160a01b03168152602001908152602001600020805480612969576129696134fa565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905550505050565b600101612821565b506001600160a01b03831660009081526004602052604090208054806127e9576127e96134fa565b6120d48160405180602001604052806000815250612bae565b600a5415612a345760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c7265616479207365740000000000006044820152606401610910565b612a3f6001436133ff565b600a819055600e54612a5191406134ba565b600b55565b60006001600160a01b0384163b15612ba357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a9a90339089908890889060040161330b565b602060405180830381600087803b158015612ab457600080fd5b505af1925050508015612ae4575060408051601f3d908101601f19168201909252612ae1918101906131a4565b60015b612b89573d808015612b12576040519150601f19603f3d011682016040523d82523d6000602084013e612b17565b606091505b508051612b815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122a2565b506001949350505050565b612bb782612c33565b60008054612bcc9190849061ffff1684612a56565b610bc15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610910565b6001600160a01b038116612c895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610910565b6000805461ffff8082166001011661ffff199091161790556001600160a01b0381166000818152600460209081526040808320835481546001810183559185528385206010830401805461ffff600f9094166002026101000a8481021990911692841602919091179055835481168452600390925280832080546001600160a01b031916851790558254905191169291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a450565b828054612d4e90613442565b90600052602060002090601f016020900481019282612d705760008555612db6565b82601f10612d8957805160ff1916838001178555612db6565b82800160010185558215612db6579182015b82811115612db6578251825591602001919060010190612d9b565b50611035929150612e36565b828054612dce90613442565b90600052602060002090601f016020900481019282612df05760008555612db6565b82601f10612e095782800160ff19823516178555612db6565b82800160010185558215612db6579182015b82811115612db6578235825591602001919060010190612e1b565b5b808211156110355760008155600101612e37565b600067ffffffffffffffff831115612e6557612e65613526565b612e78601f8401601f19166020016133a2565b9050828152838383011115612e8c57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612eba57600080fd5b919050565b600082601f830112612ed057600080fd5b8135602067ffffffffffffffff821115612eec57612eec613526565b8160051b612efb8282016133a2565b838152828101908684018388018501891015612f1657600080fd5b600093505b85841015612f4057612f2c81612f5c565b835260019390930192918401918401612f1b565b50979650505050505050565b80358015158114612eba57600080fd5b803561ffff81168114612eba57600080fd5b600060208284031215612f8057600080fd5b611b8382612ea3565b60008060408385031215612f9c57600080fd5b612fa583612ea3565b9150612fb360208401612ea3565b90509250929050565b600080600060608486031215612fd157600080fd5b612fda84612ea3565b9250612fe860208501612ea3565b9150604084013590509250925092565b6000806000806080858703121561300e57600080fd5b61301785612ea3565b935061302560208601612ea3565b925060408501359150606085013567ffffffffffffffff81111561304857600080fd5b8501601f8101871361305957600080fd5b61306887823560208401612e4b565b91505092959194509250565b6000806040838503121561308757600080fd5b61309083612ea3565b9150602083013567ffffffffffffffff8111156130ac57600080fd5b6130b885828601612ebf565b9150509250929050565b600080604083850312156130d557600080fd5b6130de83612ea3565b9150612fb360208401612f4c565b600080604083850312156130ff57600080fd5b61310883612ea3565b946020939093013593505050565b60008060006060848603121561312b57600080fd5b61313484612ea3565b92506020840135915061314960408501612f4c565b90509250925092565b60006020828403121561316457600080fd5b813567ffffffffffffffff81111561317b57600080fd5b6122a284828501612ebf565b60006020828403121561319957600080fd5b8135611b838161353c565b6000602082840312156131b657600080fd5b8151611b838161353c565b600080602083850312156131d457600080fd5b823567ffffffffffffffff808211156131ec57600080fd5b818501915085601f83011261320057600080fd5b81358181111561320f57600080fd5b86602082850101111561322157600080fd5b60209290920196919550909350505050565b60006020828403121561324557600080fd5b813567ffffffffffffffff81111561325c57600080fd5b8201601f8101841361326d57600080fd5b6122a284823560208401612e4b565b60006020828403121561328e57600080fd5b611b8382612f5c565b6000602082840312156132a957600080fd5b5035919050565b600081518084526132c8816020860160208601613416565b601f01601f19169290920160200192915050565b600083516132ee818460208801613416565b835190830190613302818360208801613416565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261333d60808301846132b0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561338357835161ffff1683529284019291840191600101613363565b50909695505050505050565b602081526000611b8360208301846132b0565b604051601f8201601f1916810167ffffffffffffffff811182821017156133cb576133cb613526565b604052919050565b600082198211156133e6576133e66134ce565b500190565b6000826133fa576133fa6134e4565b500490565b600082821015613411576134116134ce565b500390565b60005b83811015613431578181015183820152602001613419565b838111156119bb5750506000910152565b600181811c9082168061345657607f821691505b6020821081141561347757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613495576134956134ce565b6001019392505050565b60006000198214156134b3576134b36134ce565b5060010190565b6000826134c9576134c96134e4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120d457600080fdfea2646970667358221220522ae71b92415e9054fcf89c3d05c6cca7c88c86741292a44a687d44d74f3d5164736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.