More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20465617 | 1149 days ago | Contract Creation | 0 POL |
Loading...
Loading
Contract Name:
ERC721Mochi
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2021-10-21 */ // SPDX-License-Identifier: MIT /** MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKKKXXXXKKKKKKXXNWWMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWNXKKKKXXNWWWWMMWWWWMWWWWNXXXKKKXNWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMWNXKKKXNWMMMMMMMMMNOdxKWMMMMMMMMWNXKKKXNWMMMMMMMMMMMMMM MMMMMMMMMMMMMWXKKKNWMMMMMMMMMMMMNx:;;l0WMMMMMMMMMMMWNK0KXWMMMMMMMMMMMM MMMMMMMMMMMWXKKXWMMMMMMMMMMMMMMXd:;;;;cOWMMMMMMMMMMMMMWXKKXWMMMMMMMMMM MMMMMMMMMWNKKXWMMMMMMMMMMMMMMWKo;;col:;:kNMMMMMMMMMMMMMMWX0KNWMMMMMMMM MMMMMMMMWX0XWMMMMMMMMMMMMMMMWOl;;oKWXkc;:dXMMMMMMMMMMMMMMMWX0XWMMMMMMM MMMMMMMNKKNWMMMMMMMMMMMMMMMNkc;:dXMMMWOc;;oKWMMMMMMMMMMMMMMWNKKNMMMMMM MMMMMMNKKNMMMMMMMMMMMMMMMMNx:;:xNMMMMMW0l;;l0WMMMMMMMWMMMMMMMNKKNMMMMM MMMMMNKKNMMMMMMMMMMMMMMMMXd:;ckNMMMMMMMMKo:;cOWMMMMXkxkXWMMMMMNKKNMMMM MMMMWK0NMMMMMMMMMMMMMMMWKo;;l0WMMMMMMMMMMXx:;:xNMMW0lccxXMMMMMMN0KWMMM MMMMX0XWMMMMMMWWMMMMMMWOl;;oKWMMMMMMMMMMMMNkc;:dXMMNklcoKMMMMMMMX0XMMM MMMWKKNMMWK0OkkkkkkKWNkc;:dXMMMMMMMMMMMMMMMWOl;;oKWMXdcxNMMMMMMMNKKWMM MMMN0XWMMWNXX0OdlccdKOc;:xNMMMWXKKXNWNNNNWWMW0o;;l0WNkdKWMMMMMMMWX0NMM MMMX0XMMMMMMMMMN0dlcdOxoONMMMMW0xdddddodxk0KNWXd:;l0Kx0WMMMMMMMMMX0XMM MMMX0NMMMMMMMMMMWXxlcoOXWMMMMWKkolclodkKNNNNWWMNxcxOkKWMMMMMMMMMMX0XMM MMMX0XMMMMMMMMMMMMNklclkNMMWXklccodxdodKWMMMMMMMNKOkKWMMMMMMMMMMMX0XMM MMMN0XWMMMMMMMMMMMMNOoclxXN0occcdKX0xlco0WMMMMMMNOOXMMMMMMMMMMMMMX0NMM MMMWKKWMMMMMMMMMMMMMW0dccoxocccdKWMWNklclONMMMMXOONMMMMMMMMMMMMMWKKWMM MMMMX0XMMMMMMMMMMMMMMWKdcccccco0WMMMMNOoclkNWWKk0NMMMMMMMMMMMMMMX0XWMM MMMMWKKNMMMMMMMMMMMMMMMXxlcccckNMMMMMMW0oclxK0kKWMMMMMMMMMMMMMMNKKWMMM MMMMMN0KWMMMMMMMMMMMMMMMNklccoKWMMMMMMMWKdlcoxKWMMMMMMMMMMMMMMWK0NMMMM MMMMMMN0KWMMMMMMMMMMMMMMMNOod0KXWMMMMMMNK0xoxXWMMMMMMMMMMMMMMWK0NMMMMM MMMMMMMN0KNMMMMMMMMMMMMMMMWXKkll0WMMMMXdcoOKNMMMMMMMMMMMMMMMNK0NMMMMMM MMMMMMMMNK0XWMMMMMMMMMMMMMMMNd:;cOWMWKo:;c0WMMMMMMMMMMMMMMWX0KNMMMMMMM MMMMMMMMMWXKKNWMMMMMMMMMMMMMMXd:;cx0kl;;l0WMMMMMMMMMMMMMWNKKXWMMMMMMMM MMMMMMMMMMMWX0KNWMMMMMMMMMMMMMNkc;;::;:oKWMMMMMMMMMMMMWNK0XWMMMMMMMMMM MMMMMMMMMMMMMNXKKXNWMMMMMMMMMMMWOc;;;:dXMMMMMMMMMMMWNXKKXWMMMMMMMMMMMM MMMMMMMMMMMMMMMWNKKKXNWMMMMMMMMMW0l:ckNMMMMMMMMMWNXKKKNWMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWNXKKKXXNWWWMMMMX0KWMMMWWWNXXKKKXNWMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKXXXXXXXXXXKKKKXXNWWMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNNNNNNWWWMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ---------------------- [ WPSmartContracts.com ] ---------------------- [ Blockchain Made Easy ] | | ERC-721 NFT Token | |---------------------------- | | Flavors | | > Mochi: Standard ERC-721 Token | */ pragma solidity ^0.8.2; /** * @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); } /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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; } } /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } /** * @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; } } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev 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 {} } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } } /** * @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; } } contract ERC721Mochi is ERC721, ERC721Enumerable, ERC721URIStorage, AccessControlEnumerable, ERC721Burnable { using Counters for Counters.Counter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Counters.Counter private _tokenIdCounter; bool public anyoneCanMint; constructor(address owner, string memory name, string memory symbol, bool _anyoneCanMint) ERC721(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, owner); _setupRole(MINTER_ROLE, owner); anyoneCanMint = _anyoneCanMint; } function autoMint(string memory _tokenURI, address to) public onlyMinter { uint id; do { _tokenIdCounter.increment(); id = _tokenIdCounter.current(); } while(_exists(id)); _mint(to, id); _setTokenURI(id, _tokenURI); } function mint(address to, uint256 tokenId) public onlyMinter { _mint(to, tokenId); } function safeMint(address to, uint256 tokenId) public onlyMinter { _safeMint(to, tokenId); } function isMinter(address account) public view returns (bool) { return hasRole(MINTER_ROLE, account); } function safeMint(address to, uint256 tokenId, bytes memory _data) public onlyMinter { _safeMint(to, tokenId, _data); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { ERC721URIStorage._burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, AccessControlEnumerable) returns (bool) { return super.supportsInterface(interfaceId); } function addMinter(address account) public onlyRole(MINTER_ROLE) { grantRole(MINTER_ROLE, account); } function canIMint() public view returns (bool) { return anyoneCanMint || isMinter(msg.sender); } /** * Open modifier to anyone can mint possibility */ modifier onlyMinter() { string memory mensaje; require( canIMint(), "MinterRole: caller does not have the Minter role" ); _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bool","name":"_anyoneCanMint","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"anyoneCanMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"autoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canIMint","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002d9438038062002d9483398101604081905262000034916200037e565b8251839083906200004d90600090602085019062000225565b5080516200006390600190602084019062000225565b506200007591506000905085620000bc565b620000a17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a685620000bc565b600e805460ff1916911515919091179055506200046f915050565b620000d38282620000ff60201b62000d491760201c565b6000828152600c60209081526040909120620000fa91839062000d536200010f821b17901c565b505050565b6200010b82826200012f565b5050565b600062000126836001600160a01b038416620001d3565b90505b92915050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff166200010b576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200018f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200021c5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000129565b50600062000129565b82805462000233906200041c565b90600052602060002090601f016020900481019282620002575760008555620002a2565b82601f106200027257805160ff1916838001178555620002a2565b82800160010185558215620002a2579182015b82811115620002a257825182559160200191906001019062000285565b50620002b0929150620002b4565b5090565b5b80821115620002b05760008155600101620002b5565b600082601f830112620002dc578081fd5b81516001600160401b0380821115620002f957620002f962000459565b604051601f8301601f19908116603f0116810190828211818310171562000324576200032462000459565b8160405283815260209250868385880101111562000340578485fd5b8491505b8382101562000363578582018301518183018401529082019062000344565b838211156200037457848385830101525b9695505050505050565b6000806000806080858703121562000394578384fd5b84516001600160a01b0381168114620003ab578485fd5b60208601519094506001600160401b0380821115620003c8578485fd5b620003d688838901620002cb565b94506040870151915080821115620003ec578384fd5b50620003fb87828801620002cb565b9250506060850151801515811462000411578182fd5b939692955090935050565b6002810460018216806200043157607f821691505b602082108114156200045357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612915806200047f6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638832e6e31161011a578063aa271e1a116100ad578063ca15c8731161007c578063ca15c87314610456578063d539139314610469578063d547741f1461047e578063e985e9c514610491578063ee1b59e4146104cd57610206565b8063aa271e1a14610410578063b13fbe9614610423578063b88d4fde14610430578063c87b56dd1461044357610206565b8063983b2d56116100e9578063983b2d56146103cf578063a1448194146103e2578063a217fddf146103f5578063a22cb465146103fd57610206565b80638832e6e31461038e5780639010d07c146103a157806391d14854146103b457806395d89b41146103c757610206565b80632f745c591161019d57806342966c681161016c57806342966c681461032f5780634f6ccce71461034257806361a09c97146103555780636352211e1461036857806370a082311461037b57610206565b80632f745c59146102e357806336568abe146102f657806340c10f191461030957806342842e0e1461031c57610206565b806318160ddd116101d957806318160ddd1461028857806323b872dd1461029a578063248a9ca3146102ad5780632f2ff15d146102d057610206565b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e6102193660046124b7565b6104d5565b60405190151581526020015b60405180910390f35b61023b6104e8565b60405161022a9190612652565b61025b61025636600461245c565b61057a565b6040516001600160a01b03909116815260200161022a565b6102866102813660046123de565b610607565b005b6008545b60405190815260200161022a565b6102866102a8366004612303565b61071d565b61028c6102bb36600461245c565b6000908152600b602052604090206001015490565b6102866102de366004612474565b61074f565b61028c6102f13660046123de565b610771565b610286610304366004612474565b61080a565b6102866103173660046123de565b61082c565b61028661032a366004612303565b61085c565b61028661033d36600461245c565b610877565b61028c61035036600461245c565b6108f1565b6102866103633660046124ef565b610992565b61025b61037636600461245c565b6109f4565b61028c6103893660046122b7565b610a6b565b61028661039c366004612407565b610af2565b61025b6103af366004612496565b610b23565b61021e6103c2366004612474565b610b42565b61023b610b6d565b6102866103dd3660046122b7565b610b7c565b6102866103f03660046123de565b610bb2565b61028c600081565b61028661040b3660046123a4565b610be2565b61021e61041e3660046122b7565b610cb4565b600e5461021e9060ff1681565b61028661043e36600461233e565b610cce565b61023b61045136600461245c565b610d00565b61028c61046436600461245c565b610d0b565b61028c6000805160206128c083398151915281565b61028661048c366004612474565b610d22565b61021e61049f3660046122d1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61021e610d2c565b60006104e082610d68565b90505b919050565b6060600080546104f7906127fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610523906127fd565b80156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b600061058582610d8d565b6105eb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610612826109f4565b9050806001600160a01b0316836001600160a01b031614156106805760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105e2565b336001600160a01b038216148061069c575061069c813361049f565b61070e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105e2565b6107188383610daa565b505050565b610728335b82610e18565b6107445760405162461bcd60e51b81526004016105e290612707565b610718838383610f02565b61075982826110ad565b6000828152600c602052604090206107189082610d53565b600061077c83610a6b565b82106107de5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105e2565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b61081482826110d3565b6000828152600c60205260409020610718908261114d565b6060610836610d2c565b6108525760405162461bcd60e51b81526004016105e2906126b7565b6107188383611162565b61071883838360405180602001604052806000815250610cce565b61088033610722565b6108e55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016105e2565b6108ee816112a1565b50565b60006108fc60085490565b821061095f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105e2565b6008828154811061098057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b606061099c610d2c565b6109b85760405162461bcd60e51b81526004016105e2906126b7565b60005b6109c9600d80546001019055565b50600d546109d681610d8d565b6109bb576109e48382611162565b6109ee81856112aa565b50505050565b6000818152600260205260408120546001600160a01b0316806104e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105e2565b60006001600160a01b038216610ad65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105e2565b506001600160a01b031660009081526003602052604090205490565b6060610afc610d2c565b610b185760405162461bcd60e51b81526004016105e2906126b7565b6109ee848484611335565b6000828152600c60205260408120610b3b9083611368565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546104f7906127fd565b6000805160206128c0833981519152610b9681335b611374565b610bae6000805160206128c08339815191528361074f565b5050565b6060610bbc610d2c565b610bd85760405162461bcd60e51b81526004016105e2906126b7565b61071883836113d8565b6001600160a01b038216331415610c3b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e2565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ca8911515815260200190565b60405180910390a35050565b60006104e06000805160206128c083398151915283610b42565b610cd83383610e18565b610cf45760405162461bcd60e51b81526004016105e290612707565b6109ee848484846113f2565b60606104e082611425565b6000818152600c602052604081206104e090611595565b610814828261159f565b600e5460009060ff1680610d445750610d4433610cb4565b905090565b610bae82826115c5565b6000610b3b836001600160a01b03841661164b565b60006001600160e01b03198216635a05180f60e01b14806104e057506104e08261169a565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ddf826109f4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610e2382610d8d565b610e845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e2565b6000610e8f836109f4565b9050806001600160a01b0316846001600160a01b03161480610eca5750836001600160a01b0316610ebf8461057a565b6001600160a01b0316145b80610efa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f15826109f4565b6001600160a01b031614610f7d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105e2565b6001600160a01b038216610fdf5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105e2565b610fea8383836116bf565b610ff5600082610daa565b6001600160a01b038316600090815260036020526040812080546001929061101e9084906127a3565b90915550506001600160a01b038216600090815260036020526040812080546001929061104c908490612758565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b60205260409020600101546110c98133610b91565b61071883836115c5565b6001600160a01b03811633146111435760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105e2565b610bae82826116ca565b6000610b3b836001600160a01b038416611731565b6001600160a01b0382166111b85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e2565b6111c181610d8d565b1561120e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e2565b61121a600083836116bf565b6001600160a01b0382166000908152600360205260408120805460019290611243908490612758565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6108ee8161184e565b6112b382610d8d565b6113165760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016105e2565b6000828152600a6020908152604090912082516107189284019061213a565b61133f8383611162565b61134c600084848461188e565b6107185760405162461bcd60e51b81526004016105e290612665565b6000610b3b838361199b565b61137e8282610b42565b610bae57611396816001600160a01b031660146119d3565b6113a18360206119d3565b6040516020016113b29291906125a0565b60408051601f198184030181529082905262461bcd60e51b82526105e291600401612652565b610bae828260405180602001604052806000815250611335565b6113fd848484610f02565b6114098484848461188e565b6109ee5760405162461bcd60e51b81526004016105e290612665565b606061143082610d8d565b6114965760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016105e2565b6000828152600a6020526040812080546114af906127fd565b80601f01602080910402602001604051908101604052809291908181526020018280546114db906127fd565b80156115285780601f106114fd57610100808354040283529160200191611528565b820191906000526020600020905b81548152906001019060200180831161150b57829003601f168201915b50505050509050600061154660408051602081019091526000815290565b905080516000141561155a575090506104e3565b81511561158c578082604051602001611574929190612571565b604051602081830303815290604052925050506104e3565b610efa84611bb5565b60006104e0825490565b6000828152600b60205260409020600101546115bb8133610b91565b61071883836116ca565b6115cf8282610b42565b610bae576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556116073390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461169257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610804565b506000610804565b60006001600160e01b03198216637965db0b60e01b14806104e057506104e082611c8c565b610718838383611cb1565b6116d48282610b42565b15610bae576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156118445760006117556001836127a3565b8554909150600090611769906001906127a3565b90508181146117ea57600086600001828154811061179757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106117c857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061180957634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610804565b6000915050610804565b61185781611d6e565b6000818152600a602052604090208054611870906127fd565b1590506108ee576000818152600a602052604081206108ee916121be565b60006001600160a01b0384163b1561199057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118d2903390899088908890600401612615565b602060405180830381600087803b1580156118ec57600080fd5b505af192505050801561191c575060408051601f3d908101601f19168201909252611919918101906124d3565b60015b611976573d80801561194a576040519150601f19603f3d011682016040523d82523d6000602084013e61194f565b606091505b50805161196e5760405162461bcd60e51b81526004016105e290612665565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610efa565b506001949350505050565b60008260000182815481106119c057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b606060006119e2836002612784565b6119ed906002612758565b67ffffffffffffffff811115611a1357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a3d576020820181803683370190505b509050600360fc1b81600081518110611a6657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aa357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611ac7846002612784565b611ad2906001612758565b90505b6001811115611b66576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b1457634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611b3857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611b5f816127e6565b9050611ad5565b508315610b3b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105e2565b6060611bc082610d8d565b611c245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e2565b6000611c3b60408051602081019091526000815290565b90506000815111611c5b5760405180602001604052806000815250610b3b565b80611c6584611e15565b604051602001611c76929190612571565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b14806104e057506104e082611f30565b6001600160a01b038316611d0c57611d0781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611d2f565b816001600160a01b0316836001600160a01b031614611d2f57611d2f8382611f80565b6001600160a01b038216611d4b57611d468161201d565b610718565b826001600160a01b0316826001600160a01b0316146107185761071882826120f6565b6000611d79826109f4565b9050611d87816000846116bf565b611d92600083610daa565b6001600160a01b0381166000908152600360205260408120805460019290611dbb9084906127a3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081611e3a57506040805180820190915260018152600360fc1b60208201526104e3565b8160005b8115611e645780611e4e81612838565b9150611e5d9050600a83612770565b9150611e3e565b60008167ffffffffffffffff811115611e8d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eb7576020820181803683370190505b5090505b8415610efa57611ecc6001836127a3565b9150611ed9600a86612853565b611ee4906030612758565b60f81b818381518110611f0757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f29600a86612770565b9450611ebb565b60006001600160e01b031982166380ac58cd60e01b1480611f6157506001600160e01b03198216635b5e139f60e01b145b806104e057506301ffc9a760e01b6001600160e01b03198316146104e0565b60006001611f8d84610a6b565b611f9791906127a3565b600083815260076020526040902054909150808214611fea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061202f906001906127a3565b6000838152600960205260408120546008805493945090928490811061206557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120da57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210183610a6b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612146906127fd565b90600052602060002090601f01602090048101928261216857600085556121ae565b82601f1061218157805160ff19168380011785556121ae565b828001600101855582156121ae579182015b828111156121ae578251825591602001919060010190612193565b506121ba9291506121f6565b5090565b5080546121ca906127fd565b6000825580601f106121dc57506108ee565b601f0160209004906000526020600020908101906108ee91905b5b808211156121ba57600081556001016121f7565b600067ffffffffffffffff8084111561222657612226612893565b604051601f8501601f19908116603f0116810190828211818310171561224e5761224e612893565b8160405280935085815286868601111561226757600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146104e357600080fd5b600082601f8301126122a8578081fd5b610b3b8383356020850161220b565b6000602082840312156122c8578081fd5b610b3b82612281565b600080604083850312156122e3578081fd5b6122ec83612281565b91506122fa60208401612281565b90509250929050565b600080600060608486031215612317578081fd5b61232084612281565b925061232e60208501612281565b9150604084013590509250925092565b60008060008060808587031215612353578081fd5b61235c85612281565b935061236a60208601612281565b925060408501359150606085013567ffffffffffffffff81111561238c578182fd5b61239887828801612298565b91505092959194509250565b600080604083850312156123b6578182fd5b6123bf83612281565b9150602083013580151581146123d3578182fd5b809150509250929050565b600080604083850312156123f0578182fd5b6123f983612281565b946020939093013593505050565b60008060006060848603121561241b578283fd5b61242484612281565b925060208401359150604084013567ffffffffffffffff811115612446578182fd5b61245286828701612298565b9150509250925092565b60006020828403121561246d578081fd5b5035919050565b60008060408385031215612486578182fd5b823591506122fa60208401612281565b600080604083850312156124a8578182fd5b50508035926020909101359150565b6000602082840312156124c8578081fd5b8135610b3b816128a9565b6000602082840312156124e4578081fd5b8151610b3b816128a9565b60008060408385031215612501578182fd5b823567ffffffffffffffff811115612517578283fd5b8301601f81018513612527578283fd5b6125368582356020840161220b565b9250506122fa60208401612281565b6000815180845261255d8160208601602086016127ba565b601f01601f19169290920160200192915050565b600083516125838184602088016127ba565b8351908301906125978183602088016127ba565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516125d88160178501602088016127ba565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516126098160288401602088016127ba565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061264890830184612545565b9695505050505050565b600060208252610b3b6020830184612545565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561276b5761276b612867565b500190565b60008261277f5761277f61287d565b500490565b600081600019048311821515161561279e5761279e612867565b500290565b6000828210156127b5576127b5612867565b500390565b60005b838110156127d55781810151838201526020016127bd565b838111156109ee5750506000910152565b6000816127f5576127f5612867565b506000190190565b60028104600182168061281157607f821691505b6020821081141561283257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561284c5761284c612867565b5060010190565b6000826128625761286261287d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146108ee57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212205d3272ce4740580a3e554580a1ebfa5d51c938e6a75b793153b59519246cf30e64736f6c63430008020033000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c80638832e6e31161011a578063aa271e1a116100ad578063ca15c8731161007c578063ca15c87314610456578063d539139314610469578063d547741f1461047e578063e985e9c514610491578063ee1b59e4146104cd57610206565b8063aa271e1a14610410578063b13fbe9614610423578063b88d4fde14610430578063c87b56dd1461044357610206565b8063983b2d56116100e9578063983b2d56146103cf578063a1448194146103e2578063a217fddf146103f5578063a22cb465146103fd57610206565b80638832e6e31461038e5780639010d07c146103a157806391d14854146103b457806395d89b41146103c757610206565b80632f745c591161019d57806342966c681161016c57806342966c681461032f5780634f6ccce71461034257806361a09c97146103555780636352211e1461036857806370a082311461037b57610206565b80632f745c59146102e357806336568abe146102f657806340c10f191461030957806342842e0e1461031c57610206565b806318160ddd116101d957806318160ddd1461028857806323b872dd1461029a578063248a9ca3146102ad5780632f2ff15d146102d057610206565b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e6102193660046124b7565b6104d5565b60405190151581526020015b60405180910390f35b61023b6104e8565b60405161022a9190612652565b61025b61025636600461245c565b61057a565b6040516001600160a01b03909116815260200161022a565b6102866102813660046123de565b610607565b005b6008545b60405190815260200161022a565b6102866102a8366004612303565b61071d565b61028c6102bb36600461245c565b6000908152600b602052604090206001015490565b6102866102de366004612474565b61074f565b61028c6102f13660046123de565b610771565b610286610304366004612474565b61080a565b6102866103173660046123de565b61082c565b61028661032a366004612303565b61085c565b61028661033d36600461245c565b610877565b61028c61035036600461245c565b6108f1565b6102866103633660046124ef565b610992565b61025b61037636600461245c565b6109f4565b61028c6103893660046122b7565b610a6b565b61028661039c366004612407565b610af2565b61025b6103af366004612496565b610b23565b61021e6103c2366004612474565b610b42565b61023b610b6d565b6102866103dd3660046122b7565b610b7c565b6102866103f03660046123de565b610bb2565b61028c600081565b61028661040b3660046123a4565b610be2565b61021e61041e3660046122b7565b610cb4565b600e5461021e9060ff1681565b61028661043e36600461233e565b610cce565b61023b61045136600461245c565b610d00565b61028c61046436600461245c565b610d0b565b61028c6000805160206128c083398151915281565b61028661048c366004612474565b610d22565b61021e61049f3660046122d1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61021e610d2c565b60006104e082610d68565b90505b919050565b6060600080546104f7906127fd565b80601f0160208091040260200160405190810160405280929190818152602001828054610523906127fd565b80156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b600061058582610d8d565b6105eb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610612826109f4565b9050806001600160a01b0316836001600160a01b031614156106805760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105e2565b336001600160a01b038216148061069c575061069c813361049f565b61070e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105e2565b6107188383610daa565b505050565b610728335b82610e18565b6107445760405162461bcd60e51b81526004016105e290612707565b610718838383610f02565b61075982826110ad565b6000828152600c602052604090206107189082610d53565b600061077c83610a6b565b82106107de5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105e2565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b61081482826110d3565b6000828152600c60205260409020610718908261114d565b6060610836610d2c565b6108525760405162461bcd60e51b81526004016105e2906126b7565b6107188383611162565b61071883838360405180602001604052806000815250610cce565b61088033610722565b6108e55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016105e2565b6108ee816112a1565b50565b60006108fc60085490565b821061095f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105e2565b6008828154811061098057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b606061099c610d2c565b6109b85760405162461bcd60e51b81526004016105e2906126b7565b60005b6109c9600d80546001019055565b50600d546109d681610d8d565b6109bb576109e48382611162565b6109ee81856112aa565b50505050565b6000818152600260205260408120546001600160a01b0316806104e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105e2565b60006001600160a01b038216610ad65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105e2565b506001600160a01b031660009081526003602052604090205490565b6060610afc610d2c565b610b185760405162461bcd60e51b81526004016105e2906126b7565b6109ee848484611335565b6000828152600c60205260408120610b3b9083611368565b9392505050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546104f7906127fd565b6000805160206128c0833981519152610b9681335b611374565b610bae6000805160206128c08339815191528361074f565b5050565b6060610bbc610d2c565b610bd85760405162461bcd60e51b81526004016105e2906126b7565b61071883836113d8565b6001600160a01b038216331415610c3b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e2565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ca8911515815260200190565b60405180910390a35050565b60006104e06000805160206128c083398151915283610b42565b610cd83383610e18565b610cf45760405162461bcd60e51b81526004016105e290612707565b6109ee848484846113f2565b60606104e082611425565b6000818152600c602052604081206104e090611595565b610814828261159f565b600e5460009060ff1680610d445750610d4433610cb4565b905090565b610bae82826115c5565b6000610b3b836001600160a01b03841661164b565b60006001600160e01b03198216635a05180f60e01b14806104e057506104e08261169a565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ddf826109f4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610e2382610d8d565b610e845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e2565b6000610e8f836109f4565b9050806001600160a01b0316846001600160a01b03161480610eca5750836001600160a01b0316610ebf8461057a565b6001600160a01b0316145b80610efa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f15826109f4565b6001600160a01b031614610f7d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105e2565b6001600160a01b038216610fdf5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105e2565b610fea8383836116bf565b610ff5600082610daa565b6001600160a01b038316600090815260036020526040812080546001929061101e9084906127a3565b90915550506001600160a01b038216600090815260036020526040812080546001929061104c908490612758565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b60205260409020600101546110c98133610b91565b61071883836115c5565b6001600160a01b03811633146111435760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105e2565b610bae82826116ca565b6000610b3b836001600160a01b038416611731565b6001600160a01b0382166111b85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e2565b6111c181610d8d565b1561120e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e2565b61121a600083836116bf565b6001600160a01b0382166000908152600360205260408120805460019290611243908490612758565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6108ee8161184e565b6112b382610d8d565b6113165760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016105e2565b6000828152600a6020908152604090912082516107189284019061213a565b61133f8383611162565b61134c600084848461188e565b6107185760405162461bcd60e51b81526004016105e290612665565b6000610b3b838361199b565b61137e8282610b42565b610bae57611396816001600160a01b031660146119d3565b6113a18360206119d3565b6040516020016113b29291906125a0565b60408051601f198184030181529082905262461bcd60e51b82526105e291600401612652565b610bae828260405180602001604052806000815250611335565b6113fd848484610f02565b6114098484848461188e565b6109ee5760405162461bcd60e51b81526004016105e290612665565b606061143082610d8d565b6114965760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016105e2565b6000828152600a6020526040812080546114af906127fd565b80601f01602080910402602001604051908101604052809291908181526020018280546114db906127fd565b80156115285780601f106114fd57610100808354040283529160200191611528565b820191906000526020600020905b81548152906001019060200180831161150b57829003601f168201915b50505050509050600061154660408051602081019091526000815290565b905080516000141561155a575090506104e3565b81511561158c578082604051602001611574929190612571565b604051602081830303815290604052925050506104e3565b610efa84611bb5565b60006104e0825490565b6000828152600b60205260409020600101546115bb8133610b91565b61071883836116ca565b6115cf8282610b42565b610bae576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556116073390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461169257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610804565b506000610804565b60006001600160e01b03198216637965db0b60e01b14806104e057506104e082611c8c565b610718838383611cb1565b6116d48282610b42565b15610bae576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156118445760006117556001836127a3565b8554909150600090611769906001906127a3565b90508181146117ea57600086600001828154811061179757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106117c857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061180957634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610804565b6000915050610804565b61185781611d6e565b6000818152600a602052604090208054611870906127fd565b1590506108ee576000818152600a602052604081206108ee916121be565b60006001600160a01b0384163b1561199057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118d2903390899088908890600401612615565b602060405180830381600087803b1580156118ec57600080fd5b505af192505050801561191c575060408051601f3d908101601f19168201909252611919918101906124d3565b60015b611976573d80801561194a576040519150601f19603f3d011682016040523d82523d6000602084013e61194f565b606091505b50805161196e5760405162461bcd60e51b81526004016105e290612665565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610efa565b506001949350505050565b60008260000182815481106119c057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b606060006119e2836002612784565b6119ed906002612758565b67ffffffffffffffff811115611a1357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a3d576020820181803683370190505b509050600360fc1b81600081518110611a6657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aa357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611ac7846002612784565b611ad2906001612758565b90505b6001811115611b66576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b1457634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611b3857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611b5f816127e6565b9050611ad5565b508315610b3b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105e2565b6060611bc082610d8d565b611c245760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e2565b6000611c3b60408051602081019091526000815290565b90506000815111611c5b5760405180602001604052806000815250610b3b565b80611c6584611e15565b604051602001611c76929190612571565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663780e9d6360e01b14806104e057506104e082611f30565b6001600160a01b038316611d0c57611d0781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611d2f565b816001600160a01b0316836001600160a01b031614611d2f57611d2f8382611f80565b6001600160a01b038216611d4b57611d468161201d565b610718565b826001600160a01b0316826001600160a01b0316146107185761071882826120f6565b6000611d79826109f4565b9050611d87816000846116bf565b611d92600083610daa565b6001600160a01b0381166000908152600360205260408120805460019290611dbb9084906127a3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081611e3a57506040805180820190915260018152600360fc1b60208201526104e3565b8160005b8115611e645780611e4e81612838565b9150611e5d9050600a83612770565b9150611e3e565b60008167ffffffffffffffff811115611e8d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eb7576020820181803683370190505b5090505b8415610efa57611ecc6001836127a3565b9150611ed9600a86612853565b611ee4906030612758565b60f81b818381518110611f0757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f29600a86612770565b9450611ebb565b60006001600160e01b031982166380ac58cd60e01b1480611f6157506001600160e01b03198216635b5e139f60e01b145b806104e057506301ffc9a760e01b6001600160e01b03198316146104e0565b60006001611f8d84610a6b565b611f9791906127a3565b600083815260076020526040902054909150808214611fea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061202f906001906127a3565b6000838152600960205260408120546008805493945090928490811061206557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120da57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210183610a6b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612146906127fd565b90600052602060002090601f01602090048101928261216857600085556121ae565b82601f1061218157805160ff19168380011785556121ae565b828001600101855582156121ae579182015b828111156121ae578251825591602001919060010190612193565b506121ba9291506121f6565b5090565b5080546121ca906127fd565b6000825580601f106121dc57506108ee565b601f0160209004906000526020600020908101906108ee91905b5b808211156121ba57600081556001016121f7565b600067ffffffffffffffff8084111561222657612226612893565b604051601f8501601f19908116603f0116810190828211818310171561224e5761224e612893565b8160405280935085815286868601111561226757600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146104e357600080fd5b600082601f8301126122a8578081fd5b610b3b8383356020850161220b565b6000602082840312156122c8578081fd5b610b3b82612281565b600080604083850312156122e3578081fd5b6122ec83612281565b91506122fa60208401612281565b90509250929050565b600080600060608486031215612317578081fd5b61232084612281565b925061232e60208501612281565b9150604084013590509250925092565b60008060008060808587031215612353578081fd5b61235c85612281565b935061236a60208601612281565b925060408501359150606085013567ffffffffffffffff81111561238c578182fd5b61239887828801612298565b91505092959194509250565b600080604083850312156123b6578182fd5b6123bf83612281565b9150602083013580151581146123d3578182fd5b809150509250929050565b600080604083850312156123f0578182fd5b6123f983612281565b946020939093013593505050565b60008060006060848603121561241b578283fd5b61242484612281565b925060208401359150604084013567ffffffffffffffff811115612446578182fd5b61245286828701612298565b9150509250925092565b60006020828403121561246d578081fd5b5035919050565b60008060408385031215612486578182fd5b823591506122fa60208401612281565b600080604083850312156124a8578182fd5b50508035926020909101359150565b6000602082840312156124c8578081fd5b8135610b3b816128a9565b6000602082840312156124e4578081fd5b8151610b3b816128a9565b60008060408385031215612501578182fd5b823567ffffffffffffffff811115612517578283fd5b8301601f81018513612527578283fd5b6125368582356020840161220b565b9250506122fa60208401612281565b6000815180845261255d8160208601602086016127ba565b601f01601f19169290920160200192915050565b600083516125838184602088016127ba565b8351908301906125978183602088016127ba565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516125d88160178501602088016127ba565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516126098160288401602088016127ba565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061264890830184612545565b9695505050505050565b600060208252610b3b6020830184612545565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561276b5761276b612867565b500190565b60008261277f5761277f61287d565b500490565b600081600019048311821515161561279e5761279e612867565b500290565b6000828210156127b5576127b5612867565b500390565b60005b838110156127d55781810151838201526020016127bd565b838111156109ee5750506000910152565b6000816127f5576127f5612867565b506000190190565b60028104600182168061281157607f821691505b6020821081141561283257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561284c5761284c612867565b5060010190565b6000826128625761286261287d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146108ee57600080fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212205d3272ce4740580a3e554580a1ebfa5d51c938e6a75b793153b59519246cf30e64736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : owner (address): 0xe4379A25a0DB888E19eC2c14416Fe68a62Aca5cc
Arg [1] : name (string): 1
Arg [2] : symbol (string): 1
Arg [3] : _anyoneCanMint (bool): False
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000e4379a25a0db888e19ec2c14416fe68a62aca5cc
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 3100000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 3100000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
72581:2662:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74488:237;;;;;;:::i;:::-;;:::i;:::-;;;7973:14:1;;7966:22;7948:41;;7936:2;7921:18;74488:237:0;;;;;;;;23605:100;;;:::i;:::-;;;;;;;:::i;25164:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7271:32:1;;;7253:51;;7241:2;7226:18;25164:221:0;7208:102:1;24687:411:0;;;;;;:::i;:::-;;:::i;:::-;;37113:113;37201:10;:17;37113:113;;;8146:25:1;;;8134:2;8119:18;37113:113:0;8101:76:1;26054:339:0;;;;;;:::i;:::-;;:::i;52831:123::-;;;;;;:::i;:::-;52897:7;52924:12;;;:6;:12;;;;;:22;;;;52831:123;70195:196;;;;;;:::i;:::-;;:::i;36781:256::-;;;;;;:::i;:::-;;:::i;70780:205::-;;;;;;:::i;:::-;;:::i;73444:98::-;;;;;;:::i;:::-;;:::i;26464:185::-;;;;;;:::i;:::-;;:::i;44774:245::-;;;;;;:::i;:::-;;:::i;37303:233::-;;;;;;:::i;:::-;;:::i;73147:289::-;;;;;;:::i;:::-;;:::i;23299:239::-;;;;;;:::i;:::-;;:::i;23029:208::-;;;;;;:::i;:::-;;:::i;73789:133::-;;;;;;:::i;:::-;;:::i;69650:145::-;;;;;;:::i;:::-;;:::i;51716:139::-;;;;;;:::i;:::-;;:::i;23774:104::-;;;:::i;74733:115::-;;;;;;:::i;:::-;;:::i;73550:106::-;;;;;;:::i;:::-;;:::i;50807:49::-;;50852:4;50807:49;;25457:295;;;;;;:::i;:::-;;:::i;73664:117::-;;;;;;:::i;:::-;;:::i;72856:25::-;;;;;;;;;26720:328;;;;;;:::i;:::-;;:::i;74284:196::-;;;;;;:::i;:::-;;:::i;69969:134::-;;;;;;:::i;:::-;;:::i;72740:62::-;;-1:-1:-1;;;;;;;;;;;72740:62:0;;70484:201;;;;;;:::i;:::-;;:::i;25823:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;25944:25:0;;;25920:4;25944:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;25823:164;74856:110;;;:::i;74488:237::-;74652:4;74681:36;74705:11;74681:23;:36::i;:::-;74674:43;;74488:237;;;;:::o;23605:100::-;23659:13;23692:5;23685:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23605:100;:::o;25164:221::-;25240:7;25268:16;25276:7;25268;:16::i;:::-;25260:73;;;;-1:-1:-1;;;25260:73:0;;14186:2:1;25260:73:0;;;14168:21:1;14225:2;14205:18;;;14198:30;14264:34;14244:18;;;14237:62;-1:-1:-1;;;14315:18:1;;;14308:42;14367:19;;25260:73:0;;;;;;;;;-1:-1:-1;25353:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;25353:24:0;;25164:221::o;24687:411::-;24768:13;24784:23;24799:7;24784:14;:23::i;:::-;24768:39;;24832:5;-1:-1:-1;;;;;24826:11:0;:2;-1:-1:-1;;;;;24826:11:0;;;24818:57;;;;-1:-1:-1;;;24818:57:0;;15425:2:1;24818:57:0;;;15407:21:1;15464:2;15444:18;;;15437:30;15503:34;15483:18;;;15476:62;-1:-1:-1;;;15554:18:1;;;15547:31;15595:19;;24818:57:0;15397:223:1;24818:57:0;18452:10;-1:-1:-1;;;;;24910:21:0;;;;:62;;-1:-1:-1;24935:37:0;24952:5;18452:10;24959:12;18372:98;24935:37;24888:168;;;;-1:-1:-1;;;24888:168:0;;11329:2:1;24888:168:0;;;11311:21:1;11368:2;11348:18;;;11341:30;11407:34;11387:18;;;11380:62;11478:26;11458:18;;;11451:54;11522:19;;24888:168:0;11301:246:1;24888:168:0;25069:21;25078:2;25082:7;25069:8;:21::i;:::-;24687:411;;;:::o;26054:339::-;26249:41;18452:10;26268:12;26282:7;26249:18;:41::i;:::-;26241:103;;;;-1:-1:-1;;;26241:103:0;;;;;;;:::i;:::-;26357:28;26367:4;26373:2;26377:7;26357:9;:28::i;70195:196::-;70311:30;70327:4;70333:7;70311:15;:30::i;:::-;70352:18;;;;:12;:18;;;;;:31;;70375:7;70352:22;:31::i;36781:256::-;36878:7;36914:23;36931:5;36914:16;:23::i;:::-;36906:5;:31;36898:87;;;;-1:-1:-1;;;36898:87:0;;8969:2:1;36898:87:0;;;8951:21:1;9008:2;8988:18;;;8981:30;9047:34;9027:18;;;9020:62;-1:-1:-1;;;9098:18:1;;;9091:41;9149:19;;36898:87:0;8941:233:1;36898:87:0;-1:-1:-1;;;;;;37003:19:0;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;36781:256;;;;;:::o;70780:205::-;70899:33;70918:4;70924:7;70899:18;:33::i;:::-;70943:18;;;;:12;:18;;;;;:34;;70969:7;70943:25;:34::i;73444:98::-;75078:21;75132:10;:8;:10::i;:::-;75110:108;;;;-1:-1:-1;;;75110:108:0;;;;;;;:::i;:::-;73516:18:::1;73522:2;73526:7;73516:5;:18::i;26464:185::-:0;26602:39;26619:4;26625:2;26629:7;26602:39;;;;;;;;;;;;:16;:39::i;44774:245::-;44892:41;18452:10;44911:12;18372:98;44892:41;44884:102;;;;-1:-1:-1;;;44884:102:0;;16658:2:1;44884:102:0;;;16640:21:1;16697:2;16677:18;;;16670:30;16736:34;16716:18;;;16709:62;-1:-1:-1;;;16787:18:1;;;16780:46;16843:19;;44884:102:0;16630:238:1;44884:102:0;44997:14;45003:7;44997:5;:14::i;:::-;44774:245;:::o;37303:233::-;37378:7;37414:30;37201:10;:17;37113:113;;37414:30;37406:5;:38;37398:95;;;;-1:-1:-1;;;37398:95:0;;16245:2:1;37398:95:0;;;16227:21:1;16284:2;16264:18;;;16257:30;16323:34;16303:18;;;16296:62;-1:-1:-1;;;16374:18:1;;;16367:42;16426:19;;37398:95:0;16217:234:1;37398:95:0;37511:10;37522:5;37511:17;;;;;;-1:-1:-1;;;37511:17:0;;;;;;;;;;;;;;;;;37504:24;;37303:233;;;:::o;73147:289::-;75078:21;75132:10;:8;:10::i;:::-;75110:108;;;;-1:-1:-1;;;75110:108:0;;;;;;;:::i;:::-;73231:7:::1;73249:118;73265:27;:15;72196:19:::0;;72214:1;72196:19;;;72107:127;73265:27:::1;-1:-1:-1::0;73310:15:0::1;72077:14:::0;73354:11:::1;72077:14:::0;73354:7:::1;:11::i;:::-;73249:118;;73377:13;73383:2;73387;73377:5;:13::i;:::-;73401:27;73414:2;73418:9;73401:12;:27::i;:::-;75229:1;73147:289:::0;;;:::o;23299:239::-;23371:7;23407:16;;;:7;:16;;;;;;-1:-1:-1;;;;;23407:16:0;23442:19;23434:73;;;;-1:-1:-1;;;23434:73:0;;12165:2:1;23434:73:0;;;12147:21:1;12204:2;12184:18;;;12177:30;12243:34;12223:18;;;12216:62;-1:-1:-1;;;12294:18:1;;;12287:39;12343:19;;23434:73:0;12137:231:1;23029:208:0;23101:7;-1:-1:-1;;;;;23129:19:0;;23121:74;;;;-1:-1:-1;;;23121:74:0;;11754:2:1;23121:74:0;;;11736:21:1;11793:2;11773:18;;;11766:30;11832:34;11812:18;;;11805:62;-1:-1:-1;;;11883:18:1;;;11876:40;11933:19;;23121:74:0;11726:232:1;23121:74:0;-1:-1:-1;;;;;;23213:16:0;;;;;:9;:16;;;;;;;23029:208::o;73789:133::-;75078:21;75132:10;:8;:10::i;:::-;75110:108;;;;-1:-1:-1;;;75110:108:0;;;;;;;:::i;:::-;73885:29:::1;73895:2;73899:7;73908:5;73885:9;:29::i;69650:145::-:0;69732:7;69759:18;;;:12;:18;;;;;:28;;69781:5;69759:21;:28::i;:::-;69752:35;69650:145;-1:-1:-1;;;69650:145:0:o;51716:139::-;51794:4;51818:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;51818:29:0;;;;;;;;;;;;;;;51716:139::o;23774:104::-;23830:13;23863:7;23856:14;;;;;:::i;74733:115::-;-1:-1:-1;;;;;;;;;;;51298:30:0;72778:24;18452:10;51315:12;51298:10;:30::i;:::-;74809:31:::1;-1:-1:-1::0;;;;;;;;;;;74832:7:0::1;74809:9;:31::i;:::-;74733:115:::0;;:::o;73550:106::-;75078:21;75132:10;:8;:10::i;:::-;75110:108;;;;-1:-1:-1;;;75110:108:0;;;;;;;:::i;:::-;73626:22:::1;73636:2;73640:7;73626:9;:22::i;25457:295::-:0;-1:-1:-1;;;;;25560:24:0;;18452:10;25560:24;;25552:62;;;;-1:-1:-1;;;25552:62:0;;10562:2:1;25552:62:0;;;10544:21:1;10601:2;10581:18;;;10574:30;10640:27;10620:18;;;10613:55;10685:18;;25552:62:0;10534:175:1;25552:62:0;18452:10;25627:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;25627:42:0;;;;;;;;;;:53;;-1:-1:-1;;25627:53:0;;;;;;;:42;-1:-1:-1;;;;;25696:48:0;;25735:8;25696:48;;;;7973:14:1;7966:22;7948:41;;7936:2;7921:18;;7903:92;25696:48:0;;;;;;;;25457:295;;:::o;73664:117::-;73720:4;73744:29;-1:-1:-1;;;;;;;;;;;73765:7:0;73744;:29::i;26720:328::-;26895:41;18452:10;26928:7;26895:18;:41::i;:::-;26887:103;;;;-1:-1:-1;;;26887:103:0;;;;;;;:::i;:::-;27001:39;27015:4;27021:2;27025:7;27034:5;27001:13;:39::i;74284:196::-;74411:13;74449:23;74464:7;74449:14;:23::i;69969:134::-;70041:7;70068:18;;;:12;:18;;;;;:27;;:25;:27::i;70484:201::-;70601:31;70618:4;70624:7;70601:16;:31::i;74856:110::-;74921:13;;74897:4;;74921:13;;;:37;;;74938:20;74947:10;74938:8;:20::i;:::-;74914:44;;74856:110;:::o;55065:112::-;55144:25;55155:4;55161:7;55144:10;:25::i;63747:152::-;63817:4;63841:50;63846:3;-1:-1:-1;;;;;63866:23:0;;63841:4;:50::i;68837:214::-;68922:4;-1:-1:-1;;;;;;68946:57:0;;-1:-1:-1;;;68946:57:0;;:97;;;69007:36;69031:11;69007:23;:36::i;28558:127::-;28623:4;28647:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28647:16:0;:30;;;28558:127::o;32540:174::-;32615:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;32615:29:0;-1:-1:-1;;;;;32615:29:0;;;;;;;;:24;;32669:23;32615:24;32669:14;:23::i;:::-;-1:-1:-1;;;;;32660:46:0;;;;;;;;;;;32540:174;;:::o;28852:348::-;28945:4;28970:16;28978:7;28970;:16::i;:::-;28962:73;;;;-1:-1:-1;;;28962:73:0;;10916:2:1;28962:73:0;;;10898:21:1;10955:2;10935:18;;;10928:30;10994:34;10974:18;;;10967:62;-1:-1:-1;;;11045:18:1;;;11038:42;11097:19;;28962:73:0;10888:234:1;28962:73:0;29046:13;29062:23;29077:7;29062:14;:23::i;:::-;29046:39;;29115:5;-1:-1:-1;;;;;29104:16:0;:7;-1:-1:-1;;;;;29104:16:0;;:51;;;;29148:7;-1:-1:-1;;;;;29124:31:0;:20;29136:7;29124:11;:20::i;:::-;-1:-1:-1;;;;;29124:31:0;;29104:51;:87;;;-1:-1:-1;;;;;;25944:25:0;;;25920:4;25944:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;29159:32;29096:96;28852:348;-1:-1:-1;;;;28852:348:0:o;31844:578::-;32003:4;-1:-1:-1;;;;;31976:31:0;:23;31991:7;31976:14;:23::i;:::-;-1:-1:-1;;;;;31976:31:0;;31968:85;;;;-1:-1:-1;;;31968:85:0;;14599:2:1;31968:85:0;;;14581:21:1;14638:2;14618:18;;;14611:30;14677:34;14657:18;;;14650:62;-1:-1:-1;;;14728:18:1;;;14721:39;14777:19;;31968:85:0;14571:231:1;31968:85:0;-1:-1:-1;;;;;32072:16:0;;32064:65;;;;-1:-1:-1;;;32064:65:0;;10157:2:1;32064:65:0;;;10139:21:1;10196:2;10176:18;;;10169:30;10235:34;10215:18;;;10208:62;-1:-1:-1;;;10286:18:1;;;10279:34;10330:19;;32064:65:0;10129:226:1;32064:65:0;32142:39;32163:4;32169:2;32173:7;32142:20;:39::i;:::-;32246:29;32263:1;32267:7;32246:8;:29::i;:::-;-1:-1:-1;;;;;32288:15:0;;;;;;:9;:15;;;;;:20;;32307:1;;32288:15;:20;;32307:1;;32288:20;:::i;:::-;;;;-1:-1:-1;;;;;;;32319:13:0;;;;;;:9;:13;;;;;:18;;32336:1;;32319:13;:18;;32336:1;;32319:18;:::i;:::-;;;;-1:-1:-1;;32348:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;32348:21:0;-1:-1:-1;;;;;32348:21:0;;;;;;;;;32387:27;;32348:16;;32387:27;;;;;;;31844:578;;;:::o;53216:147::-;52897:7;52924:12;;;:6;:12;;;;;:22;;;51298:30;51309:4;18452:10;51315:12;18372:98;51298:30;53330:25:::1;53341:4;53347:7;53330:10;:25::i;54264:218::-:0;-1:-1:-1;;;;;54360:23:0;;18452:10;54360:23;54352:83;;;;-1:-1:-1;;;54352:83:0;;17075:2:1;54352:83:0;;;17057:21:1;17114:2;17094:18;;;17087:30;17153:34;17133:18;;;17126:62;-1:-1:-1;;;17204:18:1;;;17197:45;17259:19;;54352:83:0;17047:237:1;54352:83:0;54448:26;54460:4;54466:7;54448:11;:26::i;64075:158::-;64148:4;64172:53;64180:3;-1:-1:-1;;;;;64200:23:0;;64172:7;:53::i;30536:382::-;-1:-1:-1;;;;;30616:16:0;;30608:61;;;;-1:-1:-1;;;30608:61:0;;13407:2:1;30608:61:0;;;13389:21:1;;;13426:18;;;13419:30;13485:34;13465:18;;;13458:62;13537:18;;30608:61:0;13379:182:1;30608:61:0;30689:16;30697:7;30689;:16::i;:::-;30688:17;30680:58;;;;-1:-1:-1;;;30680:58:0;;9800:2:1;30680:58:0;;;9782:21:1;9839:2;9819:18;;;9812:30;9878;9858:18;;;9851:58;9926:18;;30680:58:0;9772:178:1;30680:58:0;30751:45;30780:1;30784:2;30788:7;30751:20;:45::i;:::-;-1:-1:-1;;;;;30809:13:0;;;;;;:9;:13;;;;;:18;;30826:1;;30809:13;:18;;30826:1;;30809:18;:::i;:::-;;;;-1:-1:-1;;30838:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30838:21:0;-1:-1:-1;;;;;30838:21:0;;;;;;;;30877:33;;30838:16;;;30877:33;;30838:16;;30877:33;30536:382;;:::o;73930:134::-;74025:31;74048:7;74025:22;:31::i;43772:217::-;43872:16;43880:7;43872;:16::i;:::-;43864:75;;;;-1:-1:-1;;;43864:75:0;;12575:2:1;43864:75:0;;;12557:21:1;12614:2;12594:18;;;12587:30;12653:34;12633:18;;;12626:62;-1:-1:-1;;;12704:18:1;;;12697:44;12758:19;;43864:75:0;12547:236:1;43864:75:0;43950:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;29879:321::-;30009:18;30015:2;30019:7;30009:5;:18::i;:::-;30060:54;30091:1;30095:2;30099:7;30108:5;30060:22;:54::i;:::-;30038:154;;;;-1:-1:-1;;;30038:154:0;;;;;;;:::i;65043:158::-;65117:7;65168:22;65172:3;65184:5;65168:3;:22::i;52145:497::-;52226:22;52234:4;52240:7;52226;:22::i;:::-;52221:414;;52414:41;52442:7;-1:-1:-1;;;;;52414:41:0;52452:2;52414:19;:41::i;:::-;52528:38;52556:4;52563:2;52528:19;:38::i;:::-;52319:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;52319:270:0;;;;;;;;;;-1:-1:-1;;;52265:358:0;;;;;;;:::i;29542:110::-;29618:26;29628:2;29632:7;29618:26;;;;;;;;;;;;:9;:26::i;27930:315::-;28087:28;28097:4;28103:2;28107:7;28087:9;:28::i;:::-;28134:48;28157:4;28163:2;28167:7;28176:5;28134:22;:48::i;:::-;28126:111;;;;-1:-1:-1;;;28126:111:0;;;;;;;:::i;42937:679::-;43010:13;43044:16;43052:7;43044;:16::i;:::-;43036:78;;;;-1:-1:-1;;;43036:78:0;;13768:2:1;43036:78:0;;;13750:21:1;13807:2;13787:18;;;13780:30;13846:34;13826:18;;;13819:62;-1:-1:-1;;;13897:18:1;;;13890:47;13954:19;;43036:78:0;13740:239:1;43036:78:0;43127:23;43153:19;;;:10;:19;;;;;43127:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43183:18;43204:10;24608:9;;;;;;;;;-1:-1:-1;24608:9:0;;24531:94;;43204:10;43183:31;;43296:4;43290:18;43312:1;43290:23;43286:72;;;-1:-1:-1;43337:9:0;-1:-1:-1;43330:16:0;;43286:72;43462:23;;:27;43458:108;;43537:4;43543:9;43520:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;43506:48;;;;;;43458:108;43585:23;43600:7;43585:14;:23::i;64572:117::-;64635:7;64662:19;64670:3;72077:14;;71985:114;53608:149;52897:7;52924:12;;;:6;:12;;;;;:22;;;51298:30;51309:4;18452:10;51315:12;18372:98;51298:30;53723:26:::1;53735:4;53741:7;53723:11;:26::i;55568:229::-:0;55643:22;55651:4;55657:7;55643;:22::i;:::-;55638:152;;55682:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55682:29:0;;;;;;;;;:36;;-1:-1:-1;;55682:36:0;55714:4;55682:36;;;55765:12;18452:10;18372:98;;55765:12;-1:-1:-1;;;;;55738:40:0;55756:7;-1:-1:-1;;;;;55738:40:0;55750:4;55738:40;;;;;;;;;;55568:229;;:::o;57662:414::-;57725:4;59855:19;;;:12;;;:19;;;;;;57742:327;;-1:-1:-1;57785:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;57968:18;;57946:19;;;:12;;;:19;;;;;;:40;;;;58001:11;;57742:327;-1:-1:-1;58052:5:0;58045:12;;51420:204;51505:4;-1:-1:-1;;;;;;51529:47:0;;-1:-1:-1;;;51529:47:0;;:87;;;51580:36;51604:11;51580:23;:36::i;74072:204::-;74223:45;74250:4;74256:2;74260:7;74223:26;:45::i;55805:230::-;55880:22;55888:4;55894:7;55880;:22::i;:::-;55876:152;;;55951:5;55919:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55919:29:0;;;;;;;;;;:37;;-1:-1:-1;;55919:37:0;;;55976:40;18452:10;;55919:12;;55976:40;;55951:5;55976:40;55805:230;;:::o;58252:1420::-;58318:4;58457:19;;;:12;;;:19;;;;;;58493:15;;58489:1176;;58868:21;58892:14;58905:1;58892:10;:14;:::i;:::-;58941:18;;58868:38;;-1:-1:-1;58921:17:0;;58941:22;;58962:1;;58941:22;:::i;:::-;58921:42;;58997:13;58984:9;:26;58980:405;;59031:17;59051:3;:11;;59063:9;59051:22;;;;;;-1:-1:-1;;;59051:22:0;;;;;;;;;;;;;;;;;59031:42;;59205:9;59176:3;:11;;59188:13;59176:26;;;;;;-1:-1:-1;;;59176:26:0;;;;;;;;;;;;;;;;;;;;:38;;;;59290:23;;;:12;;;:23;;;;;:36;;;58980:405;59466:17;;:3;;:17;;;-1:-1:-1;;;59466:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;59561:3;:12;;:19;59574:5;59561:19;;;;;;;;;;;59554:26;;;59604:4;59597:11;;;;;;;58489:1176;59648:5;59641:12;;;;;44218:206;44287:20;44299:7;44287:11;:20::i;:::-;44330:19;;;;:10;:19;;;;;44324:33;;;;;:::i;:::-;:38;;-1:-1:-1;44320:97:0;;44386:19;;;;:10;:19;;;;;44379:26;;;:::i;33279:799::-;33434:4;-1:-1:-1;;;;;33455:13:0;;10824:20;10872:8;33451:620;;33491:72;;-1:-1:-1;;;33491:72:0;;-1:-1:-1;;;;;33491:36:0;;;;;:72;;18452:10;;33542:4;;33548:7;;33557:5;;33491:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33491:72:0;;;;;;;;-1:-1:-1;;33491:72:0;;;;;;;;;;;;:::i;:::-;;;33487:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33733:13:0;;33729:272;;33776:60;;-1:-1:-1;;;33776:60:0;;;;;;;:::i;33729:272::-;33951:6;33945:13;33936:6;33932:2;33928:15;33921:38;33487:529;-1:-1:-1;;;;;;33614:51:0;-1:-1:-1;;;33614:51:0;;-1:-1:-1;33607:58:0;;33451:620;-1:-1:-1;34055:4:0;33279:799;;;;;;:::o;60436:120::-;60503:7;60530:3;:11;;60542:5;60530:18;;;;;;-1:-1:-1;;;60530:18:0;;;;;;;;;;;;;;;;;60523:25;;60436:120;;;;:::o;20113:451::-;20188:13;20214:19;20246:10;20250:6;20246:1;:10;:::i;:::-;:14;;20259:1;20246:14;:::i;:::-;20236:25;;;;;;-1:-1:-1;;;20236:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20236:25:0;;20214:47;;-1:-1:-1;;;20272:6:0;20279:1;20272:9;;;;;;-1:-1:-1;;;20272:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;20272:15:0;;;;;;;;;-1:-1:-1;;;20298:6:0;20305:1;20298:9;;;;;;-1:-1:-1;;;20298:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;20298:15:0;;;;;;;;-1:-1:-1;20329:9:0;20341:10;20345:6;20341:1;:10;:::i;:::-;:14;;20354:1;20341:14;:::i;:::-;20329:26;;20324:135;20361:1;20357;:5;20324:135;;;-1:-1:-1;;;20409:5:0;20417:3;20409:11;20396:25;;;;;-1:-1:-1;;;20396:25:0;;;;;;;;;;;;20384:6;20391:1;20384:9;;;;;;-1:-1:-1;;;20384:9:0;;;;;;;;;;;;:37;-1:-1:-1;;;;;20384:37:0;;;;;;;;-1:-1:-1;20446:1:0;20436:11;;;;;20364:3;;;:::i;:::-;;;20324:135;;;-1:-1:-1;20477:10:0;;20469:55;;;;-1:-1:-1;;;20469:55:0;;8608:2:1;20469:55:0;;;8590:21:1;;;8627:18;;;8620:30;8686:34;8666:18;;;8659:62;8738:18;;20469:55:0;8580:182:1;23949:334:0;24022:13;24056:16;24064:7;24056;:16::i;:::-;24048:76;;;;-1:-1:-1;;;24048:76:0;;15009:2:1;24048:76:0;;;14991:21:1;15048:2;15028:18;;;15021:30;15087:34;15067:18;;;15060:62;-1:-1:-1;;;15138:18:1;;;15131:45;15193:19;;24048:76:0;14981:237:1;24048:76:0;24137:21;24161:10;24608:9;;;;;;;;;-1:-1:-1;24608:9:0;;24531:94;;24161:10;24137:34;;24213:1;24195:7;24189:21;:25;:86;;;;;;;;;;;;;;;;;24241:7;24250:18;:7;:16;:18::i;:::-;24224:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;24182:93;23949:334;-1:-1:-1;;;23949:334:0:o;36473:224::-;36575:4;-1:-1:-1;;;;;;36599:50:0;;-1:-1:-1;;;36599:50:0;;:90;;;36653:36;36677:11;36653:23;:36::i;38149:589::-;-1:-1:-1;;;;;38355:18:0;;38351:187;;38390:40;38422:7;39565:10;:17;;39538:24;;;;:15;:24;;;;;:44;;;39593:24;;;;;;;;;;;;39461:164;38390:40;38351:187;;;38460:2;-1:-1:-1;;;;;38452:10:0;:4;-1:-1:-1;;;;;38452:10:0;;38448:90;;38479:47;38512:4;38518:7;38479:32;:47::i;:::-;-1:-1:-1;;;;;38552:16:0;;38548:183;;38585:45;38622:7;38585:36;:45::i;:::-;38548:183;;;38658:4;-1:-1:-1;;;;;38652:10:0;:2;-1:-1:-1;;;;;38652:10:0;;38648:83;;38679:40;38707:2;38711:7;38679:27;:40::i;31147:360::-;31207:13;31223:23;31238:7;31223:14;:23::i;:::-;31207:39;;31259:48;31280:5;31295:1;31299:7;31259:20;:48::i;:::-;31348:29;31365:1;31369:7;31348:8;:29::i;:::-;-1:-1:-1;;;;;31390:16:0;;;;;;:9;:16;;;;;:21;;31410:1;;31390:16;:21;;31410:1;;31390:21;:::i;:::-;;;;-1:-1:-1;;31429:16:0;;;;:7;:16;;;;;;31422:23;;-1:-1:-1;;;;;;31422:23:0;;;31463:36;31437:7;;31429:16;-1:-1:-1;;;;;31463:36:0;;;;;31429:16;;31463:36;31147:360;;:::o;18812:723::-;18868:13;19089:10;19085:53;;-1:-1:-1;19116:10:0;;;;;;;;;;;;-1:-1:-1;;;19116:10:0;;;;;;19085:53;19163:5;19148:12;19204:78;19211:9;;19204:78;;19237:8;;;;:::i;:::-;;-1:-1:-1;19260:10:0;;-1:-1:-1;19268:2:0;19260:10;;:::i;:::-;;;19204:78;;;19292:19;19324:6;19314:17;;;;;;-1:-1:-1;;;19314:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19314:17:0;;19292:39;;19342:154;19349:10;;19342:154;;19376:11;19386:1;19376:11;;:::i;:::-;;-1:-1:-1;19445:10:0;19453:2;19445:5;:10;:::i;:::-;19432:24;;:2;:24;:::i;:::-;19419:39;;19402:6;19409;19402:14;;;;;;-1:-1:-1;;;19402:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;19402:56:0;;;;;;;;-1:-1:-1;19473:11:0;19482:2;19473:11;;:::i;:::-;;;19342:154;;22660:305;22762:4;-1:-1:-1;;;;;;22799:40:0;;-1:-1:-1;;;22799:40:0;;:105;;-1:-1:-1;;;;;;;22856:48:0;;-1:-1:-1;;;22856:48:0;22799:105;:158;;;-1:-1:-1;;;;;;;;;;21378:40:0;;;22921:36;21269:157;40252:988;40518:22;40568:1;40543:22;40560:4;40543:16;:22::i;:::-;:26;;;;:::i;:::-;40580:18;40601:26;;;:17;:26;;;;;;40518:51;;-1:-1:-1;40734:28:0;;;40730:328;;-1:-1:-1;;;;;40801:18:0;;40779:19;40801:18;;;:12;:18;;;;;;;;:34;;;;;;;;;40852:30;;;;;;:44;;;40969:30;;:17;:30;;;;;:43;;;40730:328;-1:-1:-1;41154:26:0;;;;:17;:26;;;;;;;;41147:33;;;-1:-1:-1;;;;;41198:18:0;;;;;:12;:18;;;;;:34;;;;;;;41191:41;40252:988::o;41535:1079::-;41813:10;:17;41788:22;;41813:21;;41833:1;;41813:21;:::i;:::-;41845:18;41866:24;;;:15;:24;;;;;;42239:10;:26;;41788:46;;-1:-1:-1;41866:24:0;;41788:46;;42239:26;;;;-1:-1:-1;;;42239:26:0;;;;;;;;;;;;;;;;;42217:48;;42303:11;42278:10;42289;42278:22;;;;;;-1:-1:-1;;;42278:22:0;;;;;;;;;;;;;;;;;;;;:36;;;;42383:28;;;:15;:28;;;;;;;:41;;;42555:24;;;;;42548:31;42590:10;:16;;;;;-1:-1:-1;;;42590:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;41535:1079;;;;:::o;39039:221::-;39124:14;39141:20;39158:2;39141:16;:20::i;:::-;-1:-1:-1;;;;;39172:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;39217:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;39039:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:2;;813:1;810;803:12;828:228;;923:3;916:4;908:6;904:17;900:27;890:2;;945:5;938;931:20;890:2;971:79;1046:3;1037:6;1024:20;1017:4;1009:6;1005:17;971:79;:::i;1061:196::-;;1173:2;1161:9;1152:7;1148:23;1144:32;1141:2;;;1194:6;1186;1179:22;1141:2;1222:29;1241:9;1222:29;:::i;1262:270::-;;;1391:2;1379:9;1370:7;1366:23;1362:32;1359:2;;;1412:6;1404;1397:22;1359:2;1440:29;1459:9;1440:29;:::i;:::-;1430:39;;1488:38;1522:2;1511:9;1507:18;1488:38;:::i;:::-;1478:48;;1349:183;;;;;:::o;1537:338::-;;;;1683:2;1671:9;1662:7;1658:23;1654:32;1651:2;;;1704:6;1696;1689:22;1651:2;1732:29;1751:9;1732:29;:::i;:::-;1722:39;;1780:38;1814:2;1803:9;1799:18;1780:38;:::i;:::-;1770:48;;1865:2;1854:9;1850:18;1837:32;1827:42;;1641:234;;;;;:::o;1880:557::-;;;;;2052:3;2040:9;2031:7;2027:23;2023:33;2020:2;;;2074:6;2066;2059:22;2020:2;2102:29;2121:9;2102:29;:::i;:::-;2092:39;;2150:38;2184:2;2173:9;2169:18;2150:38;:::i;:::-;2140:48;;2235:2;2224:9;2220:18;2207:32;2197:42;;2290:2;2279:9;2275:18;2262:32;2317:18;2309:6;2306:30;2303:2;;;2354:6;2346;2339:22;2303:2;2382:49;2423:7;2414:6;2403:9;2399:22;2382:49;:::i;:::-;2372:59;;;2010:427;;;;;;;:::o;2442:367::-;;;2568:2;2556:9;2547:7;2543:23;2539:32;2536:2;;;2589:6;2581;2574:22;2536:2;2617:29;2636:9;2617:29;:::i;:::-;2607:39;;2696:2;2685:9;2681:18;2668:32;2743:5;2736:13;2729:21;2722:5;2719:32;2709:2;;2770:6;2762;2755:22;2709:2;2798:5;2788:15;;;2526:283;;;;;:::o;2814:264::-;;;2943:2;2931:9;2922:7;2918:23;2914:32;2911:2;;;2964:6;2956;2949:22;2911:2;2992:29;3011:9;2992:29;:::i;:::-;2982:39;3068:2;3053:18;;;;3040:32;;-1:-1:-1;;;2901:177:1:o;3083:482::-;;;;3238:2;3226:9;3217:7;3213:23;3209:32;3206:2;;;3259:6;3251;3244:22;3206:2;3287:29;3306:9;3287:29;:::i;:::-;3277:39;;3363:2;3352:9;3348:18;3335:32;3325:42;;3418:2;3407:9;3403:18;3390:32;3445:18;3437:6;3434:30;3431:2;;;3482:6;3474;3467:22;3431:2;3510:49;3551:7;3542:6;3531:9;3527:22;3510:49;:::i;:::-;3500:59;;;3196:369;;;;;:::o;3570:190::-;;3682:2;3670:9;3661:7;3657:23;3653:32;3650:2;;;3703:6;3695;3688:22;3650:2;-1:-1:-1;3731:23:1;;3640:120;-1:-1:-1;3640:120:1:o;3765:264::-;;;3894:2;3882:9;3873:7;3869:23;3865:32;3862:2;;;3915:6;3907;3900:22;3862:2;3956:9;3943:23;3933:33;;3985:38;4019:2;4008:9;4004:18;3985:38;:::i;4034:258::-;;;4163:2;4151:9;4142:7;4138:23;4134:32;4131:2;;;4184:6;4176;4169:22;4131:2;-1:-1:-1;;4212:23:1;;;4282:2;4267:18;;;4254:32;;-1:-1:-1;4121:171:1:o;4297:255::-;;4408:2;4396:9;4387:7;4383:23;4379:32;4376:2;;;4429:6;4421;4414:22;4376:2;4473:9;4460:23;4492:30;4516:5;4492:30;:::i;4557:259::-;;4679:2;4667:9;4658:7;4654:23;4650:32;4647:2;;;4700:6;4692;4685:22;4647:2;4737:9;4731:16;4756:30;4780:5;4756:30;:::i;4821:558::-;;;4960:2;4948:9;4939:7;4935:23;4931:32;4928:2;;;4981:6;4973;4966:22;4928:2;5026:9;5013:23;5059:18;5051:6;5048:30;5045:2;;;5096:6;5088;5081:22;5045:2;5124:22;;5177:4;5169:13;;5165:27;-1:-1:-1;5155:2:1;;5211:6;5203;5196:22;5155:2;5239:75;5306:7;5301:2;5288:16;5281:4;5277:2;5273:13;5239:75;:::i;:::-;5229:85;;;5333:40;5367:4;5356:9;5352:20;5333:40;:::i;5579:257::-;;5658:5;5652:12;5685:6;5680:3;5673:19;5701:63;5757:6;5750:4;5745:3;5741:14;5734:4;5727:5;5723:16;5701:63;:::i;:::-;5818:2;5797:15;-1:-1:-1;;5793:29:1;5784:39;;;;5825:4;5780:50;;5628:208;-1:-1:-1;;5628:208:1:o;5841:470::-;;6058:6;6052:13;6074:53;6120:6;6115:3;6108:4;6100:6;6096:17;6074:53;:::i;:::-;6190:13;;6149:16;;;;6212:57;6190:13;6149:16;6246:4;6234:17;;6212:57;:::i;:::-;6285:20;;6028:283;-1:-1:-1;;;;6028:283:1:o;6316:786::-;;6727:25;6722:3;6715:38;6782:6;6776:13;6798:62;6853:6;6848:2;6843:3;6839:12;6832:4;6824:6;6820:17;6798:62;:::i;:::-;-1:-1:-1;;;6919:2:1;6879:16;;;6911:11;;;6904:40;6969:13;;6991:63;6969:13;7040:2;7032:11;;7025:4;7013:17;;6991:63;:::i;:::-;7074:17;7093:2;7070:26;;6705:397;-1:-1:-1;;;;6705:397:1:o;7315:488::-;-1:-1:-1;;;;;7584:15:1;;;7566:34;;7636:15;;7631:2;7616:18;;7609:43;7683:2;7668:18;;7661:34;;;7731:3;7726:2;7711:18;;7704:31;;;7315:488;;7752:45;;7777:19;;7769:6;7752:45;:::i;:::-;7744:53;7518:285;-1:-1:-1;;;;;;7518:285:1:o;8182:219::-;;8331:2;8320:9;8313:21;8351:44;8391:2;8380:9;8376:18;8368:6;8351:44;:::i;9179:414::-;9381:2;9363:21;;;9420:2;9400:18;;;9393:30;9459:34;9454:2;9439:18;;9432:62;-1:-1:-1;;;9525:2:1;9510:18;;9503:48;9583:3;9568:19;;9353:240::o;12788:412::-;12990:2;12972:21;;;13029:2;13009:18;;;13002:30;13068:34;13063:2;13048:18;;13041:62;-1:-1:-1;;;13134:2:1;13119:18;;13112:46;13190:3;13175:19;;12962:238::o;15625:413::-;15827:2;15809:21;;;15866:2;15846:18;;;15839:30;15905:34;15900:2;15885:18;;15878:62;-1:-1:-1;;;15971:2:1;15956:18;;15949:47;16028:3;16013:19;;15799:239::o;17471:128::-;;17542:1;17538:6;17535:1;17532:13;17529:2;;;17548:18;;:::i;:::-;-1:-1:-1;17584:9:1;;17519:80::o;17604:120::-;;17670:1;17660:2;;17675:18;;:::i;:::-;-1:-1:-1;17709:9:1;;17650:74::o;17729:168::-;;17835:1;17831;17827:6;17823:14;17820:1;17817:21;17812:1;17805:9;17798:17;17794:45;17791:2;;;17842:18;;:::i;:::-;-1:-1:-1;17882:9:1;;17781:116::o;17902:125::-;;17970:1;17967;17964:8;17961:2;;;17975:18;;:::i;:::-;-1:-1:-1;18012:9:1;;17951:76::o;18032:258::-;18104:1;18114:113;18128:6;18125:1;18122:13;18114:113;;;18204:11;;;18198:18;18185:11;;;18178:39;18150:2;18143:10;18114:113;;;18245:6;18242:1;18239:13;18236:2;;;-1:-1:-1;;18280:1:1;18262:16;;18255:27;18085:205::o;18295:136::-;;18362:5;18352:2;;18371:18;;:::i;:::-;-1:-1:-1;;;18407:18:1;;18342:89::o;18436:380::-;18521:1;18511:12;;18568:1;18558:12;;;18579:2;;18633:4;18625:6;18621:17;18611:27;;18579:2;18686;18678:6;18675:14;18655:18;18652:38;18649:2;;;18732:10;18727:3;18723:20;18720:1;18713:31;18767:4;18764:1;18757:15;18795:4;18792:1;18785:15;18649:2;;18491:325;;;:::o;18821:135::-;;-1:-1:-1;;18881:17:1;;18878:2;;;18901:18;;:::i;:::-;-1:-1:-1;18948:1:1;18937:13;;18868:88::o;18961:112::-;;19019:1;19009:2;;19024:18;;:::i;:::-;-1:-1:-1;19058:9:1;;18999:74::o;19078:127::-;19139:10;19134:3;19130:20;19127:1;19120:31;19170:4;19167:1;19160:15;19194:4;19191:1;19184:15;19210:127;19271:10;19266:3;19262:20;19259:1;19252:31;19302:4;19299:1;19292:15;19326:4;19323:1;19316:15;19342:127;19403:10;19398:3;19394:20;19391:1;19384:31;19434:4;19431:1;19424:15;19458:4;19455:1;19448:15;19474:131;-1:-1:-1;;;;;;19548:32:1;;19538:43;;19528:2;;19595:1;19592;19585:12
Swarm Source
ipfs://5d3272ce4740580a3e554580a1ebfa5d51c938e6a75b793153b59519246cf30e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.