NFT
Overview
TokenID
11110
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XtremePixels
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import {UpdatableOperatorFilterer} from "operator-filter-registry/src/UpdatableOperatorFilterer.sol"; import {RevokableDefaultOperatorFilterer} from "operator-filter-registry/src/RevokableDefaultOperatorFilterer.sol"; import "./ERC721R.sol"; //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%=-----------------------------------------*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%=------------#@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@%%%%%%%%%%%%%@@@@@@@@@@%%%% =%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%. #@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@%. +@@@@@@@@@@# -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. #@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@% -++++++++++= ............... ................. .+#@@@@@%++++++++++++++++++++++++++++++++++ ...... #@@@@@%+++++++++++++++*%@@@@ //@@@@% :======---==---=: :=---------------- +@@@@@# :------ #@@@@@* %@@@@ //@@@@% ::::: :::-----------------:-------------------::. .:::::: :------ ::::::. %@@@@ //@@@@% :====. -==--------------------------------------=: :------ %@@@@ //@@@@% :=----: :----------------------------------------------------- ---------- :---- ----- -------- ---------: %@@@@ //@@@@% :=-----. .-=-------------------------------------:::::----------:............---------- -----:. ..----- --------.............---------: %@@@@ //@@@@% :=-----=. .=---------------------------------------. :-------------------------------- :-----: :------ ------------------------------: %@@@@ //@@@@% .-----=. .=------------------=- -=---=: :----. :=---------------------------- :-----: :-------. ------------------------------: %@@@@ //@@@@% -----=: .=-------------------: :-----. .=---. .-----------------------::::-: :-----: :-------. .-------------------------:::::: %@@@@ //@@@@% -=-------------=======: :=--- .=---. :-------------------=. :---------------. -------------------------- %@@@@ //@@@@%+- .:=-----------:........ :=--- .=---. :-----:..-----:....... ----------------. ----------...-----........ %@@@@ //@@@@@@+ .=----------=: :=--- .=---. .=----- :---- :---------------. ---------- :---- .%@@@@ //@@@@@@+ .=----------=: :=--- -#########: .=---. -------- :----. ----: .--------------. ---------- :---- .----. :##%%@@@@ //@@@@@@*: .:----------:. ::: :=--- =@@@@@@@@@: .=---. ...-------: :----. .....----: --------------:.---------- :---- ....:----. :@@@@@@@@ //@@@@@@@@: -=------=- .@@%. :=--- =@@@@@@@@@: .=---. .=-------=. :---- ---------: -------------------------- :---- .---------. :@@@@@@@@ //@@@@@@@@: -=------:. .%@%. :=--- =@@@@@@@@@: .=----:::--------. :-----::---------: +- --------------------------:::-----::---------. :@@@@@@@@ //@@@@@@@@- :------=. :%@%. :=--- =@@@@@@@@@: .=--------------: .-----------------: .@+ ---------------------------------------------. :@@@@@@@@ //@@@@@@@@%# .-----=. *%@@%. :=--- =@@@@@@@@@: .=-------------. ------------------ .%+ -------------------------------------------- :@@@@@@@@ //@@@@@@@@*= .:-----=. #@@@%. :=--- =@@@@@@@@@: .=----------::: ---------------::: .%+ -------------------::--------------------::. :@@@@@@@@ //@@@@@@@@: -=-----=. #@@@%. :=--- =@@@@@@@@@: .=---------- --------------: .@+ -------------------. -------------------: :@@@@@@@@ //@@@@@@@@: -=-------: .::+%. :=--- =@@@@@@@@@: .=---------- --------. :. -------- .---------. .-----------. :::%@@@@ //@@@@@@@@: --------=- =@. :=--- =@@@@@@@@@: .=---------- :------- -------- .---------. .----------- %@@@@ //@@@@@@@@: .=---------- =@. :=--- =@@@@@@@@@: .=--------------- :----. -------- .=-------=. .----: :---- %@@@@ //@@@@@@#=. .=----------::: =@. :=--- =@@@@@@@@@: .=---------------::::. :----. .:.:. -------- .-------. .----. :---- ..... %@@@@ //@@@@@@+ .=----------=== =@. :=--- =@@@@@@@@@: .=------------------=: :----. ----- -------- :-----: .----: ----- ----: %@@@@ //@@@@@@+ .=----=-------- =@. :=--- =@@@@@@@@@: .=---. --------------------- ----- -------- :-----: .----------- ----: %@@@@ //@@@@@@+ .:=----:-------- =@. :=--- =@@@@@@@@@: .=---. :::::----------------. .----- :------- :----:: .-----------. .----: %@@@@ //@@@@@@+ -----=. -=------ =@. :=--- =@@@@@@@@@: .=---. ------------------ :------ :------ :---- .------------: :-----: %@@@@ //@@@@@@+ -----=. .:=----- =@. :=--- =@@@@@@@@@: .=---. .....-------------::::::------- :----:. ..... .-------------::::::------: %@@@@ //@@@@@@+ -----=. .------ =@. :=--- =@@@@@@@@@: .=---. -------------------------- :----. .-------------------------: %@@@@ //@@@@@@+ -----=. :==== =@. :====. =@@@@@@@@@: .=---. ------------------ :=---. .-----------------: %@@@@ //@@@@@@+ -----=. .:::: =@. .:::: =@@@@@@@@@: .=---. .----. ::-------------::: .:::: .---------. :-------------:::. %@@@@ //@@@@@@+ -=---=. =@. =@@@@@@@@@: .=--=. :@@@@+ .=-----------: -@@@@@@@@@- :------------. %@@@@ //@@@@@@+ ...... =@. =@@@@@@@@@: .... :@@@@#*******= ............ -@@@@@@@@@#*******- ............ %@@@@ //@@@@@@+ .........+@:..........+@@@@@@@@@: :@@@@@@@@@@@@#. ..............=@@@@@@@@@@@@@@@@@+. ..:%@@@@ //@@@@@@+ :%%%%%%%%%%@%%%%%%%%%%%%@@@@@@@@@: :@@@@@@@@@@@@%%- %%%%%%%%%%%%%%%@@@@@@@@@@@@@@@@@%%. :%%%%@@@@ //@@@@@@#============*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+===-------+%%%%@@@@@@@@@@*==================+%@@@@@@@%%%%%%%%%%%%%@@@@@@@@@@@@@+===---------------+%%@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*........ :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%: *@@@@@@@@@@@@@@@@#................ #@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#***********- .***%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%. *@@@@@@@@@@@@@#**= #@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@- *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. *@@@@@@@@@@@@@: #@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%==========. ..... :===============%#================= ..... *@@@@@@@@@#===. ........... #@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# -----. %* .----: *@@@@@@@@@* :---------: #@@@@@@ //@@@@@@@@@@@%::::::::::::::::::::. ::::: :::::-----:::: .. .----: *@@@@@@@%:. :::----------: #@@@@@@ //@@@@@@@@%### ----- -------------: .----: *@@@@@@%# .-------------: #@@@@@@ //@@@@@@@@+ .--------------------------------. .------. :---------: .----: *@@@@@@- :----------------: #@@@@@@ //@@@@%***- ............... :--------------------------------:. .:------:........----------: .----: *@@@@@@: .:----------::::::. #@@@@@@ //@@@@%. .--------------- :----------------------------------. ---------------------------: .----: *@@@@@@: .-----------: #@@@@@@ //@@@@%. .:::---------------:::. :----------------------.....:------. ---------------------------: .----: *@@@@@@: .:--------.... #@@@@@@ //@@@@%. ----------------------: :---------------------- :------. ---------------------------: .----: *@@@@@@: ---------- #@@@@@@ //@@@@%. .-::----------------------: .-----. :-------::---------------------: .----: *@@@@@@: ------: +######%@@@@@@ //@@@@%. .-------------------------: ----- :------------------------------: .----: *@@@@@@: ------: #@@@@@@@@@@@@@ //@@@@%. .-------------. .------: ----- -------------- .----- .----: *@@@@@@: ------: #@@@@@@@@@@@@@ //@@@@%. .-------:-----. .------: :----. ----- .----: -------------- ----- ..... .--- .----: *@@@@@@: ------:. =++*@@@@@@@@@@ //@@@@%. .------. :----. ------: #@@@@- ----- -@@@@# -------------- ----- ----- -@@@. .----: *@@@@@@: --------. :@@@@@@@@@@ //@@@@%. ...... :----. .:::------: #@@@@- ----- -@@@@%+- ..----------:. ----- :::::----- -@@%. .----: *@@@@@@: --------:::::. .---%@@@@@@ //@@@@%. :----. :---------: #@@@@- ----- -@@@@@@+ ---------- .----- .---------- -@@%. .----: *@@@@@@: -------------: #%@@@@@ //@@@@%. :-----:--------- #@@@@- ----- -@@@@@@+ --------: :------:----------- -@@%. .----: *@@@@@@: :------------::: .:%@@@@ //@@@@%:........ :--------------: #@@@@- ----- -@@@@@@+. --------. ------------------: -@@%. .----: *@@@@@@: .---------------. .%@@@@ //@@@@@%%%%%%%%* :------------- #@@@@- ----- -@@@@@@@@: .------. :------------------. -@@%. .----: *@@@@@@: :----------------: .%@@@@ //@@@@@@@@@@@@@* :----------::: .-#@@@@- ----- -@@@@@@#+. .:------. :---------------::: -@@%. .----: *@@@@@@+- .:::::-----------:. .%@@@@ //@@@@@@@@@@@@@* :---------: +@@@@@@- ----- -@@@@@@= --------. :--------------- -@@@. .----: *@@@@@@@% .-------------. .%@@@@ //@@@@@@@@@@@@@* :------... .+#@@@@@@- ----- -@@@@@@+ --------::---------....... .--- .----: :-------- ...----------. .%@@@@ //@@@@@@@@@@@@@* :------ -@@@@@@@@- ----- -@@@@@@+ ------------------- .----: ----------. .%@@@@ //@@@@@@@@@@@@@* :----: +##%@@@@@@@@- ----- -@@@@@@+ :-----------. .----- .----: +# :------. .%@@@@ //@@@@@@@@@@@@@* :----. ...#@@@@@@@@@@@- ----- -@@@@%#= ------------. .----- .----: +# .:-----. .%@@@@ //@@@@@@@@@@@@@* :----. :%%%%@@@@@@@@@@@- ----- -@@@@# --------------------- :----: .----: .-----------: :----. .%@@@@ //@@@@@@@@@@@@@* :----. -+@@@@@@#++++++++: ----- :++++= --------------------- :----: .-----.:-----------: .:----. .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* ----- --------------------- :----: .------------------: .------. .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* ----- .:-----..--------------:. ::----: .------------------: .::::. ::::------. .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* ----- :------ ---------------: .------: .------------------: :----. ----------. .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* :-----------------------. :------. .---------------------------: .---------- :-----:::--------: .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* :-----------------------: :------. :------:-------------------: .:::::::::: :---------------:. .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* :-----------------------: :------. .----: .------------------: :--------------- .%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* :-----------------------: :------. .::::. .:--------------:.:. .----: :-----------:... -=%@@@@ //@@@@@@@@@@@@@* :----. %@@@@@@@* ------------------------: :------. :------------- =@@@@# :-----------. #@@@@@@ //@@@@@@@@@@@@@* .... %@@@@@@@* ....................... ...... ............. +****************#@@@@* ........... -*%@@@@@@ //@@@@@@@@@@@@@* %@@@@@@@* #@@@@@@@@@@@@@@@@@@@@@* +@@@@@@@@ //@@@@@@@@@@@@@* %@@@@@@@* .######+ :###%@@@@@@@@@@@@@@@@@@@@@* ###%@@@@@@@@ //@@@@@@@@@@@@@#::::::::::::%@@@@@@@*:::::::::::::::::::::::::::::::::::::::-@@@@@@#::::::::::::::::::::=@@@@@@@@@@@@@@@@@@@@@@@@@#:::::::::::::::::::%@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ contract XtremePixels is ERC721r, ERC2981, Ownable, ReentrancyGuard, RevokableDefaultOperatorFilterer { using Counters for Counters.Counter; using Strings for uint256; //allows for uint256var.tostring() uint256 public MAX_MINT_PER_WALLET_PRESALE = 5; uint256 public MAX_MINT_PER_WALLET_SALE = 5; bytes32 public presaleMerkleRoot; string private baseURI; bool public enablePresale = false; bool public enableSale = false; struct User { uint256 countPresale; uint256 countSale; } mapping(address => User) public users; constructor(string memory __baseURI) ERC721r("XTREME PIXELS", "XPIX", 25_000) { _setDefaultRoyalty(0x28EbE06F78077ee754d3395BDEFa3E68b363D52d, 1000); baseURI = __baseURI; } function mintPresale(bytes32[] calldata _merkleProof, uint256 _amount) public { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(enablePresale, "Presale is not enabled"); require( users[msg.sender].countPresale + _amount <= MAX_MINT_PER_WALLET_PRESALE, "Exceeds max mint limit per wallet"); require(MerkleProof.verify(_merkleProof, presaleMerkleRoot, leaf), "Proof is invalid"); _mintRandomly(msg.sender, _amount); users[msg.sender].countPresale += _amount; } function mintSale(uint256 _amount) public { require(enableSale, "Sale is not enabled"); require( users[msg.sender].countSale + _amount <= MAX_MINT_PER_WALLET_SALE, "Exceeds max mint limit per wallet"); _mintRandomly(msg.sender, _amount); users[msg.sender].countSale += _amount; } /// ============ INTERNAL ============ function _mintRandomly(address to, uint256 amount) internal { _mintRandom(to, amount); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /// ============ ONLY OWNER ============ function setBaseURI(string calldata _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setEnablePresale(bool _enablePresale) external onlyOwner { require(enablePresale != _enablePresale, "Invalid status"); enablePresale = _enablePresale; } function setEnableSale(bool _enableSale) external onlyOwner { require(enableSale != _enableSale, "Invalid status"); enableSale = _enableSale; } function setMaxMintPerWalletPresale(uint256 _limit) external onlyOwner { require(MAX_MINT_PER_WALLET_PRESALE != _limit, "New limit is the same as the existing one"); MAX_MINT_PER_WALLET_PRESALE = _limit; } function setMaxMintPerWalletSale(uint256 _limit) external onlyOwner { require(MAX_MINT_PER_WALLET_SALE != _limit, "New limit is the same as the existing one"); MAX_MINT_PER_WALLET_SALE = _limit; } function setPresaleMerkleRoot(bytes32 _merkleRoot) external onlyOwner { presaleMerkleRoot = _merkleRoot; } function ownerMint() external onlyOwner { require(_ownerOf(1) == address(0), "The #1 token has been minted."); _mintAtIndex(msg.sender, 1); } /// ============ ERC2981 ============ /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721r, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { ERC721r._burn(tokenId); _resetTokenRoyalty(tokenId); } /// ============ OPERATOR FILTER REGISTRY ============ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function owner() public view override(UpdatableOperatorFilterer, Ownable) returns (address) { return Ownable.owner(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/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. This does random batch minting. */ abstract contract ERC721r is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint => uint) private _availableTokens; uint256 private _numAvailableTokens; uint256 immutable _maxSupply; // 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_, uint maxSupply_) { _name = name_; _symbol = symbol_; _maxSupply = maxSupply_; _numAvailableTokens = maxSupply_; } /** * @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); } function totalSupply() public view virtual returns (uint256) { return _maxSupply - _numAvailableTokens; } function maxSupply() public view virtual returns (uint256) { return _maxSupply; } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 = ERC721r.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721r.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mintIdWithoutBalanceUpdate(address to, uint256 tokenId) private { _beforeTokenTransfer(address(0), to, tokenId); _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } function _mintRandom(address to, uint _numToMint) internal virtual { require(_msgSender() == tx.origin, "Contracts cannot mint"); require(to != address(0), "ERC721: mint to the zero address"); require(_numToMint > 0, "ERC721r: need to mint at least one token"); // TODO: Probably don't need this as it will underflow and revert automatically in this case require(_numAvailableTokens >= _numToMint, "ERC721r: minting more tokens than available"); uint updatedNumAvailableTokens = _numAvailableTokens; for (uint256 i; i < _numToMint; ++i) {// Do this ++ unchecked? uint256 tokenId = getRandomAvailableTokenId(to, updatedNumAvailableTokens); _mintIdWithoutBalanceUpdate(to, tokenId); --updatedNumAvailableTokens; } _numAvailableTokens = updatedNumAvailableTokens; _balances[to] += _numToMint; } function getRandomAvailableTokenId(address to, uint updatedNumAvailableTokens) internal returns (uint256) { uint256 randomNum = uint256( keccak256( abi.encode( to, tx.gasprice, block.number, block.timestamp, block.prevrandao, blockhash(block.number - 1), address(this), updatedNumAvailableTokens ) ) ); uint256 randomIndex = randomNum % updatedNumAvailableTokens; return getAvailableTokenAtIndex(randomIndex, updatedNumAvailableTokens) + 1; } // Implements https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle. Code taken from CryptoPhunksV2 function getAvailableTokenAtIndex(uint256 indexToUse, uint updatedNumAvailableTokens) internal returns (uint256) { uint256 valAtIndex = _availableTokens[indexToUse]; uint256 result; if (valAtIndex == 0) { // This means the index itself is still an available token result = indexToUse; } else { // This means the index itself is not an available token, but the val at that index is. result = valAtIndex; } uint256 lastIndex = updatedNumAvailableTokens - 1; uint256 lastValInArray = _availableTokens[lastIndex]; if (indexToUse != lastIndex) { // Replace the value at indexToUse, now that it's been used. // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards. if (lastValInArray == 0) { // This means the index itself is still an available token _availableTokens[indexToUse] = lastIndex; } else { // This means the index itself is not an available token, but the val at that index is. _availableTokens[indexToUse] = lastValInArray; } } if (lastValInArray != 0) { // Gas refund courtsey of @dievardump delete _availableTokens[lastIndex]; } return result; } // Not as good as minting a specific tokenId, but will behave the same at the start // allowing you to explicitly mint some tokens at launch. function _mintAtIndex(address to, uint index) internal virtual { require(_msgSender() == tx.origin, "Contracts cannot mint"); require(to != address(0), "ERC721: mint to the zero address"); require(_numAvailableTokens >= 1, "ERC721r: minting more tokens than available"); uint tokenId = getAvailableTokenAtIndex(index, _numAvailableTokens); --_numAvailableTokens; _mintIdWithoutBalanceUpdate(to, tokenId); _balances[to] += 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(ERC721r.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721r.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} function _burn(uint256 tokenId) internal virtual { address owner = _ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {RevokableOperatorFilterer} from "./RevokableOperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION, CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. * Note that OpenSea will disable creator earnings enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() RevokableOperatorFilterer(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS, CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator earnings enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); /// @dev Emitted when someone other than the owner is trying to call an only owner function. error OnlyOwner(); event OperatorFilterRegistryAddressUpdated(address newRegistry); IOperatorFilterRegistry public operatorFilterRegistry; /// @dev The constructor that is called when the contract is being deployed. constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // 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(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { registry.register(address(this)); } } } } /** * @dev A helper function to check if the operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if the operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); emit OperatorFilterRegistryAddressUpdated(newRegistry); } /** * @dev Assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract. */ function owner() public view virtual returns (address); /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if (address(registry) != address(0) && address(registry).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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) (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 pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol"; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The * Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at * any point. As implemented, this abstract contract allows the contract owner to permanently skip the * OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry * address cannot be further updated. * Note that OpenSea will still disable creator earnings enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer { /// @dev Emitted when the registry has already been revoked. error RegistryHasBeenRevoked(); /// @dev Emitted when the initial registry address is attempted to be set to the zero address. error InitialRegistryAddressCannotBeZeroAddress(); event OperatorFilterRegistryRevoked(); bool public isOperatorFilterRegistryRevoked; /// @dev The constructor that is called when the contract is being deployed. constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe) { // don't allow creating a contract with a permanently revoked registry if (_registry == address(0)) { revert InitialRegistryAddressCannotBeZeroAddress(); } } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public override { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); emit OperatorFilterRegistryAddressUpdated(newRegistry); } /** * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner. */ function revokeOperatorFilterRegistry() public { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } // set to zero address to bypass checks operatorFilterRegistry = IOperatorFilterRegistry(address(0)); isOperatorFilterRegistryRevoked = true; emit OperatorFilterRegistryRevoked(); } }
// 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 // 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/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 (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "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":"__baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","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":false,"internalType":"address","name":"newRegistry","type":"address"}],"name":"OperatorFilterRegistryAddressUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"OperatorFilterRegistryRevoked","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":[],"name":"MAX_MINT_PER_WALLET_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_WALLET_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enablePresale","type":"bool"}],"name":"setEnablePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enableSale","type":"bool"}],"name":"setEnableSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxMintPerWalletPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxMintPerWalletSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"countPresale","type":"uint256"},{"internalType":"uint256","name":"countSale","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526005600d556005600e556000601160006101000a81548160ff0219169083151502179055506000601160016101000a81548160ff0219169083151502179055503480156200005157600080fd5b5060405162005ac738038062005ac783398181016040528101906200007791906200082d565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb660018282826040518060400160405280600d81526020017f585452454d4520504958454c53000000000000000000000000000000000000008152506040518060400160405280600481526020017f58504958000000000000000000000000000000000000000000000000000000008152506161a8826000908162000120919062000ac9565b50816001908162000132919062000ac9565b5080608081815250508060038190555050505062000165620001596200041f60201b60201c565b6200042760201b60201c565b6001600b81905550600083905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff163b11156200037057811562000252578073ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30856040518363ffffffff1660e01b81526004016200021892919062000bf5565b600060405180830381600087803b1580156200023357600080fd5b505af115801562000248573d6000803e3d6000fd5b505050506200036f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614620002fe578073ffffffffffffffffffffffffffffffffffffffff1663a0af290330856040518363ffffffff1660e01b8152600401620002c492919062000bf5565b600060405180830381600087803b158015620002df57600080fd5b505af1158015620002f4573d6000803e3d6000fd5b505050506200036e565b8073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000339919062000c22565b600060405180830381600087803b1580156200035457600080fd5b505af115801562000369573d6000803e3d6000fd5b505050505b5b5b50505050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620003db576040517fc49d17ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050620004067328ebe06f78077ee754d3395bdefa3e68b363d52d6103e8620004ed60201b60201c565b806010908162000417919062000ac9565b505062000d5a565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004fd6200069060201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200055e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005559062000cc6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620005d0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005c79062000d38565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200070382620006b8565b810181811067ffffffffffffffff82111715620007255762000724620006c9565b5b80604052505050565b60006200073a6200069a565b9050620007488282620006f8565b919050565b600067ffffffffffffffff8211156200076b576200076a620006c9565b5b6200077682620006b8565b9050602081019050919050565b60005b83811015620007a357808201518184015260208101905062000786565b60008484015250505050565b6000620007c6620007c0846200074d565b6200072e565b905082815260208101848484011115620007e557620007e4620006b3565b5b620007f284828562000783565b509392505050565b600082601f830112620008125762000811620006ae565b5b815162000824848260208601620007af565b91505092915050565b600060208284031215620008465762000845620006a4565b5b600082015167ffffffffffffffff811115620008675762000866620006a9565b5b6200087584828501620007fa565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008d157607f821691505b602082108103620008e757620008e662000889565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000912565b6200095d868362000912565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009aa620009a46200099e8462000975565b6200097f565b62000975565b9050919050565b6000819050919050565b620009c68362000989565b620009de620009d582620009b1565b8484546200091f565b825550505050565b600090565b620009f5620009e6565b62000a02818484620009bb565b505050565b5b8181101562000a2a5762000a1e600082620009eb565b60018101905062000a08565b5050565b601f82111562000a795762000a4381620008ed565b62000a4e8462000902565b8101602085101562000a5e578190505b62000a7662000a6d8562000902565b83018262000a07565b50505b505050565b600082821c905092915050565b600062000a9e6000198460080262000a7e565b1980831691505092915050565b600062000ab9838362000a8b565b9150826002028217905092915050565b62000ad4826200087e565b67ffffffffffffffff81111562000af05762000aef620006c9565b5b62000afc8254620008b8565b62000b0982828562000a2e565b600060209050601f83116001811462000b41576000841562000b2c578287015190505b62000b38858262000aab565b86555062000ba8565b601f19841662000b5186620008ed565b60005b8281101562000b7b5784890151825560018201915060208501945060208101905062000b54565b8683101562000b9b578489015162000b97601f89168262000a8b565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000bdd8262000bb0565b9050919050565b62000bef8162000bd0565b82525050565b600060408201905062000c0c600083018562000be4565b62000c1b602083018462000be4565b9392505050565b600060208201905062000c39600083018462000be4565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000cae602a8362000c3f565b915062000cbb8262000c50565b604082019050919050565b6000602082019050818103600083015262000ce18162000c9f565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000d2060198362000c3f565b915062000d2d8262000ce8565b602082019050919050565b6000602082019050818103600083015262000d538162000d11565b9050919050565b608051614d4a62000d7d6000396000818161082c01526116030152614d4a6000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063900f187a11610130578063b88d4fde116100b8578063d5abeb011161007c578063d5abeb011461063f578063e985e9c51461065d578063eb5314fc1461068d578063ecba222a146106a9578063f2fde38b146106c757610232565b8063b88d4fde1461059d578063b8d1e532146105b9578063c683d8e4146105d5578063c87b56dd146105f3578063cfaa898a1461062357610232565b8063a87430ba116100ff578063a87430ba1461050a578063a8eac4921461053b578063ad7f1ea114610559578063b0ccc31e14610575578063b12dc9911461059357610232565b8063900f187a1461049657806395d89b41146104b2578063a22cb465146104d0578063a50d1ad2146104ec57610232565b80632a55205a116101be5780636352211e116101825780636352211e146103f257806370a0823114610422578063715018a614610452578063825621771461045c5780638da5cb5b1461047857610232565b80632a55205a1461036357806342842e0e146103945780634875bccb146103b057806355f804b3146103cc5780635ef9432a146103e857610232565b806318160ddd1161020557806318160ddd146102d15780631ae10082146102ef57806322212e2b1461030d57806323b872dd1461032b57806328d7b2761461034757610232565b806301ffc9a71461023757806306fdde0314610267578063081812fc14610285578063095ea7b3146102b5575b600080fd5b610251600480360381019061024c919061303b565b6106e3565b60405161025e9190613083565b60405180910390f35b61026f6106f5565b60405161027c919061312e565b60405180910390f35b61029f600480360381019061029a9190613186565b610787565b6040516102ac91906131f4565b60405180910390f35b6102cf60048036038101906102ca919061323b565b61080c565b005b6102d9610825565b6040516102e6919061328a565b60405180910390f35b6102f761085a565b604051610304919061328a565b60405180910390f35b610315610860565b60405161032291906132be565b60405180910390f35b610345600480360381019061034091906132d9565b610866565b005b610361600480360381019061035c9190613358565b6108b5565b005b61037d60048036038101906103789190613385565b6108c7565b60405161038b9291906133c5565b60405180910390f35b6103ae60048036038101906103a991906132d9565b610ab1565b005b6103ca60048036038101906103c59190613186565b610b00565b005b6103e660048036038101906103e19190613453565b610c47565b005b6103f0610c65565b005b61040c60048036038101906104079190613186565b610da3565b60405161041991906131f4565b60405180910390f35b61043c600480360381019061043791906134a0565b610e29565b604051610449919061328a565b60405180910390f35b61045a610ee0565b005b610476600480360381019061047191906134f9565b610ef4565b005b610480610f6e565b60405161048d91906131f4565b60405180910390f35b6104b060048036038101906104ab9190613186565b610f7d565b005b6104ba610fd3565b6040516104c7919061312e565b60405180910390f35b6104ea60048036038101906104e59190613526565b611065565b005b6104f461107e565b604051610501919061328a565b60405180910390f35b610524600480360381019061051f91906134a0565b611084565b604051610532929190613566565b60405180910390f35b6105436110a8565b6040516105509190613083565b60405180910390f35b610573600480360381019061056e91906135e5565b6110bb565b005b61057d6112bd565b60405161058a91906136a4565b60405180910390f35b61059b6112e3565b005b6105b760048036038101906105b291906137ef565b611370565b005b6105d360048036038101906105ce91906134a0565b6113c1565b005b6105dd6114ef565b6040516105ea9190613083565b60405180910390f35b61060d60048036038101906106089190613186565b611502565b60405161061a919061312e565b60405180910390f35b61063d60048036038101906106389190613186565b6115a9565b005b6106476115ff565b604051610654919061328a565b60405180910390f35b61067760048036038101906106729190613872565b611627565b6040516106849190613083565b60405180910390f35b6106a760048036038101906106a291906134f9565b6116bb565b005b6106b1611735565b6040516106be9190613083565b60405180910390f35b6106e160048036038101906106dc91906134a0565b611748565b005b60006106ee826117cb565b9050919050565b606060008054610704906138e1565b80601f0160208091040260200160405190810160405280929190818152602001828054610730906138e1565b801561077d5780601f106107525761010080835404028352916020019161077d565b820191906000526020600020905b81548152906001019060200180831161076057829003601f168201915b5050505050905090565b600061079282611845565b6107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c890613984565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610816816118b1565b61082083836119f3565b505050565b60006003547f000000000000000000000000000000000000000000000000000000000000000061085591906139d3565b905090565b600e5481565b600f5481565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108a4576108a3336118b1565b5b6108af848484611b0a565b50505050565b6108bd611b6a565b80600f8190555050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610a5c5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610a66611be8565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a929190613a07565b610a9c9190613a78565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aef57610aee336118b1565b5b610afa848484611bf2565b50505050565b601160019054906101000a900460ff16610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613af5565b60405180910390fd5b600e5481601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154610ba09190613b15565b1115610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890613bbb565b60405180910390fd5b610beb3382611c12565b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610c3d9190613b15565b9250508190555050565b610c4f611b6a565b818160109182610c60929190613d88565b505050565b610c6d610f6e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cd1576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60149054906101000a900460ff1615610d18576040517f2aa3491e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60146101000a81548160ff0219169083151502179055507f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad1660405160405180910390a1565b600080610daf83611c20565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1790613eca565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090613f5c565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ee8611b6a565b610ef26000611c5d565b565b610efc611b6a565b801515601160019054906101000a900460ff16151503610f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4890613fc8565b60405180910390fd5b80601160016101000a81548160ff02191690831515021790555050565b6000610f78611d23565b905090565b610f85611b6a565b80600e5403610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc09061405a565b60405180910390fd5b80600e8190555050565b606060018054610fe2906138e1565b80601f016020809104026020016040519081016040528092919081815260200182805461100e906138e1565b801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b5050505050905090565b8161106f816118b1565b6110798383611d4d565b505050565b600d5481565b60126020528060005260406000206000915090508060000154908060010154905082565b601160009054906101000a900460ff1681565b6000336040516020016110ce91906140c2565b604051602081830303815290604052805190602001209050601160009054906101000a900460ff16611135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112c90614129565b60405180910390fd5b600d5482601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546111869190613b15565b11156111c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111be90613bbb565b60405180910390fd5b611215848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611d63565b611254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124b90614195565b60405180910390fd5b61125e3383611c12565b81601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546112b09190613b15565b9250508190555050505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112eb611b6a565b600073ffffffffffffffffffffffffffffffffffffffff1661130d6001611c20565b73ffffffffffffffffffffffffffffffffffffffff1614611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90614201565b60405180910390fd5b61136e336001611d7a565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113ae576113ad336118b1565b5b6113ba85858585611f30565b5050505050565b6113c9610f6e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461142d576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60149054906101000a900460ff1615611474576040517f2aa3491e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de476816040516114e491906131f4565b60405180910390a150565b601160019054906101000a900460ff1681565b606061150d82611845565b61154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614293565b60405180910390fd5b6000611556611f92565b9050600081511161157657604051806020016040528060008152506115a1565b8061158084612024565b6040516020016115919291906142ef565b6040516020818303038152906040525b915050919050565b6115b1611b6a565b80600d54036115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec9061405a565b60405180910390fd5b80600d8190555050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116c3611b6a565b801515601160009054906101000a900460ff16151503611718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170f90613fc8565b60405180910390fd5b80601160006101000a81548160ff02191690831515021790555050565b600c60149054906101000a900460ff1681565b611750611b6a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b690614385565b60405180910390fd5b6117c881611c5d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061183e575061183d826120f2565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561192c575060008173ffffffffffffffffffffffffffffffffffffffff163b115b156119ef578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b815260040161196c9291906143a5565b602060405180830381865afa158015611989573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ad91906143e3565b6119ee57816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119e591906131f4565b60405180910390fd5b5b5050565b60006119fe82610da3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590614482565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611a8d6121d4565b73ffffffffffffffffffffffffffffffffffffffff161480611abc5750611abb81611ab66121d4565b611627565b5b611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af290614514565b60405180910390fd5b611b0583836121dc565b505050565b611b1b611b156121d4565b82612295565b611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b51906145a6565b60405180910390fd5b611b65838383612373565b505050565b611b726121d4565b73ffffffffffffffffffffffffffffffffffffffff16611b90610f6e565b73ffffffffffffffffffffffffffffffffffffffff1614611be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdd90614612565b60405180910390fd5b565b6000612710905090565b611c0d83838360405180602001604052806000815250611370565b505050565b611c1c82826125d9565b5050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d5f611d586121d4565b83836127f0565b5050565b600082611d70858461295c565b1490509392505050565b3273ffffffffffffffffffffffffffffffffffffffff16611d996121d4565b73ffffffffffffffffffffffffffffffffffffffff1614611def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de69061467e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e55906146ea565b60405180910390fd5b60016003541015611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b9061477c565b60405180910390fd5b6000611eb2826003546129b2565b9050600360008154611ec39061479c565b91905081905550611ed48382612a7c565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f249190613b15565b92505081905550505050565b611f41611f3b6121d4565b83612295565b611f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f77906145a6565b60405180910390fd5b611f8c84848484612b46565b50505050565b606060108054611fa1906138e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611fcd906138e1565b801561201a5780601f10611fef5761010080835404028352916020019161201a565b820191906000526020600020905b815481529060010190602001808311611ffd57829003601f168201915b5050505050905090565b60606000600161203384612ba2565b01905060008167ffffffffffffffff811115612052576120516136c4565b5b6040519080825280601f01601f1916602001820160405280156120845781602001600182028036833780820191505090505b509050600082602001820190505b6001156120e7578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816120db576120da613a49565b5b04945060008503612092575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121bd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121cd57506121cc82612cf5565b5b9050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661224f83610da3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122a082611845565b6122df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d690614837565b60405180910390fd5b60006122ea83610da3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061235957508373ffffffffffffffffffffffffffffffffffffffff1661234184610787565b73ffffffffffffffffffffffffffffffffffffffff16145b8061236a57506123698185611627565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661239382610da3565b73ffffffffffffffffffffffffffffffffffffffff16146123e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e0906148c9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f9061495b565b60405180910390fd5b612463838383612d5f565b61246e6000826121dc565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124be91906139d3565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125159190613b15565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125d4838383612d64565b505050565b3273ffffffffffffffffffffffffffffffffffffffff166125f86121d4565b73ffffffffffffffffffffffffffffffffffffffff161461264e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126459061467e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b4906146ea565b60405180910390fd5b60008111612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f7906149ed565b60405180910390fd5b806003541015612745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273c9061477c565b60405180910390fd5b6000600354905060005b8281101561278d5760006127638584612d69565b905061276f8582612a7c565b826127799061479c565b9250508061278690614a0d565b905061274f565b508060038190555081600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e49190613b15565b92505081905550505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361285e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285590614aa1565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161294f9190613083565b60405180910390a3505050565b60008082905060005b84518110156129a7576129928286838151811061298557612984614ac1565b5b6020026020010151612de3565b9150808061299f90614a0d565b915050612965565b508091505092915050565b6000806002600085815260200190815260200160002054905060008082036129dc578490506129e0565b8190505b60006001856129ef91906139d3565b9050600060026000838152602001908152602001600020549050818714612a4f5760008103612a3557816002600089815260200190815260200160002081905550612a4e565b8060026000898152602001908152602001600020819055505b5b60008114612a6f5760026000838152602001908152602001600020600090555b8294505050505092915050565b612a8860008383612d5f565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b4260008383612d64565b5050565b612b51848484612373565b612b5d84848484612e0e565b612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9390614b62565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c00577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bf657612bf5613a49565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c3d576d04ee2d6d415b85acef81000000008381612c3357612c32613a49565b5b0492506020810190505b662386f26fc100008310612c6c57662386f26fc100008381612c6257612c61613a49565b5b0492506010810190505b6305f5e1008310612c95576305f5e1008381612c8b57612c8a613a49565b5b0492506008810190505b6127108310612cba576127108381612cb057612caf613a49565b5b0492506004810190505b60648310612cdd5760648381612cd357612cd2613a49565b5b0492506002810190505b600a8310612cec576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b505050565b600080833a434244600143612d7e91906139d3565b403089604051602001612d98989796959493929190614b82565b6040516020818303038152906040528051906020012060001c905060008382612dc19190614c00565b90506001612dcf82866129b2565b612dd99190613b15565b9250505092915050565b6000818310612dfb57612df68284612f95565b612e06565b612e058383612f95565b5b905092915050565b6000612e2f8473ffffffffffffffffffffffffffffffffffffffff16612fac565b15612f88578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e586121d4565b8786866040518563ffffffff1660e01b8152600401612e7a9493929190614c86565b6020604051808303816000875af1925050508015612eb657506040513d601f19601f82011682018060405250810190612eb39190614ce7565b60015b612f38573d8060008114612ee6576040519150601f19603f3d011682016040523d82523d6000602084013e612eeb565b606091505b506000815103612f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2790614b62565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f8d565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe3565b811461302357600080fd5b50565b6000813590506130358161300f565b92915050565b60006020828403121561305157613050612fd9565b5b600061305f84828501613026565b91505092915050565b60008115159050919050565b61307d81613068565b82525050565b60006020820190506130986000830184613074565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130d85780820151818401526020810190506130bd565b60008484015250505050565b6000601f19601f8301169050919050565b60006131008261309e565b61310a81856130a9565b935061311a8185602086016130ba565b613123816130e4565b840191505092915050565b6000602082019050818103600083015261314881846130f5565b905092915050565b6000819050919050565b61316381613150565b811461316e57600080fd5b50565b6000813590506131808161315a565b92915050565b60006020828403121561319c5761319b612fd9565b5b60006131aa84828501613171565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131de826131b3565b9050919050565b6131ee816131d3565b82525050565b600060208201905061320960008301846131e5565b92915050565b613218816131d3565b811461322357600080fd5b50565b6000813590506132358161320f565b92915050565b6000806040838503121561325257613251612fd9565b5b600061326085828601613226565b925050602061327185828601613171565b9150509250929050565b61328481613150565b82525050565b600060208201905061329f600083018461327b565b92915050565b6000819050919050565b6132b8816132a5565b82525050565b60006020820190506132d360008301846132af565b92915050565b6000806000606084860312156132f2576132f1612fd9565b5b600061330086828701613226565b935050602061331186828701613226565b925050604061332286828701613171565b9150509250925092565b613335816132a5565b811461334057600080fd5b50565b6000813590506133528161332c565b92915050565b60006020828403121561336e5761336d612fd9565b5b600061337c84828501613343565b91505092915050565b6000806040838503121561339c5761339b612fd9565b5b60006133aa85828601613171565b92505060206133bb85828601613171565b9150509250929050565b60006040820190506133da60008301856131e5565b6133e7602083018461327b565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f840112613413576134126133ee565b5b8235905067ffffffffffffffff8111156134305761342f6133f3565b5b60208301915083600182028301111561344c5761344b6133f8565b5b9250929050565b6000806020838503121561346a57613469612fd9565b5b600083013567ffffffffffffffff81111561348857613487612fde565b5b613494858286016133fd565b92509250509250929050565b6000602082840312156134b6576134b5612fd9565b5b60006134c484828501613226565b91505092915050565b6134d681613068565b81146134e157600080fd5b50565b6000813590506134f3816134cd565b92915050565b60006020828403121561350f5761350e612fd9565b5b600061351d848285016134e4565b91505092915050565b6000806040838503121561353d5761353c612fd9565b5b600061354b85828601613226565b925050602061355c858286016134e4565b9150509250929050565b600060408201905061357b600083018561327b565b613588602083018461327b565b9392505050565b60008083601f8401126135a5576135a46133ee565b5b8235905067ffffffffffffffff8111156135c2576135c16133f3565b5b6020830191508360208202830111156135de576135dd6133f8565b5b9250929050565b6000806000604084860312156135fe576135fd612fd9565b5b600084013567ffffffffffffffff81111561361c5761361b612fde565b5b6136288682870161358f565b9350935050602061363b86828701613171565b9150509250925092565b6000819050919050565b600061366a613665613660846131b3565b613645565b6131b3565b9050919050565b600061367c8261364f565b9050919050565b600061368e82613671565b9050919050565b61369e81613683565b82525050565b60006020820190506136b96000830184613695565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136fc826130e4565b810181811067ffffffffffffffff8211171561371b5761371a6136c4565b5b80604052505050565b600061372e612fcf565b905061373a82826136f3565b919050565b600067ffffffffffffffff82111561375a576137596136c4565b5b613763826130e4565b9050602081019050919050565b82818337600083830152505050565b600061379261378d8461373f565b613724565b9050828152602081018484840111156137ae576137ad6136bf565b5b6137b9848285613770565b509392505050565b600082601f8301126137d6576137d56133ee565b5b81356137e684826020860161377f565b91505092915050565b6000806000806080858703121561380957613808612fd9565b5b600061381787828801613226565b945050602061382887828801613226565b935050604061383987828801613171565b925050606085013567ffffffffffffffff81111561385a57613859612fde565b5b613866878288016137c1565b91505092959194509250565b6000806040838503121561388957613888612fd9565b5b600061389785828601613226565b92505060206138a885828601613226565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138f957607f821691505b60208210810361390c5761390b6138b2565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061396e602c836130a9565b915061397982613912565b604082019050919050565b6000602082019050818103600083015261399d81613961565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139de82613150565b91506139e983613150565b9250828203905081811115613a0157613a006139a4565b5b92915050565b6000613a1282613150565b9150613a1d83613150565b9250828202613a2b81613150565b91508282048414831517613a4257613a416139a4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613a8382613150565b9150613a8e83613150565b925082613a9e57613a9d613a49565b5b828204905092915050565b7f53616c65206973206e6f7420656e61626c656400000000000000000000000000600082015250565b6000613adf6013836130a9565b9150613aea82613aa9565b602082019050919050565b60006020820190508181036000830152613b0e81613ad2565b9050919050565b6000613b2082613150565b9150613b2b83613150565b9250828201905080821115613b4357613b426139a4565b5b92915050565b7f45786365656473206d6178206d696e74206c696d6974207065722077616c6c6560008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ba56021836130a9565b9150613bb082613b49565b604082019050919050565b60006020820190508181036000830152613bd481613b98565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613c487fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c0b565b613c528683613c0b565b95508019841693508086168417925050509392505050565b6000613c85613c80613c7b84613150565b613645565b613150565b9050919050565b6000819050919050565b613c9f83613c6a565b613cb3613cab82613c8c565b848454613c18565b825550505050565b600090565b613cc8613cbb565b613cd3818484613c96565b505050565b5b81811015613cf757613cec600082613cc0565b600181019050613cd9565b5050565b601f821115613d3c57613d0d81613be6565b613d1684613bfb565b81016020851015613d25578190505b613d39613d3185613bfb565b830182613cd8565b50505b505050565b600082821c905092915050565b6000613d5f60001984600802613d41565b1980831691505092915050565b6000613d788383613d4e565b9150826002028217905092915050565b613d928383613bdb565b67ffffffffffffffff811115613dab57613daa6136c4565b5b613db582546138e1565b613dc0828285613cfb565b6000601f831160018114613def5760008415613ddd578287013590505b613de78582613d6c565b865550613e4f565b601f198416613dfd86613be6565b60005b82811015613e2557848901358255600182019150602085019450602081019050613e00565b86831015613e425784890135613e3e601f891682613d4e565b8355505b6001600288020188555050505b50505050505050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613eb46029836130a9565b9150613ebf82613e58565b604082019050919050565b60006020820190508181036000830152613ee381613ea7565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613f46602a836130a9565b9150613f5182613eea565b604082019050919050565b60006020820190508181036000830152613f7581613f39565b9050919050565b7f496e76616c696420737461747573000000000000000000000000000000000000600082015250565b6000613fb2600e836130a9565b9150613fbd82613f7c565b602082019050919050565b60006020820190508181036000830152613fe181613fa5565b9050919050565b7f4e6577206c696d6974206973207468652073616d65206173207468652065786960008201527f7374696e67206f6e650000000000000000000000000000000000000000000000602082015250565b60006140446029836130a9565b915061404f82613fe8565b604082019050919050565b6000602082019050818103600083015261407381614037565b9050919050565b60008160601b9050919050565b60006140928261407a565b9050919050565b60006140a482614087565b9050919050565b6140bc6140b7826131d3565b614099565b82525050565b60006140ce82846140ab565b60148201915081905092915050565b7f50726573616c65206973206e6f7420656e61626c656400000000000000000000600082015250565b60006141136016836130a9565b915061411e826140dd565b602082019050919050565b6000602082019050818103600083015261414281614106565b9050919050565b7f50726f6f6620697320696e76616c696400000000000000000000000000000000600082015250565b600061417f6010836130a9565b915061418a82614149565b602082019050919050565b600060208201905081810360008301526141ae81614172565b9050919050565b7f54686520233120746f6b656e20686173206265656e206d696e7465642e000000600082015250565b60006141eb601d836130a9565b91506141f6826141b5565b602082019050919050565b6000602082019050818103600083015261421a816141de565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061427d602f836130a9565b915061428882614221565b604082019050919050565b600060208201905081810360008301526142ac81614270565b9050919050565b600081905092915050565b60006142c98261309e565b6142d381856142b3565b93506142e38185602086016130ba565b80840191505092915050565b60006142fb82856142be565b915061430782846142be565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061436f6026836130a9565b915061437a82614313565b604082019050919050565b6000602082019050818103600083015261439e81614362565b9050919050565b60006040820190506143ba60008301856131e5565b6143c760208301846131e5565b9392505050565b6000815190506143dd816134cd565b92915050565b6000602082840312156143f9576143f8612fd9565b5b6000614407848285016143ce565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061446c6021836130a9565b915061447782614410565b604082019050919050565b6000602082019050818103600083015261449b8161445f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006144fe6038836130a9565b9150614509826144a2565b604082019050919050565b6000602082019050818103600083015261452d816144f1565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006145906031836130a9565b915061459b82614534565b604082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145fc6020836130a9565b9150614607826145c6565b602082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b7f436f6e7472616374732063616e6e6f74206d696e740000000000000000000000600082015250565b60006146686015836130a9565b915061467382614632565b602082019050919050565b600060208201905081810360008301526146978161465b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006146d46020836130a9565b91506146df8261469e565b602082019050919050565b60006020820190508181036000830152614703816146c7565b9050919050565b7f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b6000614766602b836130a9565b91506147718261470a565b604082019050919050565b6000602082019050818103600083015261479581614759565b9050919050565b60006147a782613150565b9150600082036147ba576147b96139a4565b5b600182039050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614821602c836130a9565b915061482c826147c5565b604082019050919050565b6000602082019050818103600083015261485081614814565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006148b36025836130a9565b91506148be82614857565b604082019050919050565b600060208201905081810360008301526148e2816148a6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149456024836130a9565b9150614950826148e9565b604082019050919050565b6000602082019050818103600083015261497481614938565b9050919050565b7f455243373231723a206e65656420746f206d696e74206174206c65617374206f60008201527f6e6520746f6b656e000000000000000000000000000000000000000000000000602082015250565b60006149d76028836130a9565b91506149e28261497b565b604082019050919050565b60006020820190508181036000830152614a06816149ca565b9050919050565b6000614a1882613150565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a4a57614a496139a4565b5b600182019050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a8b6019836130a9565b9150614a9682614a55565b602082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b4c6032836130a9565b9150614b5782614af0565b604082019050919050565b60006020820190508181036000830152614b7b81614b3f565b9050919050565b600061010082019050614b98600083018b6131e5565b614ba5602083018a61327b565b614bb2604083018961327b565b614bbf606083018861327b565b614bcc608083018761327b565b614bd960a08301866132af565b614be660c08301856131e5565b614bf360e083018461327b565b9998505050505050505050565b6000614c0b82613150565b9150614c1683613150565b925082614c2657614c25613a49565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614c5882614c31565b614c628185614c3c565b9350614c728185602086016130ba565b614c7b816130e4565b840191505092915050565b6000608082019050614c9b60008301876131e5565b614ca860208301866131e5565b614cb5604083018561327b565b8181036060830152614cc78184614c4d565b905095945050505050565b600081519050614ce18161300f565b92915050565b600060208284031215614cfd57614cfc612fd9565b5b6000614d0b84828501614cd2565b9150509291505056fea264697066735822122044d197154aec88b580c2d10166e9d0c17345d9dc6ab9e1243383aef8d1fc80c464736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54416e7a5269566b723637624151594437595877457975394444667139736a34413177476475515579374e772f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c8063900f187a11610130578063b88d4fde116100b8578063d5abeb011161007c578063d5abeb011461063f578063e985e9c51461065d578063eb5314fc1461068d578063ecba222a146106a9578063f2fde38b146106c757610232565b8063b88d4fde1461059d578063b8d1e532146105b9578063c683d8e4146105d5578063c87b56dd146105f3578063cfaa898a1461062357610232565b8063a87430ba116100ff578063a87430ba1461050a578063a8eac4921461053b578063ad7f1ea114610559578063b0ccc31e14610575578063b12dc9911461059357610232565b8063900f187a1461049657806395d89b41146104b2578063a22cb465146104d0578063a50d1ad2146104ec57610232565b80632a55205a116101be5780636352211e116101825780636352211e146103f257806370a0823114610422578063715018a614610452578063825621771461045c5780638da5cb5b1461047857610232565b80632a55205a1461036357806342842e0e146103945780634875bccb146103b057806355f804b3146103cc5780635ef9432a146103e857610232565b806318160ddd1161020557806318160ddd146102d15780631ae10082146102ef57806322212e2b1461030d57806323b872dd1461032b57806328d7b2761461034757610232565b806301ffc9a71461023757806306fdde0314610267578063081812fc14610285578063095ea7b3146102b5575b600080fd5b610251600480360381019061024c919061303b565b6106e3565b60405161025e9190613083565b60405180910390f35b61026f6106f5565b60405161027c919061312e565b60405180910390f35b61029f600480360381019061029a9190613186565b610787565b6040516102ac91906131f4565b60405180910390f35b6102cf60048036038101906102ca919061323b565b61080c565b005b6102d9610825565b6040516102e6919061328a565b60405180910390f35b6102f761085a565b604051610304919061328a565b60405180910390f35b610315610860565b60405161032291906132be565b60405180910390f35b610345600480360381019061034091906132d9565b610866565b005b610361600480360381019061035c9190613358565b6108b5565b005b61037d60048036038101906103789190613385565b6108c7565b60405161038b9291906133c5565b60405180910390f35b6103ae60048036038101906103a991906132d9565b610ab1565b005b6103ca60048036038101906103c59190613186565b610b00565b005b6103e660048036038101906103e19190613453565b610c47565b005b6103f0610c65565b005b61040c60048036038101906104079190613186565b610da3565b60405161041991906131f4565b60405180910390f35b61043c600480360381019061043791906134a0565b610e29565b604051610449919061328a565b60405180910390f35b61045a610ee0565b005b610476600480360381019061047191906134f9565b610ef4565b005b610480610f6e565b60405161048d91906131f4565b60405180910390f35b6104b060048036038101906104ab9190613186565b610f7d565b005b6104ba610fd3565b6040516104c7919061312e565b60405180910390f35b6104ea60048036038101906104e59190613526565b611065565b005b6104f461107e565b604051610501919061328a565b60405180910390f35b610524600480360381019061051f91906134a0565b611084565b604051610532929190613566565b60405180910390f35b6105436110a8565b6040516105509190613083565b60405180910390f35b610573600480360381019061056e91906135e5565b6110bb565b005b61057d6112bd565b60405161058a91906136a4565b60405180910390f35b61059b6112e3565b005b6105b760048036038101906105b291906137ef565b611370565b005b6105d360048036038101906105ce91906134a0565b6113c1565b005b6105dd6114ef565b6040516105ea9190613083565b60405180910390f35b61060d60048036038101906106089190613186565b611502565b60405161061a919061312e565b60405180910390f35b61063d60048036038101906106389190613186565b6115a9565b005b6106476115ff565b604051610654919061328a565b60405180910390f35b61067760048036038101906106729190613872565b611627565b6040516106849190613083565b60405180910390f35b6106a760048036038101906106a291906134f9565b6116bb565b005b6106b1611735565b6040516106be9190613083565b60405180910390f35b6106e160048036038101906106dc91906134a0565b611748565b005b60006106ee826117cb565b9050919050565b606060008054610704906138e1565b80601f0160208091040260200160405190810160405280929190818152602001828054610730906138e1565b801561077d5780601f106107525761010080835404028352916020019161077d565b820191906000526020600020905b81548152906001019060200180831161076057829003601f168201915b5050505050905090565b600061079282611845565b6107d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c890613984565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610816816118b1565b61082083836119f3565b505050565b60006003547f00000000000000000000000000000000000000000000000000000000000061a861085591906139d3565b905090565b600e5481565b600f5481565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108a4576108a3336118b1565b5b6108af848484611b0a565b50505050565b6108bd611b6a565b80600f8190555050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610a5c5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610a66611be8565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a929190613a07565b610a9c9190613a78565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aef57610aee336118b1565b5b610afa848484611bf2565b50505050565b601160019054906101000a900460ff16610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613af5565b60405180910390fd5b600e5481601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154610ba09190613b15565b1115610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890613bbb565b60405180910390fd5b610beb3382611c12565b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610c3d9190613b15565b9250508190555050565b610c4f611b6a565b818160109182610c60929190613d88565b505050565b610c6d610f6e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cd1576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60149054906101000a900460ff1615610d18576040517f2aa3491e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60146101000a81548160ff0219169083151502179055507f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad1660405160405180910390a1565b600080610daf83611c20565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1790613eca565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090613f5c565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ee8611b6a565b610ef26000611c5d565b565b610efc611b6a565b801515601160019054906101000a900460ff16151503610f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4890613fc8565b60405180910390fd5b80601160016101000a81548160ff02191690831515021790555050565b6000610f78611d23565b905090565b610f85611b6a565b80600e5403610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc09061405a565b60405180910390fd5b80600e8190555050565b606060018054610fe2906138e1565b80601f016020809104026020016040519081016040528092919081815260200182805461100e906138e1565b801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b5050505050905090565b8161106f816118b1565b6110798383611d4d565b505050565b600d5481565b60126020528060005260406000206000915090508060000154908060010154905082565b601160009054906101000a900460ff1681565b6000336040516020016110ce91906140c2565b604051602081830303815290604052805190602001209050601160009054906101000a900460ff16611135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112c90614129565b60405180910390fd5b600d5482601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546111869190613b15565b11156111c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111be90613bbb565b60405180910390fd5b611215848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611d63565b611254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124b90614195565b60405180910390fd5b61125e3383611c12565b81601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546112b09190613b15565b9250508190555050505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112eb611b6a565b600073ffffffffffffffffffffffffffffffffffffffff1661130d6001611c20565b73ffffffffffffffffffffffffffffffffffffffff1614611363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135a90614201565b60405180910390fd5b61136e336001611d7a565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113ae576113ad336118b1565b5b6113ba85858585611f30565b5050505050565b6113c9610f6e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461142d576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c60149054906101000a900460ff1615611474576040517f2aa3491e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de476816040516114e491906131f4565b60405180910390a150565b601160019054906101000a900460ff1681565b606061150d82611845565b61154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614293565b60405180910390fd5b6000611556611f92565b9050600081511161157657604051806020016040528060008152506115a1565b8061158084612024565b6040516020016115919291906142ef565b6040516020818303038152906040525b915050919050565b6115b1611b6a565b80600d54036115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec9061405a565b60405180910390fd5b80600d8190555050565b60007f00000000000000000000000000000000000000000000000000000000000061a8905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116c3611b6a565b801515601160009054906101000a900460ff16151503611718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170f90613fc8565b60405180910390fd5b80601160006101000a81548160ff02191690831515021790555050565b600c60149054906101000a900460ff1681565b611750611b6a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b690614385565b60405180910390fd5b6117c881611c5d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061183e575061183d826120f2565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561192c575060008173ffffffffffffffffffffffffffffffffffffffff163b115b156119ef578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b815260040161196c9291906143a5565b602060405180830381865afa158015611989573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ad91906143e3565b6119ee57816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119e591906131f4565b60405180910390fd5b5b5050565b60006119fe82610da3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590614482565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611a8d6121d4565b73ffffffffffffffffffffffffffffffffffffffff161480611abc5750611abb81611ab66121d4565b611627565b5b611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af290614514565b60405180910390fd5b611b0583836121dc565b505050565b611b1b611b156121d4565b82612295565b611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b51906145a6565b60405180910390fd5b611b65838383612373565b505050565b611b726121d4565b73ffffffffffffffffffffffffffffffffffffffff16611b90610f6e565b73ffffffffffffffffffffffffffffffffffffffff1614611be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdd90614612565b60405180910390fd5b565b6000612710905090565b611c0d83838360405180602001604052806000815250611370565b505050565b611c1c82826125d9565b5050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d5f611d586121d4565b83836127f0565b5050565b600082611d70858461295c565b1490509392505050565b3273ffffffffffffffffffffffffffffffffffffffff16611d996121d4565b73ffffffffffffffffffffffffffffffffffffffff1614611def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de69061467e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e55906146ea565b60405180910390fd5b60016003541015611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b9061477c565b60405180910390fd5b6000611eb2826003546129b2565b9050600360008154611ec39061479c565b91905081905550611ed48382612a7c565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f249190613b15565b92505081905550505050565b611f41611f3b6121d4565b83612295565b611f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f77906145a6565b60405180910390fd5b611f8c84848484612b46565b50505050565b606060108054611fa1906138e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611fcd906138e1565b801561201a5780601f10611fef5761010080835404028352916020019161201a565b820191906000526020600020905b815481529060010190602001808311611ffd57829003601f168201915b5050505050905090565b60606000600161203384612ba2565b01905060008167ffffffffffffffff811115612052576120516136c4565b5b6040519080825280601f01601f1916602001820160405280156120845781602001600182028036833780820191505090505b509050600082602001820190505b6001156120e7578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816120db576120da613a49565b5b04945060008503612092575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121bd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121cd57506121cc82612cf5565b5b9050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661224f83610da3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122a082611845565b6122df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d690614837565b60405180910390fd5b60006122ea83610da3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061235957508373ffffffffffffffffffffffffffffffffffffffff1661234184610787565b73ffffffffffffffffffffffffffffffffffffffff16145b8061236a57506123698185611627565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661239382610da3565b73ffffffffffffffffffffffffffffffffffffffff16146123e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e0906148c9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f9061495b565b60405180910390fd5b612463838383612d5f565b61246e6000826121dc565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124be91906139d3565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125159190613b15565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125d4838383612d64565b505050565b3273ffffffffffffffffffffffffffffffffffffffff166125f86121d4565b73ffffffffffffffffffffffffffffffffffffffff161461264e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126459061467e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b4906146ea565b60405180910390fd5b60008111612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f7906149ed565b60405180910390fd5b806003541015612745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273c9061477c565b60405180910390fd5b6000600354905060005b8281101561278d5760006127638584612d69565b905061276f8582612a7c565b826127799061479c565b9250508061278690614a0d565b905061274f565b508060038190555081600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e49190613b15565b92505081905550505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361285e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285590614aa1565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161294f9190613083565b60405180910390a3505050565b60008082905060005b84518110156129a7576129928286838151811061298557612984614ac1565b5b6020026020010151612de3565b9150808061299f90614a0d565b915050612965565b508091505092915050565b6000806002600085815260200190815260200160002054905060008082036129dc578490506129e0565b8190505b60006001856129ef91906139d3565b9050600060026000838152602001908152602001600020549050818714612a4f5760008103612a3557816002600089815260200190815260200160002081905550612a4e565b8060026000898152602001908152602001600020819055505b5b60008114612a6f5760026000838152602001908152602001600020600090555b8294505050505092915050565b612a8860008383612d5f565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b4260008383612d64565b5050565b612b51848484612373565b612b5d84848484612e0e565b612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9390614b62565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c00577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bf657612bf5613a49565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c3d576d04ee2d6d415b85acef81000000008381612c3357612c32613a49565b5b0492506020810190505b662386f26fc100008310612c6c57662386f26fc100008381612c6257612c61613a49565b5b0492506010810190505b6305f5e1008310612c95576305f5e1008381612c8b57612c8a613a49565b5b0492506008810190505b6127108310612cba576127108381612cb057612caf613a49565b5b0492506004810190505b60648310612cdd5760648381612cd357612cd2613a49565b5b0492506002810190505b600a8310612cec576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b505050565b600080833a434244600143612d7e91906139d3565b403089604051602001612d98989796959493929190614b82565b6040516020818303038152906040528051906020012060001c905060008382612dc19190614c00565b90506001612dcf82866129b2565b612dd99190613b15565b9250505092915050565b6000818310612dfb57612df68284612f95565b612e06565b612e058383612f95565b5b905092915050565b6000612e2f8473ffffffffffffffffffffffffffffffffffffffff16612fac565b15612f88578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e586121d4565b8786866040518563ffffffff1660e01b8152600401612e7a9493929190614c86565b6020604051808303816000875af1925050508015612eb657506040513d601f19601f82011682018060405250810190612eb39190614ce7565b60015b612f38573d8060008114612ee6576040519150601f19603f3d011682016040523d82523d6000602084013e612eeb565b606091505b506000815103612f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2790614b62565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f8d565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe3565b811461302357600080fd5b50565b6000813590506130358161300f565b92915050565b60006020828403121561305157613050612fd9565b5b600061305f84828501613026565b91505092915050565b60008115159050919050565b61307d81613068565b82525050565b60006020820190506130986000830184613074565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130d85780820151818401526020810190506130bd565b60008484015250505050565b6000601f19601f8301169050919050565b60006131008261309e565b61310a81856130a9565b935061311a8185602086016130ba565b613123816130e4565b840191505092915050565b6000602082019050818103600083015261314881846130f5565b905092915050565b6000819050919050565b61316381613150565b811461316e57600080fd5b50565b6000813590506131808161315a565b92915050565b60006020828403121561319c5761319b612fd9565b5b60006131aa84828501613171565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131de826131b3565b9050919050565b6131ee816131d3565b82525050565b600060208201905061320960008301846131e5565b92915050565b613218816131d3565b811461322357600080fd5b50565b6000813590506132358161320f565b92915050565b6000806040838503121561325257613251612fd9565b5b600061326085828601613226565b925050602061327185828601613171565b9150509250929050565b61328481613150565b82525050565b600060208201905061329f600083018461327b565b92915050565b6000819050919050565b6132b8816132a5565b82525050565b60006020820190506132d360008301846132af565b92915050565b6000806000606084860312156132f2576132f1612fd9565b5b600061330086828701613226565b935050602061331186828701613226565b925050604061332286828701613171565b9150509250925092565b613335816132a5565b811461334057600080fd5b50565b6000813590506133528161332c565b92915050565b60006020828403121561336e5761336d612fd9565b5b600061337c84828501613343565b91505092915050565b6000806040838503121561339c5761339b612fd9565b5b60006133aa85828601613171565b92505060206133bb85828601613171565b9150509250929050565b60006040820190506133da60008301856131e5565b6133e7602083018461327b565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f840112613413576134126133ee565b5b8235905067ffffffffffffffff8111156134305761342f6133f3565b5b60208301915083600182028301111561344c5761344b6133f8565b5b9250929050565b6000806020838503121561346a57613469612fd9565b5b600083013567ffffffffffffffff81111561348857613487612fde565b5b613494858286016133fd565b92509250509250929050565b6000602082840312156134b6576134b5612fd9565b5b60006134c484828501613226565b91505092915050565b6134d681613068565b81146134e157600080fd5b50565b6000813590506134f3816134cd565b92915050565b60006020828403121561350f5761350e612fd9565b5b600061351d848285016134e4565b91505092915050565b6000806040838503121561353d5761353c612fd9565b5b600061354b85828601613226565b925050602061355c858286016134e4565b9150509250929050565b600060408201905061357b600083018561327b565b613588602083018461327b565b9392505050565b60008083601f8401126135a5576135a46133ee565b5b8235905067ffffffffffffffff8111156135c2576135c16133f3565b5b6020830191508360208202830111156135de576135dd6133f8565b5b9250929050565b6000806000604084860312156135fe576135fd612fd9565b5b600084013567ffffffffffffffff81111561361c5761361b612fde565b5b6136288682870161358f565b9350935050602061363b86828701613171565b9150509250925092565b6000819050919050565b600061366a613665613660846131b3565b613645565b6131b3565b9050919050565b600061367c8261364f565b9050919050565b600061368e82613671565b9050919050565b61369e81613683565b82525050565b60006020820190506136b96000830184613695565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136fc826130e4565b810181811067ffffffffffffffff8211171561371b5761371a6136c4565b5b80604052505050565b600061372e612fcf565b905061373a82826136f3565b919050565b600067ffffffffffffffff82111561375a576137596136c4565b5b613763826130e4565b9050602081019050919050565b82818337600083830152505050565b600061379261378d8461373f565b613724565b9050828152602081018484840111156137ae576137ad6136bf565b5b6137b9848285613770565b509392505050565b600082601f8301126137d6576137d56133ee565b5b81356137e684826020860161377f565b91505092915050565b6000806000806080858703121561380957613808612fd9565b5b600061381787828801613226565b945050602061382887828801613226565b935050604061383987828801613171565b925050606085013567ffffffffffffffff81111561385a57613859612fde565b5b613866878288016137c1565b91505092959194509250565b6000806040838503121561388957613888612fd9565b5b600061389785828601613226565b92505060206138a885828601613226565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138f957607f821691505b60208210810361390c5761390b6138b2565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061396e602c836130a9565b915061397982613912565b604082019050919050565b6000602082019050818103600083015261399d81613961565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139de82613150565b91506139e983613150565b9250828203905081811115613a0157613a006139a4565b5b92915050565b6000613a1282613150565b9150613a1d83613150565b9250828202613a2b81613150565b91508282048414831517613a4257613a416139a4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613a8382613150565b9150613a8e83613150565b925082613a9e57613a9d613a49565b5b828204905092915050565b7f53616c65206973206e6f7420656e61626c656400000000000000000000000000600082015250565b6000613adf6013836130a9565b9150613aea82613aa9565b602082019050919050565b60006020820190508181036000830152613b0e81613ad2565b9050919050565b6000613b2082613150565b9150613b2b83613150565b9250828201905080821115613b4357613b426139a4565b5b92915050565b7f45786365656473206d6178206d696e74206c696d6974207065722077616c6c6560008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ba56021836130a9565b9150613bb082613b49565b604082019050919050565b60006020820190508181036000830152613bd481613b98565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613c487fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c0b565b613c528683613c0b565b95508019841693508086168417925050509392505050565b6000613c85613c80613c7b84613150565b613645565b613150565b9050919050565b6000819050919050565b613c9f83613c6a565b613cb3613cab82613c8c565b848454613c18565b825550505050565b600090565b613cc8613cbb565b613cd3818484613c96565b505050565b5b81811015613cf757613cec600082613cc0565b600181019050613cd9565b5050565b601f821115613d3c57613d0d81613be6565b613d1684613bfb565b81016020851015613d25578190505b613d39613d3185613bfb565b830182613cd8565b50505b505050565b600082821c905092915050565b6000613d5f60001984600802613d41565b1980831691505092915050565b6000613d788383613d4e565b9150826002028217905092915050565b613d928383613bdb565b67ffffffffffffffff811115613dab57613daa6136c4565b5b613db582546138e1565b613dc0828285613cfb565b6000601f831160018114613def5760008415613ddd578287013590505b613de78582613d6c565b865550613e4f565b601f198416613dfd86613be6565b60005b82811015613e2557848901358255600182019150602085019450602081019050613e00565b86831015613e425784890135613e3e601f891682613d4e565b8355505b6001600288020188555050505b50505050505050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613eb46029836130a9565b9150613ebf82613e58565b604082019050919050565b60006020820190508181036000830152613ee381613ea7565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613f46602a836130a9565b9150613f5182613eea565b604082019050919050565b60006020820190508181036000830152613f7581613f39565b9050919050565b7f496e76616c696420737461747573000000000000000000000000000000000000600082015250565b6000613fb2600e836130a9565b9150613fbd82613f7c565b602082019050919050565b60006020820190508181036000830152613fe181613fa5565b9050919050565b7f4e6577206c696d6974206973207468652073616d65206173207468652065786960008201527f7374696e67206f6e650000000000000000000000000000000000000000000000602082015250565b60006140446029836130a9565b915061404f82613fe8565b604082019050919050565b6000602082019050818103600083015261407381614037565b9050919050565b60008160601b9050919050565b60006140928261407a565b9050919050565b60006140a482614087565b9050919050565b6140bc6140b7826131d3565b614099565b82525050565b60006140ce82846140ab565b60148201915081905092915050565b7f50726573616c65206973206e6f7420656e61626c656400000000000000000000600082015250565b60006141136016836130a9565b915061411e826140dd565b602082019050919050565b6000602082019050818103600083015261414281614106565b9050919050565b7f50726f6f6620697320696e76616c696400000000000000000000000000000000600082015250565b600061417f6010836130a9565b915061418a82614149565b602082019050919050565b600060208201905081810360008301526141ae81614172565b9050919050565b7f54686520233120746f6b656e20686173206265656e206d696e7465642e000000600082015250565b60006141eb601d836130a9565b91506141f6826141b5565b602082019050919050565b6000602082019050818103600083015261421a816141de565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061427d602f836130a9565b915061428882614221565b604082019050919050565b600060208201905081810360008301526142ac81614270565b9050919050565b600081905092915050565b60006142c98261309e565b6142d381856142b3565b93506142e38185602086016130ba565b80840191505092915050565b60006142fb82856142be565b915061430782846142be565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061436f6026836130a9565b915061437a82614313565b604082019050919050565b6000602082019050818103600083015261439e81614362565b9050919050565b60006040820190506143ba60008301856131e5565b6143c760208301846131e5565b9392505050565b6000815190506143dd816134cd565b92915050565b6000602082840312156143f9576143f8612fd9565b5b6000614407848285016143ce565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061446c6021836130a9565b915061447782614410565b604082019050919050565b6000602082019050818103600083015261449b8161445f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006144fe6038836130a9565b9150614509826144a2565b604082019050919050565b6000602082019050818103600083015261452d816144f1565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006145906031836130a9565b915061459b82614534565b604082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145fc6020836130a9565b9150614607826145c6565b602082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b7f436f6e7472616374732063616e6e6f74206d696e740000000000000000000000600082015250565b60006146686015836130a9565b915061467382614632565b602082019050919050565b600060208201905081810360008301526146978161465b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006146d46020836130a9565b91506146df8261469e565b602082019050919050565b60006020820190508181036000830152614703816146c7565b9050919050565b7f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b6000614766602b836130a9565b91506147718261470a565b604082019050919050565b6000602082019050818103600083015261479581614759565b9050919050565b60006147a782613150565b9150600082036147ba576147b96139a4565b5b600182039050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614821602c836130a9565b915061482c826147c5565b604082019050919050565b6000602082019050818103600083015261485081614814565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006148b36025836130a9565b91506148be82614857565b604082019050919050565b600060208201905081810360008301526148e2816148a6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149456024836130a9565b9150614950826148e9565b604082019050919050565b6000602082019050818103600083015261497481614938565b9050919050565b7f455243373231723a206e65656420746f206d696e74206174206c65617374206f60008201527f6e6520746f6b656e000000000000000000000000000000000000000000000000602082015250565b60006149d76028836130a9565b91506149e28261497b565b604082019050919050565b60006020820190508181036000830152614a06816149ca565b9050919050565b6000614a1882613150565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a4a57614a496139a4565b5b600182019050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a8b6019836130a9565b9150614a9682614a55565b602082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b4c6032836130a9565b9150614b5782614af0565b604082019050919050565b60006020820190508181036000830152614b7b81614b3f565b9050919050565b600061010082019050614b98600083018b6131e5565b614ba5602083018a61327b565b614bb2604083018961327b565b614bbf606083018861327b565b614bcc608083018761327b565b614bd960a08301866132af565b614be660c08301856131e5565b614bf360e083018461327b565b9998505050505050505050565b6000614c0b82613150565b9150614c1683613150565b925082614c2657614c25613a49565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614c5882614c31565b614c628185614c3c565b9350614c728185602086016130ba565b614c7b816130e4565b840191505092915050565b6000608082019050614c9b60008301876131e5565b614ca860208301866131e5565b614cb5604083018561327b565b8181036060830152614cc78184614c4d565b905095945050505050565b600081519050614ce18161300f565b92915050565b600060208284031215614cfd57614cfc612fd9565b5b6000614d0b84828501614cd2565b9150509291505056fea264697066735822122044d197154aec88b580c2d10166e9d0c17345d9dc6ab9e1243383aef8d1fc80c464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54416e7a5269566b723637624151594437595877457975394444667139736a34413177476475515579374e772f00000000000000000000
-----Decoded View---------------
Arg [0] : __baseURI (string): ipfs://QmTAnzRiVkr67bAQYD7YXwEyu9DDfq9sj4A1wGduQUy7Nw/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d54416e7a5269566b723637624151594437595877457975
Arg [3] : 394444667139736a34413177476475515579374e772f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.