ERC-721
Overview
Max Total Supply
0 MS
Holders
784
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
20 MSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MayaSpirits
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import {DefaultOperatorFilterer, OperatorFilterer} from "DefaultOperatorFilterer.sol"; contract MayaSpirits is ERC721, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; mapping(address => bool) public allowlisted; mapping(address => uint256) public AmountClaimedWalletAllowlist; mapping(address => uint256) public AmountClaimedWalletPublic; uint256 public constant MAX_SUPPLY = 6000; uint256 public constant MAX_MINT_AMOUNT_WALLET = 5; uint256 public constant MINT_PRICE_ALLOWLIST = 0.1 ether; uint256 public constant MINT_PRICE_PUBLIC = 0.15 ether; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadata; string private baseURI; uint256 public _minted = 0; bool public AllowlistMintActive = false; bool public PublicMintActive = false; bool public revealed = false; constructor(string memory name, string memory symbol) ERC721(name, symbol) { } function AllowlistMint(uint256 amount) public payable nonReentrant { require(AllowlistMintActive, "The Allowlist Sale is not enabled!"); require(isAllowlisted(msg.sender), "Not a part of Allowlist"); require( msg.value == amount * MINT_PRICE_ALLOWLIST, "Invalid funds provided" ); require( amount > 0 && amount <= MAX_MINT_AMOUNT_WALLET, "Must mint between the min and max." ); require(_minted + amount <= MAX_SUPPLY, "Exceed max supply"); require( AmountClaimedWalletAllowlist[msg.sender] + amount <= MAX_MINT_AMOUNT_WALLET, "Already minted Max Mints Allowlist" ); AmountClaimedWalletAllowlist[msg.sender] += amount; for (uint256 i = 0; i < amount; i++) { _minted ++; uint256 mintIndex = _minted ; _safeMint(msg.sender, mintIndex); } } function PublicMint(uint256 amount) public payable nonReentrant { require(PublicMintActive, "The Public Sale is not enabled!"); require( msg.value == amount * MINT_PRICE_PUBLIC, "Invalid funds provided" ); require( amount > 0 && amount <= MAX_MINT_AMOUNT_WALLET, "Must mint between the min and max." ); require(_minted + amount <= MAX_SUPPLY, "Exceed max supply"); require( AmountClaimedWalletPublic[msg.sender] + amount <= MAX_MINT_AMOUNT_WALLET, "Already minted Max Mints Public" ); AmountClaimedWalletPublic[msg.sender] += amount; for (uint256 i = 0; i < amount; i++) { _minted ++; uint256 mintIndex = _minted; _safeMint(msg.sender, mintIndex); } } function teamMint(uint256 amount) external onlyOwner { require(_minted + amount <= MAX_SUPPLY, "Max supply exceeded!"); for (uint256 i = 0; i < amount; i++) { _minted ++; uint256 mintIndex = _minted; _safeMint(msg.sender, mintIndex); } } function setAllowlistMint(bool _state) public onlyOwner { AllowlistMintActive = _state; } function setPublicMint(bool _state) public onlyOwner { PublicMintActive = _state; } function addToAllowlist(address _addr) public onlyOwner { allowlisted[_addr] = true; } function addArrayToAllowlist(address[] memory _addrs) public onlyOwner { for (uint256 i = 0; i < _addrs.length; i++) allowlisted[_addrs[i]] = true; } function removeFromAllowlist(address _addr) public onlyOwner { allowlisted[_addr] = false; } function isAllowlisted(address _addr) public view returns (bool) { return allowlisted[_addr]; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadata; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setHiddenMetadata(string memory _hiddenmetadata) public onlyOwner { hiddenMetadata = _hiddenmetadata; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId, data); } function withdrawMoney() external onlyOwner { Address.sendValue(payable(owner()), address(this).balance); } function withdrawMoneyTo(address payoutAddress) external onlyOwner { (bool success, ) = payoutAddress.call{value: address(this).balance}(""); require(success, "WITHDRAW FAILED!"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator() virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-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 (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.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 (last updated v4.8.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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 pragma solidity ^0.8.13; import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"amount","type":"uint256"}],"name":"AllowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"AllowlistMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"AmountClaimedWalletAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"AmountClaimedWalletPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_AMOUNT_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE_ALLOWLIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"PublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"}],"name":"addArrayToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeFromAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setAllowlistMint","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":"_hiddenmetadata","type":"string"}],"name":"setHiddenMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutAddress","type":"address"}],"name":"withdrawMoneyTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600b9081620000249190620006a3565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c90816200006b9190620006a3565b506000600f556000601060006101000a81548160ff0219169083151502179055506000601060016101000a81548160ff0219169083151502179055506000601060026101000a81548160ff021916908315150217905550348015620000cf57600080fd5b50604051620059b6380380620059b68339818101604052810190620000f59190620008ee565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001838381600090816200011f9190620006a3565b508060019081620001319190620006a3565b50505062000154620001486200035b60201b60201c565b6200036360201b60201c565b600160078190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200035157801562000217576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001dd929190620009b8565b600060405180830381600087803b158015620001f857600080fd5b505af11580156200020d573d6000803e3d6000fd5b5050505062000350565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002d1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000297929190620009b8565b600060405180830381600087803b158015620002b257600080fd5b505af1158015620002c7573d6000803e3d6000fd5b505050506200034f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200031a9190620009e5565b600060405180830381600087803b1580156200033557600080fd5b505af11580156200034a573d6000803e3d6000fd5b505050505b5b5b5050505062000a02565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004ab57607f821691505b602082108103620004c157620004c062000463565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200052b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004ec565b620005378683620004ec565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005846200057e62000578846200054f565b62000559565b6200054f565b9050919050565b6000819050919050565b620005a08362000563565b620005b8620005af826200058b565b848454620004f9565b825550505050565b600090565b620005cf620005c0565b620005dc81848462000595565b505050565b5b818110156200060457620005f8600082620005c5565b600181019050620005e2565b5050565b601f82111562000653576200061d81620004c7565b6200062884620004dc565b8101602085101562000638578190505b620006506200064785620004dc565b830182620005e1565b50505b505050565b600082821c905092915050565b6000620006786000198460080262000658565b1980831691505092915050565b600062000693838362000665565b9150826002028217905092915050565b620006ae8262000429565b67ffffffffffffffff811115620006ca57620006c962000434565b5b620006d6825462000492565b620006e382828562000608565b600060209050601f8311600181146200071b576000841562000706578287015190505b62000712858262000685565b86555062000782565b601f1984166200072b86620004c7565b60005b8281101562000755578489015182556001820191506020850194506020810190506200072e565b8683101562000775578489015162000771601f89168262000665565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620007c482620007a8565b810181811067ffffffffffffffff82111715620007e657620007e562000434565b5b80604052505050565b6000620007fb6200078a565b9050620008098282620007b9565b919050565b600067ffffffffffffffff8211156200082c576200082b62000434565b5b6200083782620007a8565b9050602081019050919050565b60005b838110156200086457808201518184015260208101905062000847565b60008484015250505050565b60006200088762000881846200080e565b620007ef565b905082815260208101848484011115620008a657620008a5620007a3565b5b620008b384828562000844565b509392505050565b600082601f830112620008d357620008d26200079e565b5b8151620008e584826020860162000870565b91505092915050565b6000806040838503121562000908576200090762000794565b5b600083015167ffffffffffffffff81111562000929576200092862000799565b5b6200093785828601620008bb565b925050602083015167ffffffffffffffff8111156200095b576200095a62000799565b5b6200096985828601620008bb565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009a08262000973565b9050919050565b620009b28162000993565b82525050565b6000604082019050620009cf6000830185620009a7565b620009de6020830184620009a7565b9392505050565b6000602082019050620009fc6000830184620009a7565b92915050565b614fa48062000a126000396000f3fe6080604052600436106102725760003560e01c80636352211e1161014f578063ac446002116100c1578063d75b46721161007a578063d75b467214610946578063ddd577581461096f578063e0a808531461099a578063e985e9c5146109c3578063f2fde38b14610a00578063f8e86ece14610a2957610272565b8063ac4460021461084a578063b4598bb714610861578063b88d4fde1461088a578063c3151fed146108b3578063c87b56dd146108de578063cd902acf1461091b57610272565b80638da5cb5b116101135780638da5cb5b1461075657806395d89b41146107815780639fb17e34146107ac578063a22cb465146107c8578063a8953127146107f1578063a928896d1461080d57610272565b80636352211e1461065f57806370a082311461069c578063715018a6146106d95780637ec4a659146106f057806383d6b54b1461071957610272565b806323b872dd116101e8578063513edd10116101ac578063513edd101461055f578063518302271461058a578063524c23a2146105b55780635503a0e8146105e05780635da93d7e1461060b57806362b99ad41461063457610272565b806323b872dd1461048e5780632c19b7f3146104b75780632fbba115146104e257806332cb6b0c1461050b57806342842e0e1461053657610272565b8063095ea7b31161023a578063095ea7b3146103965780630a09d0a9146103bf5780630e2d56cf146103ea5780630ff8d8a51461041357806316ba10e01461043c57806319f095831461046557610272565b806301ffc9a71461027757806303f45d41146102b457806305a3b809146102f157806306fdde031461032e578063081812fc14610359575b600080fd5b34801561028357600080fd5b5061029e600480360381019061029991906133c5565b610a52565b6040516102ab919061340d565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613486565b610b34565b6040516102e8919061340d565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190613486565b610b54565b604051610325919061340d565b60405180910390f35b34801561033a57600080fd5b50610343610baa565b6040516103509190613543565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b919061359b565b610c3c565b60405161038d91906135d7565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b891906135f2565b610c82565b005b3480156103cb57600080fd5b506103d4610d99565b6040516103e19190613543565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c919061365e565b610e27565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613486565b610e4c565b005b34801561044857600080fd5b50610463600480360381019061045e91906137c0565b610f04565b005b34801561047157600080fd5b5061048c6004803603810190610487919061365e565b610f1f565b005b34801561049a57600080fd5b506104b560048036038101906104b09190613809565b610f44565b005b3480156104c357600080fd5b506104cc611050565b6040516104d9919061386b565b60405180910390f35b3480156104ee57600080fd5b506105096004803603810190610504919061359b565b611056565b005b34801561051757600080fd5b506105206110fc565b60405161052d919061386b565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190613809565b611102565b005b34801561056b57600080fd5b5061057461120e565b604051610581919061386b565b60405180910390f35b34801561059657600080fd5b5061059f61121a565b6040516105ac919061340d565b60405180910390f35b3480156105c157600080fd5b506105ca61122d565b6040516105d7919061386b565b60405180910390f35b3480156105ec57600080fd5b506105f5611232565b6040516106029190613543565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d9190613486565b6112c0565b005b34801561064057600080fd5b50610649611323565b6040516106569190613543565b60405180910390f35b34801561066b57600080fd5b506106866004803603810190610681919061359b565b6113b1565b60405161069391906135d7565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613486565b611437565b6040516106d0919061386b565b60405180910390f35b3480156106e557600080fd5b506106ee6114ee565b005b3480156106fc57600080fd5b50610717600480360381019061071291906137c0565b611502565b005b34801561072557600080fd5b50610740600480360381019061073b9190613486565b61151d565b60405161074d919061386b565b60405180910390f35b34801561076257600080fd5b5061076b611535565b60405161077891906135d7565b60405180910390f35b34801561078d57600080fd5b5061079661155f565b6040516107a39190613543565b60405180910390f35b6107c660048036038101906107c1919061359b565b6115f1565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613886565b611877565b005b61080b6004803603810190610806919061359b565b61188d565b005b34801561081957600080fd5b50610834600480360381019061082f9190613486565b611b5b565b604051610841919061386b565b60405180910390f35b34801561085657600080fd5b5061085f611b73565b005b34801561086d57600080fd5b506108886004803603810190610883919061398e565b611b8e565b005b34801561089657600080fd5b506108b160048036038101906108ac9190613a78565b611c2b565b005b3480156108bf57600080fd5b506108c8611d39565b6040516108d5919061386b565b60405180910390f35b3480156108ea57600080fd5b506109056004803603810190610900919061359b565b611d45565b6040516109129190613543565b60405180910390f35b34801561092757600080fd5b50610930611e9d565b60405161093d919061340d565b60405180910390f35b34801561095257600080fd5b5061096d600480360381019061096891906137c0565b611eb0565b005b34801561097b57600080fd5b50610984611ecb565b604051610991919061340d565b60405180910390f35b3480156109a657600080fd5b506109c160048036038101906109bc919061365e565b611ede565b005b3480156109cf57600080fd5b506109ea60048036038101906109e59190613afb565b611f03565b6040516109f7919061340d565b60405180910390f35b348015610a0c57600080fd5b50610a276004803603810190610a229190613486565b611f97565b005b348015610a3557600080fd5b50610a506004803603810190610a4b9190613486565b61201a565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b1d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b2d5750610b2c8261207d565b5b9050919050565b60086020528060005260406000206000915054906101000a900460ff1681565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b606060008054610bb990613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610be590613b6a565b8015610c325780601f10610c0757610100808354040283529160200191610c32565b820191906000526020600020905b815481529060010190602001808311610c1557829003601f168201915b5050505050905090565b6000610c47826120e7565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8d826113b1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490613c0d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d1c612132565b73ffffffffffffffffffffffffffffffffffffffff161480610d4b5750610d4a81610d45612132565b611f03565b5b610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8190613c9f565b60405180910390fd5b610d94838361213a565b505050565b600d8054610da690613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd290613b6a565b8015610e1f5780601f10610df457610100808354040283529160200191610e1f565b820191906000526020600020905b815481529060010190602001808311610e0257829003601f168201915b505050505081565b610e2f6121f3565b80601060016101000a81548160ff02191690831515021790555050565b610e546121f3565b60008173ffffffffffffffffffffffffffffffffffffffff1647604051610e7a90613cf0565b60006040518083038185875af1925050503d8060008114610eb7576040519150601f19603f3d011682016040523d82523d6000602084013e610ebc565b606091505b5050905080610f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef790613d51565b60405180910390fd5b5050565b610f0c6121f3565b80600c9081610f1b9190613f1d565b5050565b610f276121f3565b80601060006101000a81548160ff02191690831515021790555050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611040576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610fbb929190613fef565b6020604051808303816000875af1158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe919061402d565b61103f57336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161103691906135d7565b60405180910390fd5b5b61104b838383612271565b505050565b600f5481565b61105e6121f3565b61177081600f5461106f9190614089565b11156110b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a790614109565b60405180910390fd5b60005b818110156110f857600f60008154809291906110ce90614129565b91905055506000600f5490506110e433826122d1565b5080806110f090614129565b9150506110b3565b5050565b61177081565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156111fe576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611179929190613fef565b6020604051808303816000875af1158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc919061402d565b6111fd57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016111f491906135d7565b60405180910390fd5b5b6112098383836122ef565b505050565b67016345785d8a000081565b601060029054906101000a900460ff1681565b600581565b600c805461123f90613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461126b90613b6a565b80156112b85780601f1061128d576101008083540402835291602001916112b8565b820191906000526020600020905b81548152906001019060200180831161129b57829003601f168201915b505050505081565b6112c86121f3565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600b805461133090613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461135c90613b6a565b80156113a95780601f1061137e576101008083540402835291602001916113a9565b820191906000526020600020905b81548152906001019060200180831161138c57829003601f168201915b505050505081565b6000806113bd8361230f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906141bd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149e9061424f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114f66121f3565b611500600061234c565b565b61150a6121f3565b80600b90816115199190613f1d565b5050565b60096020528060005260406000206000915090505481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461156e90613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461159a90613b6a565b80156115e75780601f106115bc576101008083540402835291602001916115e7565b820191906000526020600020905b8154815290600101906020018083116115ca57829003601f168201915b5050505050905090565b6115f9612412565b601060019054906101000a900460ff16611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f906142bb565b60405180910390fd5b670214e8348c4f00008161165c91906142db565b341461169d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169490614369565b60405180910390fd5b6000811180156116ae575060058111155b6116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e4906143fb565b60405180910390fd5b61177081600f546116fe9190614089565b111561173f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173690614467565b60405180910390fd5b600581600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461178c9190614089565b11156117cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c4906144d3565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181c9190614089565b9250508190555060005b8181101561186b57600f600081548092919061184190614129565b91905055506000600f54905061185733826122d1565b50808061186390614129565b915050611826565b50611874612461565b50565b611889611882612132565b838361246b565b5050565b611895612412565b601060009054906101000a900460ff166118e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118db90614565565b60405180910390fd5b6118ed33610b54565b61192c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611923906145d1565b60405180910390fd5b67016345785d8a00008161194091906142db565b3414611981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197890614369565b60405180910390fd5b600081118015611992575060058111155b6119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c8906143fb565b60405180910390fd5b61177081600f546119e29190614089565b1115611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a90614467565b60405180910390fd5b600581600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a709190614089565b1115611ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa890614663565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b009190614089565b9250508190555060005b81811015611b4f57600f6000815480929190611b2590614129565b91905055506000600f549050611b3b33826122d1565b508080611b4790614129565b915050611b0a565b50611b58612461565b50565b600a6020528060005260406000206000915090505481565b611b7b6121f3565b611b8c611b86611535565b476125d7565b565b611b966121f3565b60005b8151811015611c2757600160086000848481518110611bbb57611bba614683565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c1f90614129565b915050611b99565b5050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611d27576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611ca2929190613fef565b6020604051808303816000875af1158015611cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce5919061402d565b611d2657336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611d1d91906135d7565b60405180910390fd5b5b611d33848484846126cb565b50505050565b670214e8348c4f000081565b6060611d508261272d565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690614724565b60405180910390fd5b60001515601060029054906101000a900460ff16151503611e3c57600d8054611db790613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054611de390613b6a565b8015611e305780601f10611e0557610100808354040283529160200191611e30565b820191906000526020600020905b815481529060010190602001808311611e1357829003601f168201915b50505050509050611e98565b6000611e4661276e565b90506000815111611e665760405180602001604052806000815250611e94565b80611e7084612800565b600c604051602001611e8493929190614803565b6040516020818303038152906040525b9150505b919050565b601060019054906101000a900460ff1681565b611eb86121f3565b80600d9081611ec79190613f1d565b5050565b601060009054906101000a900460ff1681565b611ee66121f3565b80601060026101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f9f6121f3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361200e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612005906148a6565b60405180910390fd5b6120178161234c565b50565b6120226121f3565b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6120f08161272d565b61212f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612126906141bd565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121ad836113b1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121fb612132565b73ffffffffffffffffffffffffffffffffffffffff16612219611535565b73ffffffffffffffffffffffffffffffffffffffff161461226f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226690614912565b60405180910390fd5b565b61228261227c612132565b826128ce565b6122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b8906149a4565b60405180910390fd5b6122cc838383612963565b505050565b6122eb828260405180602001604052806000815250612c5c565b5050565b61230a83838360405180602001604052806000815250611c2b565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260075403612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e90614a10565b60405180910390fd5b6002600781905550565b6001600781905550565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090614a7c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125ca919061340d565b60405180910390a3505050565b8047101561261a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261190614ae8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161264090613cf0565b60006040518083038185875af1925050503d806000811461267d576040519150601f19603f3d011682016040523d82523d6000602084013e612682565b606091505b50509050806126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bd90614b7a565b60405180910390fd5b505050565b6126dc6126d6612132565b836128ce565b61271b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612712906149a4565b60405180910390fd5b61272784848484612cb7565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661274f8361230f565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b805461277d90613b6a565b80601f01602080910402602001604051908101604052809291908181526020018280546127a990613b6a565b80156127f65780601f106127cb576101008083540402835291602001916127f6565b820191906000526020600020905b8154815290600101906020018083116127d957829003601f168201915b5050505050905090565b60606000600161280f84612d13565b01905060008167ffffffffffffffff81111561282e5761282d613695565b5b6040519080825280601f01601f1916602001820160405280156128605781602001600182028036833780820191505090505b509050600082602001820190505b6001156128c3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816128b7576128b6614b9a565b5b0494506000850361286e575b819350505050919050565b6000806128da836113b1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061291c575061291b8185611f03565b5b8061295a57508373ffffffffffffffffffffffffffffffffffffffff1661294284610c3c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612983826113b1565b73ffffffffffffffffffffffffffffffffffffffff16146129d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d090614c3b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3f90614ccd565b60405180910390fd5b612a558383836001612e66565b8273ffffffffffffffffffffffffffffffffffffffff16612a75826113b1565b73ffffffffffffffffffffffffffffffffffffffff1614612acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac290614c3b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c578383836001612f8c565b505050565b612c668383612f92565b612c7360008484846131af565b612cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca990614d5f565b60405180910390fd5b505050565b612cc2848484612963565b612cce848484846131af565b612d0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0490614d5f565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d71577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d6757612d66614b9a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dae576d04ee2d6d415b85acef81000000008381612da457612da3614b9a565b5b0492506020810190505b662386f26fc100008310612ddd57662386f26fc100008381612dd357612dd2614b9a565b5b0492506010810190505b6305f5e1008310612e06576305f5e1008381612dfc57612dfb614b9a565b5b0492506008810190505b6127108310612e2b576127108381612e2157612e20614b9a565b5b0492506004810190505b60648310612e4e5760648381612e4457612e43614b9a565b5b0492506002810190505b600a8310612e5d576001810190505b80915050919050565b6001811115612f8657600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612efa5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ef29190614d7f565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f855780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f7d9190614089565b925050819055505b5b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614dff565b60405180910390fd5b61300a8161272d565b1561304a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304190614e6b565b60405180910390fd5b613058600083836001612e66565b6130618161272d565b156130a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309890614e6b565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131ab600083836001612f8c565b5050565b60006131d08473ffffffffffffffffffffffffffffffffffffffff16613336565b15613329578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131f9612132565b8786866040518563ffffffff1660e01b815260040161321b9493929190614ee0565b6020604051808303816000875af192505050801561325757506040513d601f19601f820116820180604052508101906132549190614f41565b60015b6132d9573d8060008114613287576040519150601f19603f3d011682016040523d82523d6000602084013e61328c565b606091505b5060008151036132d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132c890614d5f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061332e565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133a28161336d565b81146133ad57600080fd5b50565b6000813590506133bf81613399565b92915050565b6000602082840312156133db576133da613363565b5b60006133e9848285016133b0565b91505092915050565b60008115159050919050565b613407816133f2565b82525050565b600060208201905061342260008301846133fe565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061345382613428565b9050919050565b61346381613448565b811461346e57600080fd5b50565b6000813590506134808161345a565b92915050565b60006020828403121561349c5761349b613363565b5b60006134aa84828501613471565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134ed5780820151818401526020810190506134d2565b60008484015250505050565b6000601f19601f8301169050919050565b6000613515826134b3565b61351f81856134be565b935061352f8185602086016134cf565b613538816134f9565b840191505092915050565b6000602082019050818103600083015261355d818461350a565b905092915050565b6000819050919050565b61357881613565565b811461358357600080fd5b50565b6000813590506135958161356f565b92915050565b6000602082840312156135b1576135b0613363565b5b60006135bf84828501613586565b91505092915050565b6135d181613448565b82525050565b60006020820190506135ec60008301846135c8565b92915050565b6000806040838503121561360957613608613363565b5b600061361785828601613471565b925050602061362885828601613586565b9150509250929050565b61363b816133f2565b811461364657600080fd5b50565b60008135905061365881613632565b92915050565b60006020828403121561367457613673613363565b5b600061368284828501613649565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136cd826134f9565b810181811067ffffffffffffffff821117156136ec576136eb613695565b5b80604052505050565b60006136ff613359565b905061370b82826136c4565b919050565b600067ffffffffffffffff82111561372b5761372a613695565b5b613734826134f9565b9050602081019050919050565b82818337600083830152505050565b600061376361375e84613710565b6136f5565b90508281526020810184848401111561377f5761377e613690565b5b61378a848285613741565b509392505050565b600082601f8301126137a7576137a661368b565b5b81356137b7848260208601613750565b91505092915050565b6000602082840312156137d6576137d5613363565b5b600082013567ffffffffffffffff8111156137f4576137f3613368565b5b61380084828501613792565b91505092915050565b60008060006060848603121561382257613821613363565b5b600061383086828701613471565b935050602061384186828701613471565b925050604061385286828701613586565b9150509250925092565b61386581613565565b82525050565b6000602082019050613880600083018461385c565b92915050565b6000806040838503121561389d5761389c613363565b5b60006138ab85828601613471565b92505060206138bc85828601613649565b9150509250929050565b600067ffffffffffffffff8211156138e1576138e0613695565b5b602082029050602081019050919050565b600080fd5b600061390a613905846138c6565b6136f5565b9050808382526020820190506020840283018581111561392d5761392c6138f2565b5b835b8181101561395657806139428882613471565b84526020840193505060208101905061392f565b5050509392505050565b600082601f8301126139755761397461368b565b5b81356139858482602086016138f7565b91505092915050565b6000602082840312156139a4576139a3613363565b5b600082013567ffffffffffffffff8111156139c2576139c1613368565b5b6139ce84828501613960565b91505092915050565b600067ffffffffffffffff8211156139f2576139f1613695565b5b6139fb826134f9565b9050602081019050919050565b6000613a1b613a16846139d7565b6136f5565b905082815260208101848484011115613a3757613a36613690565b5b613a42848285613741565b509392505050565b600082601f830112613a5f57613a5e61368b565b5b8135613a6f848260208601613a08565b91505092915050565b60008060008060808587031215613a9257613a91613363565b5b6000613aa087828801613471565b9450506020613ab187828801613471565b9350506040613ac287828801613586565b925050606085013567ffffffffffffffff811115613ae357613ae2613368565b5b613aef87828801613a4a565b91505092959194509250565b60008060408385031215613b1257613b11613363565b5b6000613b2085828601613471565b9250506020613b3185828601613471565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b8257607f821691505b602082108103613b9557613b94613b3b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bf76021836134be565b9150613c0282613b9b565b604082019050919050565b60006020820190508181036000830152613c2681613bea565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613c89603d836134be565b9150613c9482613c2d565b604082019050919050565b60006020820190508181036000830152613cb881613c7c565b9050919050565b600081905092915050565b50565b6000613cda600083613cbf565b9150613ce582613cca565b600082019050919050565b6000613cfb82613ccd565b9150819050919050565b7f5749544844524157204641494c45442100000000000000000000000000000000600082015250565b6000613d3b6010836134be565b9150613d4682613d05565b602082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dd37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d96565b613ddd8683613d96565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613e1a613e15613e1084613565565b613df5565b613565565b9050919050565b6000819050919050565b613e3483613dff565b613e48613e4082613e21565b848454613da3565b825550505050565b600090565b613e5d613e50565b613e68818484613e2b565b505050565b5b81811015613e8c57613e81600082613e55565b600181019050613e6e565b5050565b601f821115613ed157613ea281613d71565b613eab84613d86565b81016020851015613eba578190505b613ece613ec685613d86565b830182613e6d565b50505b505050565b600082821c905092915050565b6000613ef460001984600802613ed6565b1980831691505092915050565b6000613f0d8383613ee3565b9150826002028217905092915050565b613f26826134b3565b67ffffffffffffffff811115613f3f57613f3e613695565b5b613f498254613b6a565b613f54828285613e90565b600060209050601f831160018114613f875760008415613f75578287015190505b613f7f8582613f01565b865550613fe7565b601f198416613f9586613d71565b60005b82811015613fbd57848901518255600182019150602085019450602081019050613f98565b86831015613fda5784890151613fd6601f891682613ee3565b8355505b6001600288020188555050505b505050505050565b600060408201905061400460008301856135c8565b61401160208301846135c8565b9392505050565b60008151905061402781613632565b92915050565b60006020828403121561404357614042613363565b5b600061405184828501614018565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061409482613565565b915061409f83613565565b92508282019050808211156140b7576140b661405a565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006140f36014836134be565b91506140fe826140bd565b602082019050919050565b60006020820190508181036000830152614122816140e6565b9050919050565b600061413482613565565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141665761416561405a565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006141a76018836134be565b91506141b282614171565b602082019050919050565b600060208201905081810360008301526141d68161419a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006142396029836134be565b9150614244826141dd565b604082019050919050565b600060208201905081810360008301526142688161422c565b9050919050565b7f546865205075626c69632053616c65206973206e6f7420656e61626c65642100600082015250565b60006142a5601f836134be565b91506142b08261426f565b602082019050919050565b600060208201905081810360008301526142d481614298565b9050919050565b60006142e682613565565b91506142f183613565565b92508282026142ff81613565565b915082820484148315176143165761431561405a565b5b5092915050565b7f496e76616c69642066756e64732070726f766964656400000000000000000000600082015250565b60006143536016836134be565b915061435e8261431d565b602082019050919050565b6000602082019050818103600083015261438281614346565b9050919050565b7f4d757374206d696e74206265747765656e20746865206d696e20616e64206d6160008201527f782e000000000000000000000000000000000000000000000000000000000000602082015250565b60006143e56022836134be565b91506143f082614389565b604082019050919050565b60006020820190508181036000830152614414816143d8565b9050919050565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b60006144516011836134be565b915061445c8261441b565b602082019050919050565b6000602082019050818103600083015261448081614444565b9050919050565b7f416c7265616479206d696e746564204d6178204d696e7473205075626c696300600082015250565b60006144bd601f836134be565b91506144c882614487565b602082019050919050565b600060208201905081810360008301526144ec816144b0565b9050919050565b7f54686520416c6c6f776c6973742053616c65206973206e6f7420656e61626c6560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b600061454f6022836134be565b915061455a826144f3565b604082019050919050565b6000602082019050818103600083015261457e81614542565b9050919050565b7f4e6f7420612070617274206f6620416c6c6f776c697374000000000000000000600082015250565b60006145bb6017836134be565b91506145c682614585565b602082019050919050565b600060208201905081810360008301526145ea816145ae565b9050919050565b7f416c7265616479206d696e746564204d6178204d696e747320416c6c6f776c6960008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b600061464d6022836134be565b9150614658826145f1565b604082019050919050565b6000602082019050818103600083015261467c81614640565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061470e602f836134be565b9150614719826146b2565b604082019050919050565b6000602082019050818103600083015261473d81614701565b9050919050565b600081905092915050565b600061475a826134b3565b6147648185614744565b93506147748185602086016134cf565b80840191505092915050565b6000815461478d81613b6a565b6147978186614744565b945060018216600081146147b257600181146147c7576147fa565b60ff19831686528115158202860193506147fa565b6147d085613d71565b60005b838110156147f2578154818901526001820191506020810190506147d3565b838801955050505b50505092915050565b600061480f828661474f565b915061481b828561474f565b91506148278284614780565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148906026836134be565b915061489b82614834565b604082019050919050565b600060208201905081810360008301526148bf81614883565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148fc6020836134be565b9150614907826148c6565b602082019050919050565b6000602082019050818103600083015261492b816148ef565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061498e602d836134be565b915061499982614932565b604082019050919050565b600060208201905081810360008301526149bd81614981565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006149fa601f836134be565b9150614a05826149c4565b602082019050919050565b60006020820190508181036000830152614a29816149ed565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a666019836134be565b9150614a7182614a30565b602082019050919050565b60006020820190508181036000830152614a9581614a59565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614ad2601d836134be565b9150614add82614a9c565b602082019050919050565b60006020820190508181036000830152614b0181614ac5565b9050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614b64603a836134be565b9150614b6f82614b08565b604082019050919050565b60006020820190508181036000830152614b9381614b57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c256025836134be565b9150614c3082614bc9565b604082019050919050565b60006020820190508181036000830152614c5481614c18565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614cb76024836134be565b9150614cc282614c5b565b604082019050919050565b60006020820190508181036000830152614ce681614caa565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d496032836134be565b9150614d5482614ced565b604082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b6000614d8a82613565565b9150614d9583613565565b9250828203905081811115614dad57614dac61405a565b5b92915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614de96020836134be565b9150614df482614db3565b602082019050919050565b60006020820190508181036000830152614e1881614ddc565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e55601c836134be565b9150614e6082614e1f565b602082019050919050565b60006020820190508181036000830152614e8481614e48565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614eb282614e8b565b614ebc8185614e96565b9350614ecc8185602086016134cf565b614ed5816134f9565b840191505092915050565b6000608082019050614ef560008301876135c8565b614f0260208301866135c8565b614f0f604083018561385c565b8181036060830152614f218184614ea7565b905095945050505050565b600081519050614f3b81613399565b92915050565b600060208284031215614f5757614f56613363565b5b6000614f6584828501614f2c565b9150509291505056fea26469706673582212203b89cef6b872dee31ffd184d439ad793c09e343ff6388e725521345e0a6c74ca64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000c4d6179612053706972697473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d53000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102725760003560e01c80636352211e1161014f578063ac446002116100c1578063d75b46721161007a578063d75b467214610946578063ddd577581461096f578063e0a808531461099a578063e985e9c5146109c3578063f2fde38b14610a00578063f8e86ece14610a2957610272565b8063ac4460021461084a578063b4598bb714610861578063b88d4fde1461088a578063c3151fed146108b3578063c87b56dd146108de578063cd902acf1461091b57610272565b80638da5cb5b116101135780638da5cb5b1461075657806395d89b41146107815780639fb17e34146107ac578063a22cb465146107c8578063a8953127146107f1578063a928896d1461080d57610272565b80636352211e1461065f57806370a082311461069c578063715018a6146106d95780637ec4a659146106f057806383d6b54b1461071957610272565b806323b872dd116101e8578063513edd10116101ac578063513edd101461055f578063518302271461058a578063524c23a2146105b55780635503a0e8146105e05780635da93d7e1461060b57806362b99ad41461063457610272565b806323b872dd1461048e5780632c19b7f3146104b75780632fbba115146104e257806332cb6b0c1461050b57806342842e0e1461053657610272565b8063095ea7b31161023a578063095ea7b3146103965780630a09d0a9146103bf5780630e2d56cf146103ea5780630ff8d8a51461041357806316ba10e01461043c57806319f095831461046557610272565b806301ffc9a71461027757806303f45d41146102b457806305a3b809146102f157806306fdde031461032e578063081812fc14610359575b600080fd5b34801561028357600080fd5b5061029e600480360381019061029991906133c5565b610a52565b6040516102ab919061340d565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613486565b610b34565b6040516102e8919061340d565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190613486565b610b54565b604051610325919061340d565b60405180910390f35b34801561033a57600080fd5b50610343610baa565b6040516103509190613543565b60405180910390f35b34801561036557600080fd5b50610380600480360381019061037b919061359b565b610c3c565b60405161038d91906135d7565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b891906135f2565b610c82565b005b3480156103cb57600080fd5b506103d4610d99565b6040516103e19190613543565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c919061365e565b610e27565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613486565b610e4c565b005b34801561044857600080fd5b50610463600480360381019061045e91906137c0565b610f04565b005b34801561047157600080fd5b5061048c6004803603810190610487919061365e565b610f1f565b005b34801561049a57600080fd5b506104b560048036038101906104b09190613809565b610f44565b005b3480156104c357600080fd5b506104cc611050565b6040516104d9919061386b565b60405180910390f35b3480156104ee57600080fd5b506105096004803603810190610504919061359b565b611056565b005b34801561051757600080fd5b506105206110fc565b60405161052d919061386b565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190613809565b611102565b005b34801561056b57600080fd5b5061057461120e565b604051610581919061386b565b60405180910390f35b34801561059657600080fd5b5061059f61121a565b6040516105ac919061340d565b60405180910390f35b3480156105c157600080fd5b506105ca61122d565b6040516105d7919061386b565b60405180910390f35b3480156105ec57600080fd5b506105f5611232565b6040516106029190613543565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d9190613486565b6112c0565b005b34801561064057600080fd5b50610649611323565b6040516106569190613543565b60405180910390f35b34801561066b57600080fd5b506106866004803603810190610681919061359b565b6113b1565b60405161069391906135d7565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613486565b611437565b6040516106d0919061386b565b60405180910390f35b3480156106e557600080fd5b506106ee6114ee565b005b3480156106fc57600080fd5b50610717600480360381019061071291906137c0565b611502565b005b34801561072557600080fd5b50610740600480360381019061073b9190613486565b61151d565b60405161074d919061386b565b60405180910390f35b34801561076257600080fd5b5061076b611535565b60405161077891906135d7565b60405180910390f35b34801561078d57600080fd5b5061079661155f565b6040516107a39190613543565b60405180910390f35b6107c660048036038101906107c1919061359b565b6115f1565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613886565b611877565b005b61080b6004803603810190610806919061359b565b61188d565b005b34801561081957600080fd5b50610834600480360381019061082f9190613486565b611b5b565b604051610841919061386b565b60405180910390f35b34801561085657600080fd5b5061085f611b73565b005b34801561086d57600080fd5b506108886004803603810190610883919061398e565b611b8e565b005b34801561089657600080fd5b506108b160048036038101906108ac9190613a78565b611c2b565b005b3480156108bf57600080fd5b506108c8611d39565b6040516108d5919061386b565b60405180910390f35b3480156108ea57600080fd5b506109056004803603810190610900919061359b565b611d45565b6040516109129190613543565b60405180910390f35b34801561092757600080fd5b50610930611e9d565b60405161093d919061340d565b60405180910390f35b34801561095257600080fd5b5061096d600480360381019061096891906137c0565b611eb0565b005b34801561097b57600080fd5b50610984611ecb565b604051610991919061340d565b60405180910390f35b3480156109a657600080fd5b506109c160048036038101906109bc919061365e565b611ede565b005b3480156109cf57600080fd5b506109ea60048036038101906109e59190613afb565b611f03565b6040516109f7919061340d565b60405180910390f35b348015610a0c57600080fd5b50610a276004803603810190610a229190613486565b611f97565b005b348015610a3557600080fd5b50610a506004803603810190610a4b9190613486565b61201a565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b1d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b2d5750610b2c8261207d565b5b9050919050565b60086020528060005260406000206000915054906101000a900460ff1681565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b606060008054610bb990613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610be590613b6a565b8015610c325780601f10610c0757610100808354040283529160200191610c32565b820191906000526020600020905b815481529060010190602001808311610c1557829003601f168201915b5050505050905090565b6000610c47826120e7565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c8d826113b1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490613c0d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d1c612132565b73ffffffffffffffffffffffffffffffffffffffff161480610d4b5750610d4a81610d45612132565b611f03565b5b610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8190613c9f565b60405180910390fd5b610d94838361213a565b505050565b600d8054610da690613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd290613b6a565b8015610e1f5780601f10610df457610100808354040283529160200191610e1f565b820191906000526020600020905b815481529060010190602001808311610e0257829003601f168201915b505050505081565b610e2f6121f3565b80601060016101000a81548160ff02191690831515021790555050565b610e546121f3565b60008173ffffffffffffffffffffffffffffffffffffffff1647604051610e7a90613cf0565b60006040518083038185875af1925050503d8060008114610eb7576040519150601f19603f3d011682016040523d82523d6000602084013e610ebc565b606091505b5050905080610f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef790613d51565b60405180910390fd5b5050565b610f0c6121f3565b80600c9081610f1b9190613f1d565b5050565b610f276121f3565b80601060006101000a81548160ff02191690831515021790555050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611040576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610fbb929190613fef565b6020604051808303816000875af1158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe919061402d565b61103f57336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161103691906135d7565b60405180910390fd5b5b61104b838383612271565b505050565b600f5481565b61105e6121f3565b61177081600f5461106f9190614089565b11156110b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a790614109565b60405180910390fd5b60005b818110156110f857600f60008154809291906110ce90614129565b91905055506000600f5490506110e433826122d1565b5080806110f090614129565b9150506110b3565b5050565b61177081565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156111fe576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611179929190613fef565b6020604051808303816000875af1158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc919061402d565b6111fd57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016111f491906135d7565b60405180910390fd5b5b6112098383836122ef565b505050565b67016345785d8a000081565b601060029054906101000a900460ff1681565b600581565b600c805461123f90613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461126b90613b6a565b80156112b85780601f1061128d576101008083540402835291602001916112b8565b820191906000526020600020905b81548152906001019060200180831161129b57829003601f168201915b505050505081565b6112c86121f3565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600b805461133090613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461135c90613b6a565b80156113a95780601f1061137e576101008083540402835291602001916113a9565b820191906000526020600020905b81548152906001019060200180831161138c57829003601f168201915b505050505081565b6000806113bd8361230f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906141bd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149e9061424f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114f66121f3565b611500600061234c565b565b61150a6121f3565b80600b90816115199190613f1d565b5050565b60096020528060005260406000206000915090505481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461156e90613b6a565b80601f016020809104026020016040519081016040528092919081815260200182805461159a90613b6a565b80156115e75780601f106115bc576101008083540402835291602001916115e7565b820191906000526020600020905b8154815290600101906020018083116115ca57829003601f168201915b5050505050905090565b6115f9612412565b601060019054906101000a900460ff16611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f906142bb565b60405180910390fd5b670214e8348c4f00008161165c91906142db565b341461169d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169490614369565b60405180910390fd5b6000811180156116ae575060058111155b6116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e4906143fb565b60405180910390fd5b61177081600f546116fe9190614089565b111561173f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173690614467565b60405180910390fd5b600581600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461178c9190614089565b11156117cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c4906144d3565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181c9190614089565b9250508190555060005b8181101561186b57600f600081548092919061184190614129565b91905055506000600f54905061185733826122d1565b50808061186390614129565b915050611826565b50611874612461565b50565b611889611882612132565b838361246b565b5050565b611895612412565b601060009054906101000a900460ff166118e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118db90614565565b60405180910390fd5b6118ed33610b54565b61192c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611923906145d1565b60405180910390fd5b67016345785d8a00008161194091906142db565b3414611981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197890614369565b60405180910390fd5b600081118015611992575060058111155b6119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c8906143fb565b60405180910390fd5b61177081600f546119e29190614089565b1115611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a90614467565b60405180910390fd5b600581600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a709190614089565b1115611ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa890614663565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b009190614089565b9250508190555060005b81811015611b4f57600f6000815480929190611b2590614129565b91905055506000600f549050611b3b33826122d1565b508080611b4790614129565b915050611b0a565b50611b58612461565b50565b600a6020528060005260406000206000915090505481565b611b7b6121f3565b611b8c611b86611535565b476125d7565b565b611b966121f3565b60005b8151811015611c2757600160086000848481518110611bbb57611bba614683565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c1f90614129565b915050611b99565b5050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611d27576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611ca2929190613fef565b6020604051808303816000875af1158015611cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce5919061402d565b611d2657336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611d1d91906135d7565b60405180910390fd5b5b611d33848484846126cb565b50505050565b670214e8348c4f000081565b6060611d508261272d565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690614724565b60405180910390fd5b60001515601060029054906101000a900460ff16151503611e3c57600d8054611db790613b6a565b80601f0160208091040260200160405190810160405280929190818152602001828054611de390613b6a565b8015611e305780601f10611e0557610100808354040283529160200191611e30565b820191906000526020600020905b815481529060010190602001808311611e1357829003601f168201915b50505050509050611e98565b6000611e4661276e565b90506000815111611e665760405180602001604052806000815250611e94565b80611e7084612800565b600c604051602001611e8493929190614803565b6040516020818303038152906040525b9150505b919050565b601060019054906101000a900460ff1681565b611eb86121f3565b80600d9081611ec79190613f1d565b5050565b601060009054906101000a900460ff1681565b611ee66121f3565b80601060026101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f9f6121f3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361200e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612005906148a6565b60405180910390fd5b6120178161234c565b50565b6120226121f3565b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6120f08161272d565b61212f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612126906141bd565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121ad836113b1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121fb612132565b73ffffffffffffffffffffffffffffffffffffffff16612219611535565b73ffffffffffffffffffffffffffffffffffffffff161461226f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226690614912565b60405180910390fd5b565b61228261227c612132565b826128ce565b6122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b8906149a4565b60405180910390fd5b6122cc838383612963565b505050565b6122eb828260405180602001604052806000815250612c5c565b5050565b61230a83838360405180602001604052806000815250611c2b565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260075403612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e90614a10565b60405180910390fd5b6002600781905550565b6001600781905550565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090614a7c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125ca919061340d565b60405180910390a3505050565b8047101561261a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261190614ae8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161264090613cf0565b60006040518083038185875af1925050503d806000811461267d576040519150601f19603f3d011682016040523d82523d6000602084013e612682565b606091505b50509050806126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bd90614b7a565b60405180910390fd5b505050565b6126dc6126d6612132565b836128ce565b61271b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612712906149a4565b60405180910390fd5b61272784848484612cb7565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661274f8361230f565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b805461277d90613b6a565b80601f01602080910402602001604051908101604052809291908181526020018280546127a990613b6a565b80156127f65780601f106127cb576101008083540402835291602001916127f6565b820191906000526020600020905b8154815290600101906020018083116127d957829003601f168201915b5050505050905090565b60606000600161280f84612d13565b01905060008167ffffffffffffffff81111561282e5761282d613695565b5b6040519080825280601f01601f1916602001820160405280156128605781602001600182028036833780820191505090505b509050600082602001820190505b6001156128c3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816128b7576128b6614b9a565b5b0494506000850361286e575b819350505050919050565b6000806128da836113b1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061291c575061291b8185611f03565b5b8061295a57508373ffffffffffffffffffffffffffffffffffffffff1661294284610c3c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612983826113b1565b73ffffffffffffffffffffffffffffffffffffffff16146129d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d090614c3b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3f90614ccd565b60405180910390fd5b612a558383836001612e66565b8273ffffffffffffffffffffffffffffffffffffffff16612a75826113b1565b73ffffffffffffffffffffffffffffffffffffffff1614612acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac290614c3b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c578383836001612f8c565b505050565b612c668383612f92565b612c7360008484846131af565b612cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca990614d5f565b60405180910390fd5b505050565b612cc2848484612963565b612cce848484846131af565b612d0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0490614d5f565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d71577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d6757612d66614b9a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dae576d04ee2d6d415b85acef81000000008381612da457612da3614b9a565b5b0492506020810190505b662386f26fc100008310612ddd57662386f26fc100008381612dd357612dd2614b9a565b5b0492506010810190505b6305f5e1008310612e06576305f5e1008381612dfc57612dfb614b9a565b5b0492506008810190505b6127108310612e2b576127108381612e2157612e20614b9a565b5b0492506004810190505b60648310612e4e5760648381612e4457612e43614b9a565b5b0492506002810190505b600a8310612e5d576001810190505b80915050919050565b6001811115612f8657600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612efa5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ef29190614d7f565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f855780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f7d9190614089565b925050819055505b5b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614dff565b60405180910390fd5b61300a8161272d565b1561304a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304190614e6b565b60405180910390fd5b613058600083836001612e66565b6130618161272d565b156130a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309890614e6b565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131ab600083836001612f8c565b5050565b60006131d08473ffffffffffffffffffffffffffffffffffffffff16613336565b15613329578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131f9612132565b8786866040518563ffffffff1660e01b815260040161321b9493929190614ee0565b6020604051808303816000875af192505050801561325757506040513d601f19601f820116820180604052508101906132549190614f41565b60015b6132d9573d8060008114613287576040519150601f19603f3d011682016040523d82523d6000602084013e61328c565b606091505b5060008151036132d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132c890614d5f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061332e565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133a28161336d565b81146133ad57600080fd5b50565b6000813590506133bf81613399565b92915050565b6000602082840312156133db576133da613363565b5b60006133e9848285016133b0565b91505092915050565b60008115159050919050565b613407816133f2565b82525050565b600060208201905061342260008301846133fe565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061345382613428565b9050919050565b61346381613448565b811461346e57600080fd5b50565b6000813590506134808161345a565b92915050565b60006020828403121561349c5761349b613363565b5b60006134aa84828501613471565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134ed5780820151818401526020810190506134d2565b60008484015250505050565b6000601f19601f8301169050919050565b6000613515826134b3565b61351f81856134be565b935061352f8185602086016134cf565b613538816134f9565b840191505092915050565b6000602082019050818103600083015261355d818461350a565b905092915050565b6000819050919050565b61357881613565565b811461358357600080fd5b50565b6000813590506135958161356f565b92915050565b6000602082840312156135b1576135b0613363565b5b60006135bf84828501613586565b91505092915050565b6135d181613448565b82525050565b60006020820190506135ec60008301846135c8565b92915050565b6000806040838503121561360957613608613363565b5b600061361785828601613471565b925050602061362885828601613586565b9150509250929050565b61363b816133f2565b811461364657600080fd5b50565b60008135905061365881613632565b92915050565b60006020828403121561367457613673613363565b5b600061368284828501613649565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136cd826134f9565b810181811067ffffffffffffffff821117156136ec576136eb613695565b5b80604052505050565b60006136ff613359565b905061370b82826136c4565b919050565b600067ffffffffffffffff82111561372b5761372a613695565b5b613734826134f9565b9050602081019050919050565b82818337600083830152505050565b600061376361375e84613710565b6136f5565b90508281526020810184848401111561377f5761377e613690565b5b61378a848285613741565b509392505050565b600082601f8301126137a7576137a661368b565b5b81356137b7848260208601613750565b91505092915050565b6000602082840312156137d6576137d5613363565b5b600082013567ffffffffffffffff8111156137f4576137f3613368565b5b61380084828501613792565b91505092915050565b60008060006060848603121561382257613821613363565b5b600061383086828701613471565b935050602061384186828701613471565b925050604061385286828701613586565b9150509250925092565b61386581613565565b82525050565b6000602082019050613880600083018461385c565b92915050565b6000806040838503121561389d5761389c613363565b5b60006138ab85828601613471565b92505060206138bc85828601613649565b9150509250929050565b600067ffffffffffffffff8211156138e1576138e0613695565b5b602082029050602081019050919050565b600080fd5b600061390a613905846138c6565b6136f5565b9050808382526020820190506020840283018581111561392d5761392c6138f2565b5b835b8181101561395657806139428882613471565b84526020840193505060208101905061392f565b5050509392505050565b600082601f8301126139755761397461368b565b5b81356139858482602086016138f7565b91505092915050565b6000602082840312156139a4576139a3613363565b5b600082013567ffffffffffffffff8111156139c2576139c1613368565b5b6139ce84828501613960565b91505092915050565b600067ffffffffffffffff8211156139f2576139f1613695565b5b6139fb826134f9565b9050602081019050919050565b6000613a1b613a16846139d7565b6136f5565b905082815260208101848484011115613a3757613a36613690565b5b613a42848285613741565b509392505050565b600082601f830112613a5f57613a5e61368b565b5b8135613a6f848260208601613a08565b91505092915050565b60008060008060808587031215613a9257613a91613363565b5b6000613aa087828801613471565b9450506020613ab187828801613471565b9350506040613ac287828801613586565b925050606085013567ffffffffffffffff811115613ae357613ae2613368565b5b613aef87828801613a4a565b91505092959194509250565b60008060408385031215613b1257613b11613363565b5b6000613b2085828601613471565b9250506020613b3185828601613471565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b8257607f821691505b602082108103613b9557613b94613b3b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bf76021836134be565b9150613c0282613b9b565b604082019050919050565b60006020820190508181036000830152613c2681613bea565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613c89603d836134be565b9150613c9482613c2d565b604082019050919050565b60006020820190508181036000830152613cb881613c7c565b9050919050565b600081905092915050565b50565b6000613cda600083613cbf565b9150613ce582613cca565b600082019050919050565b6000613cfb82613ccd565b9150819050919050565b7f5749544844524157204641494c45442100000000000000000000000000000000600082015250565b6000613d3b6010836134be565b9150613d4682613d05565b602082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dd37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d96565b613ddd8683613d96565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613e1a613e15613e1084613565565b613df5565b613565565b9050919050565b6000819050919050565b613e3483613dff565b613e48613e4082613e21565b848454613da3565b825550505050565b600090565b613e5d613e50565b613e68818484613e2b565b505050565b5b81811015613e8c57613e81600082613e55565b600181019050613e6e565b5050565b601f821115613ed157613ea281613d71565b613eab84613d86565b81016020851015613eba578190505b613ece613ec685613d86565b830182613e6d565b50505b505050565b600082821c905092915050565b6000613ef460001984600802613ed6565b1980831691505092915050565b6000613f0d8383613ee3565b9150826002028217905092915050565b613f26826134b3565b67ffffffffffffffff811115613f3f57613f3e613695565b5b613f498254613b6a565b613f54828285613e90565b600060209050601f831160018114613f875760008415613f75578287015190505b613f7f8582613f01565b865550613fe7565b601f198416613f9586613d71565b60005b82811015613fbd57848901518255600182019150602085019450602081019050613f98565b86831015613fda5784890151613fd6601f891682613ee3565b8355505b6001600288020188555050505b505050505050565b600060408201905061400460008301856135c8565b61401160208301846135c8565b9392505050565b60008151905061402781613632565b92915050565b60006020828403121561404357614042613363565b5b600061405184828501614018565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061409482613565565b915061409f83613565565b92508282019050808211156140b7576140b661405a565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006140f36014836134be565b91506140fe826140bd565b602082019050919050565b60006020820190508181036000830152614122816140e6565b9050919050565b600061413482613565565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141665761416561405a565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006141a76018836134be565b91506141b282614171565b602082019050919050565b600060208201905081810360008301526141d68161419a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006142396029836134be565b9150614244826141dd565b604082019050919050565b600060208201905081810360008301526142688161422c565b9050919050565b7f546865205075626c69632053616c65206973206e6f7420656e61626c65642100600082015250565b60006142a5601f836134be565b91506142b08261426f565b602082019050919050565b600060208201905081810360008301526142d481614298565b9050919050565b60006142e682613565565b91506142f183613565565b92508282026142ff81613565565b915082820484148315176143165761431561405a565b5b5092915050565b7f496e76616c69642066756e64732070726f766964656400000000000000000000600082015250565b60006143536016836134be565b915061435e8261431d565b602082019050919050565b6000602082019050818103600083015261438281614346565b9050919050565b7f4d757374206d696e74206265747765656e20746865206d696e20616e64206d6160008201527f782e000000000000000000000000000000000000000000000000000000000000602082015250565b60006143e56022836134be565b91506143f082614389565b604082019050919050565b60006020820190508181036000830152614414816143d8565b9050919050565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b60006144516011836134be565b915061445c8261441b565b602082019050919050565b6000602082019050818103600083015261448081614444565b9050919050565b7f416c7265616479206d696e746564204d6178204d696e7473205075626c696300600082015250565b60006144bd601f836134be565b91506144c882614487565b602082019050919050565b600060208201905081810360008301526144ec816144b0565b9050919050565b7f54686520416c6c6f776c6973742053616c65206973206e6f7420656e61626c6560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b600061454f6022836134be565b915061455a826144f3565b604082019050919050565b6000602082019050818103600083015261457e81614542565b9050919050565b7f4e6f7420612070617274206f6620416c6c6f776c697374000000000000000000600082015250565b60006145bb6017836134be565b91506145c682614585565b602082019050919050565b600060208201905081810360008301526145ea816145ae565b9050919050565b7f416c7265616479206d696e746564204d6178204d696e747320416c6c6f776c6960008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b600061464d6022836134be565b9150614658826145f1565b604082019050919050565b6000602082019050818103600083015261467c81614640565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061470e602f836134be565b9150614719826146b2565b604082019050919050565b6000602082019050818103600083015261473d81614701565b9050919050565b600081905092915050565b600061475a826134b3565b6147648185614744565b93506147748185602086016134cf565b80840191505092915050565b6000815461478d81613b6a565b6147978186614744565b945060018216600081146147b257600181146147c7576147fa565b60ff19831686528115158202860193506147fa565b6147d085613d71565b60005b838110156147f2578154818901526001820191506020810190506147d3565b838801955050505b50505092915050565b600061480f828661474f565b915061481b828561474f565b91506148278284614780565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148906026836134be565b915061489b82614834565b604082019050919050565b600060208201905081810360008301526148bf81614883565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148fc6020836134be565b9150614907826148c6565b602082019050919050565b6000602082019050818103600083015261492b816148ef565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061498e602d836134be565b915061499982614932565b604082019050919050565b600060208201905081810360008301526149bd81614981565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006149fa601f836134be565b9150614a05826149c4565b602082019050919050565b60006020820190508181036000830152614a29816149ed565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a666019836134be565b9150614a7182614a30565b602082019050919050565b60006020820190508181036000830152614a9581614a59565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614ad2601d836134be565b9150614add82614a9c565b602082019050919050565b60006020820190508181036000830152614b0181614ac5565b9050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614b64603a836134be565b9150614b6f82614b08565b604082019050919050565b60006020820190508181036000830152614b9381614b57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c256025836134be565b9150614c3082614bc9565b604082019050919050565b60006020820190508181036000830152614c5481614c18565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614cb76024836134be565b9150614cc282614c5b565b604082019050919050565b60006020820190508181036000830152614ce681614caa565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d496032836134be565b9150614d5482614ced565b604082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b6000614d8a82613565565b9150614d9583613565565b9250828203905081811115614dad57614dac61405a565b5b92915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614de96020836134be565b9150614df482614db3565b602082019050919050565b60006020820190508181036000830152614e1881614ddc565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e55601c836134be565b9150614e6082614e1f565b602082019050919050565b60006020820190508181036000830152614e8481614e48565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614eb282614e8b565b614ebc8185614e96565b9350614ecc8185602086016134cf565b614ed5816134f9565b840191505092915050565b6000608082019050614ef560008301876135c8565b614f0260208301866135c8565b614f0f604083018561385c565b8181036060830152614f218184614ea7565b905095945050505050565b600081519050614f3b81613399565b92915050565b600060208284031215614f5757614f56613363565b5b6000614f6584828501614f2c565b9150509291505056fea26469706673582212203b89cef6b872dee31ffd184d439ad793c09e343ff6388e725521345e0a6c74ca64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000c4d6179612053706972697473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d53000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Maya Spirits
Arg [1] : symbol (string): MS
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [3] : 4d61796120537069726974730000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 4d53000000000000000000000000000000000000000000000000000000000000
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.