ERC-721
Overview
Max Total Supply
100 PPP-AH
Holders
75
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PPP-AHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x117cD4b3...B32b6cbC3 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PPPCollection
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Copyright (c) 2022-2023 Fellowship pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; interface IOperatorFilterRegistry { function isOperatorAllowed(address contract_, address operator) external view returns (bool); function registerAndSubscribe(address contract_, address subscription) external; } /// @title Token Base /// @notice Shared logic for token contracts contract PPPCollection is ERC721, Ownable { /// @notice The OpenSea OperatorFilterRegistry deployment IOperatorFilterRegistry private constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); uint256 private immutable MAX_SUPPLY; address public royaltyReceiver; address public minter; address public metadataContract; uint256 public royaltyFraction; uint256 public royaltyDenominator = 100; /// @notice Count of valid NFTs tracked by this contract uint256 public totalSupply; /// @notice Return the baseURI used for computing `tokenURI` values string public baseURI; error OnlyMinter(); error OperatorNotAllowed(address operator); /// @dev This event emits when the metadata of a token is changed. Anyone aware of ERC-4906 can update cached /// attributes related to a given `tokenId`. event MetadataUpdate(uint256 tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. Anyone aware of ERC-4906 can update /// cached attributes for tokens in the designated range. event BatchMetadataUpdate(uint256 fromTokenId, uint256 toTokenId); constructor( string memory name, string memory symbol, string memory baseURI_, uint256 maxSupply, address royaltyReceiver_, uint256 royaltyPercent ) ERC721(name, symbol) { // CHECKS inputs require(maxSupply > 0, "Max supply must not be zero"); require(royaltyReceiver_ != address(0), "Royalty receiver must not be the zero address"); require(royaltyPercent <= 100, "Royalty fraction must not be greater than 100%"); // EFFECTS MAX_SUPPLY = maxSupply; baseURI = baseURI_; royaltyReceiver = royaltyReceiver_; royaltyFraction = royaltyPercent; // INTERACTIONS if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Subscribe to the "OpenSea Curated Subscription Address" OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); } } modifier onlyMinter() { if (msg.sender != minter) revert OnlyMinter(); _; } // HOLDER FUNCTIONS /// @notice Enable or disable approval for an `operator` to manage all assets belonging to the sender /// @dev Emits the ApprovalForAll event. The contract MUST allow multiple operators per owner. /// @param operator Address to add to the set of authorized operators /// @param approved True to grant approval, false to revoke approval function setApprovalForAll(address operator, bool approved) public virtual override { // CHECKS inputs if (approved && !operatorAllowed(operator)) revert OperatorNotAllowed(operator); // CHECKS + EFFECTS super.setApprovalForAll(operator, approved); } // MINTER FUNCTIONS /// @notice Mint an unclaimed token to the given address /// @dev Can only be called by the `minter` address /// @param to The new token owner that will receive the minted token /// @param tokenId The token being claimed. Reverts if invalid or already claimed. function mint(address to, uint256 tokenId) external onlyMinter { // CHECKS inputs require(tokenId < MAX_SUPPLY, "Invalid token ID"); // CHECKS + EFFECTS (not _safeMint, so no interactions) _mint(to, tokenId); // More EFFECTS unchecked { totalSupply++; } } // OWNER FUNCTIONS /// @notice Set the `minter` address /// @dev Can only be called by the contract `owner` function setMinter(address minter_) external onlyOwner { minter = minter_; } /// @notice Set the `royaltyReceiver` address /// @dev Can only be called by the contract `owner` function setRoyaltyReceiver(address royaltyReceiver_) external onlyOwner { // CHECKS inputs require(royaltyReceiver_ != address(0), "Royalty receiver must not be the zero address"); // EFFECTS royaltyReceiver = royaltyReceiver_; } /// @notice Update the royalty fraction /// @dev Can only be called by the contract `owner` function setRoyaltyFraction(uint256 royaltyFraction_, uint256 royaltyDenominator_) external onlyOwner { // CHECKS inputs require(royaltyDenominator_ != 0, "Royalty denominator must not be zero"); require(royaltyFraction_ <= royaltyDenominator_, "Royalty fraction must not be greater than 100%"); // EFFECTS royaltyFraction = royaltyFraction_; royaltyDenominator = royaltyDenominator_; } /// @notice Update the baseURI for all metadata /// @dev Can only be called by the contract `owner`. Emits an ERC-4906 event. /// @param baseURI_ The new URI base. When specified, token URIs are created by concatenating the baseURI, /// token ID, and ".json". function updateBaseURI(string calldata baseURI_) external onlyOwner { // CHECKS inputs require(bytes(baseURI_).length > 0, "New base URI must be provided"); // EFFECTS baseURI = baseURI_; metadataContract = address(0); emit BatchMetadataUpdate(0, MAX_SUPPLY - 1); } /// @notice Delegate all `tokenURI` calls to another contract /// @dev Can only be called by the contract `owner`. Emits an ERC-4906 event. /// @param delegate The contract that will handle `tokenURI` responses function delegateTokenURIs(address delegate) external onlyOwner { // CHECKS inputs require(delegate != address(0), "New metadata delegate must not be the zero address"); require(delegate.code.length > 0, "New metadata delegate must be a contract"); // EFFECTS baseURI = ""; metadataContract = delegate; emit BatchMetadataUpdate(0, MAX_SUPPLY - 1); } // VIEW FUNCTIONS /// @notice The URI for the given token /// @dev Throws if `tokenId` is not valid or has not been minted function tokenURI(uint256 tokenId) public view override returns (string memory) { _requireMinted(tokenId); if (bytes(baseURI).length > 0) { return string(abi.encodePacked(baseURI, Strings.toString(tokenId), ".json")); } if (address(metadataContract) != address(0)) { return IERC721Metadata(metadataContract).tokenURI(tokenId); } revert("tokenURI not configured"); } /// @notice Return whether the given tokenId has been minted yet function exists(uint256 tokenId) external view returns (bool) { return _exists(tokenId); } /// @notice Calculate how much royalty is owed and to whom /// @param salePrice - the sale price of the NFT asset /// @return receiver - address of where the royalty payment should be sent /// @return royaltyAmount - the royalty payment amount for salePrice function royaltyInfo(uint256, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { receiver = royaltyReceiver; // Use OpenZeppelin math utils for full precision multiply and divide without overflow royaltyAmount = Math.mulDiv(salePrice, royaltyFraction, royaltyDenominator, Math.Rounding.Up); } /// @notice Query if a contract implements an interface /// @dev Interface identification is specified in ERC-165. This function uses less than 30,000 gas. /// @param interfaceId The interface identifier, as specified in ERC-165 /// @return `true` if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) { return interfaceId == 0x80ac58cd || // ERC-721 Non-Fungible Token Standard interfaceId == 0x5b5e139f || // ERC-721 Non-Fungible Token Standard - metadata extension interfaceId == 0x2a55205a || // ERC-2981 NFT Royalty Standard interfaceId == 0x49064906 || // ERC-4906 Metadata Update Extension interfaceId == 0x7f5828d0 || // ERC-173 Contract Ownership Standard interfaceId == 0x01ffc9a7; // ERC-165 Standard Interface Detection } // PRIVATE FUNCTIONS /// @dev OpenZeppelin hook that is called before any token transfer, including minting and burning function _beforeTokenTransfer(address from, address to, uint256 id, uint256 quantity) internal virtual override { if (from != address(0) && from != msg.sender && !operatorAllowed(msg.sender)) { revert OperatorNotAllowed(msg.sender); } super._beforeTokenTransfer(from, to, id, quantity); } function operatorAllowed(address operator) internal view returns (bool) { return address(OPERATOR_FILTER_REGISTRY).code.length == 0 || OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator); } }
// Copyright (c) 2022-2023 Fellowship // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies // or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// OpenZeppelin Contracts // // Copyright (c) 2016-2023 zOS Global Limited and contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the // Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint256","name":"royaltyPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyMinter","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"}],"name":"delegateTokenURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFraction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter_","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyFraction_","type":"uint256"},{"internalType":"uint256","name":"royaltyDenominator_","type":"uint256"}],"name":"setRoyaltyFraction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526064600b553480156200001657600080fd5b506040516200287f3803806200287f83398101604081905262000039916200038f565b85856000620000498382620004e5565b506001620000588282620004e5565b505050620000756200006f6200027460201b60201c565b62000278565b60008311620000cb5760405162461bcd60e51b815260206004820152601b60248201527f4d617820737570706c79206d757374206e6f74206265207a65726f000000000060448201526064015b60405180910390fd5b6001600160a01b038216620001395760405162461bcd60e51b815260206004820152602d60248201527f526f79616c7479207265636569766572206d757374206e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401620000c2565b6064811115620001a35760405162461bcd60e51b815260206004820152602e60248201527f526f79616c7479206672616374696f6e206d757374206e6f742062652067726560448201526d61746572207468616e203130302560901b6064820152608401620000c2565b6080839052600d620001b68582620004e5565b50600780546001600160a01b0319166001600160a01b038416179055600a8190556daaeb6d7670e522a718067333cd4e3b156200026857604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe90604401600060405180830381600087803b1580156200024e57600080fd5b505af115801562000263573d6000803e3d6000fd5b505050505b505050505050620005b1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002f257600080fd5b81516001600160401b03808211156200030f576200030f620002ca565b604051601f8301601f19908116603f011681019082821181831017156200033a576200033a620002ca565b816040528381526020925086838588010111156200035757600080fd5b600091505b838210156200037b57858201830151818301840152908201906200035c565b600093810190920192909252949350505050565b60008060008060008060c08789031215620003a957600080fd5b86516001600160401b0380821115620003c157600080fd5b620003cf8a838b01620002e0565b97506020890151915080821115620003e657600080fd5b620003f48a838b01620002e0565b965060408901519150808211156200040b57600080fd5b506200041a89828a01620002e0565b606089015160808a0151919650945090506001600160a01b03811681146200044157600080fd5b8092505060a087015190509295509295509295565b600181811c908216806200046b57607f821691505b6020821081036200048c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004e057600081815260208120601f850160051c81016020861015620004bb5750805b601f850160051c820191505b81811015620004dc57828155600101620004c7565b5050505b505050565b81516001600160401b03811115620005015762000501620002ca565b620005198162000512845462000456565b8462000492565b602080601f831160018114620005515760008415620005385750858301515b600019600386901b1c1916600185901b178555620004dc565b600085815260208120601f198616915b82811015620005825788860151825594840194600190910190840162000561565b5085821015620005a15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516122a4620005db60003960008181610810015281816108dc0152610c4801526122a46000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806370a082311161010f578063b88d4fde116100a2578063ecededad11610071578063ecededad14610412578063f2fde38b14610425578063fca3b5aa14610438578063fd8d7ed31461044b57600080fd5b8063b88d4fde146103d0578063c87b56dd146103e3578063e7dee99f146103f6578063e985e9c5146103ff57600080fd5b8063931688cb116100de578063931688cb1461038f57806395d89b41146103a25780639fbc8713146103aa578063a22cb465146103bd57600080fd5b806370a0823114610350578063715018a6146103635780638da5cb5b1461036b5780638dc251e31461037c57600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e1461030f5780634f558e79146103225780636352211e146103355780636c0360eb1461034857600080fd5b806323b872dd146102a45780632a55205a146102b757806335209821146102e957806340c10f19146102fc57600080fd5b8063081812fc116101c3578063081812fc14610252578063095ea7b314610265578063113b98e01461027a57806318160ddd1461028d57600080fd5b806301ffc9a7146101ea57806306fdde03146102125780630754617214610227575b600080fd5b6101fd6101f8366004611a4a565b610454565b60405190151581526020015b60405180910390f35b61021a6104f7565b6040516102099190611ab7565b60085461023a906001600160a01b031681565b6040516001600160a01b039091168152602001610209565b61023a610260366004611aca565b610589565b610278610273366004611aff565b6105b0565b005b610278610288366004611b29565b6106ca565b610296600c5481565b604051908152602001610209565b6102786102b2366004611b44565b61084f565b6102ca6102c5366004611b80565b610880565b604080516001600160a01b039093168352602083019190915201610209565b60095461023a906001600160a01b031681565b61027861030a366004611aff565b6108af565b61027861031d366004611b44565b610953565b6101fd610330366004611aca565b61096e565b61023a610343366004611aca565b61098d565b61021a6109ed565b61029661035e366004611b29565b610a7b565b610278610b01565b6006546001600160a01b031661023a565b61027861038a366004611b29565b610b15565b61027861039d366004611ba2565b610bab565b61021a610c88565b60075461023a906001600160a01b031681565b6102786103cb366004611c22565b610c97565b6102786103de366004611cc8565b610ce1565b61021a6103f1366004611aca565b610d19565b610296600a5481565b6101fd61040d366004611d73565b610e37565b610278610420366004611b80565b610e65565b610278610433366004611b29565b610f3b565b610278610446366004611b29565b610fb4565b610296600b5481565b60006380ac58cd60e01b6001600160e01b0319831614806104855750635b5e139f60e01b6001600160e01b03198316145b806104a0575063152a902d60e11b6001600160e01b03198316145b806104bb5750632483248360e11b6001600160e01b03198316145b806104d657506307f5828d60e41b6001600160e01b03198316145b806104f157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461050690611d9d565b80601f016020809104026020016040519081016040528092919081815260200182805461053290611d9d565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b5050505050905090565b600061059482610fde565b506000908152600460205260409020546001600160a01b031690565b60006105bb8261098d565b9050806001600160a01b0316836001600160a01b03160361062d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061064957506106498133610e37565b6106bb5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610624565b6106c5838361103d565b505050565b6106d26110ab565b6001600160a01b0381166107435760405162461bcd60e51b815260206004820152603260248201527f4e6577206d657461646174612064656c6567617465206d757374206e6f7420626044820152716520746865207a65726f206164647265737360701b6064820152608401610624565b6000816001600160a01b03163b116107ae5760405162461bcd60e51b815260206004820152602860248201527f4e6577206d657461646174612064656c6567617465206d75737420626520612060448201526718dbdb9d1c9858dd60c21b6064820152608401610624565b604080516020810190915260008152600d906107ca9082611e25565b50600980546001600160a01b0319166001600160a01b0383161790557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c600061083460017f0000000000000000000000000000000000000000000000000000000000000000611efb565b6040805192835260208301919091520160405180910390a150565b6108593382611105565b6108755760405162461bcd60e51b815260040161062490611f0e565b6106c5838383611164565b600754600a54600b546001600160a01b03909216916000916108a69185919060016112d5565b90509250929050565b6008546001600160a01b031633146108da57604051639cdc2ed560e01b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811061093c5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b88125160821b6044820152606401610624565b6109468282611332565b5050600c80546001019055565b6106c583838360405180602001604052806000815250610ce1565b6000818152600260205260408120546001600160a01b031615156104f1565b6000818152600260205260408120546001600160a01b0316806104f15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600d80546109fa90611d9d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2690611d9d565b8015610a735780601f10610a4857610100808354040283529160200191610a73565b820191906000526020600020905b815481529060010190602001808311610a5657829003601f168201915b505050505081565b60006001600160a01b038216610ae55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610624565b506001600160a01b031660009081526003602052604090205490565b610b096110ab565b610b1360006114cb565b565b610b1d6110ab565b6001600160a01b038116610b895760405162461bcd60e51b815260206004820152602d60248201527f526f79616c7479207265636569766572206d757374206e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401610624565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610bb36110ab565b80610c005760405162461bcd60e51b815260206004820152601d60248201527f4e6577206261736520555249206d7573742062652070726f76696465640000006044820152606401610624565b600d610c0d828483611f5b565b50600980546001600160a01b03191690557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000610c6c60017f0000000000000000000000000000000000000000000000000000000000000000611efb565b6040805192835260208301919091520160405180910390a15050565b60606001805461050690611d9d565b808015610caa5750610ca88261151d565b155b15610cd357604051633b79c77360e21b81526001600160a01b0383166004820152602401610624565b610cdd82826115b2565b5050565b610ceb3383611105565b610d075760405162461bcd60e51b815260040161062490611f0e565b610d13848484846115bd565b50505050565b6060610d2482610fde565b6000600d8054610d3390611d9d565b90501115610d6d57600d610d46836115f0565b604051602001610d5792919061201c565b6040516020818303038152906040529050919050565b6009546001600160a01b031615610def5760095460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015610dc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104f191908101906120b3565b60405162461bcd60e51b815260206004820152601760248201527f746f6b656e555249206e6f7420636f6e666967757265640000000000000000006044820152606401610624565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610e6d6110ab565b80600003610ec95760405162461bcd60e51b8152602060048201526024808201527f526f79616c74792064656e6f6d696e61746f72206d757374206e6f74206265206044820152637a65726f60e01b6064820152608401610624565b80821115610f305760405162461bcd60e51b815260206004820152602e60248201527f526f79616c7479206672616374696f6e206d757374206e6f742062652067726560448201526d61746572207468616e203130302560901b6064820152608401610624565b600a91909155600b55565b610f436110ab565b6001600160a01b038116610fa85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610624565b610fb1816114cb565b50565b610fbc6110ab565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546001600160a01b0316610fb15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110728261098d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b03163314610b135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610624565b6000806111118361098d565b9050806001600160a01b0316846001600160a01b0316148061113857506111388185610e37565b8061115c5750836001600160a01b031661115184610589565b6001600160a01b0316145b949350505050565b826001600160a01b03166111778261098d565b6001600160a01b03161461119d5760405162461bcd60e51b815260040161062490612121565b6001600160a01b0382166111ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610624565b61120c8383836001611683565b826001600160a01b031661121f8261098d565b6001600160a01b0316146112455760405162461bcd60e51b815260040161062490612121565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806112e38686866116db565b905060018360028111156112f9576112f9612166565b1480156113165750600084806113115761131161217c565b868809115b1561132957611326600182612192565b90505b95945050505050565b6001600160a01b0382166113885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610624565b6000818152600260205260409020546001600160a01b0316156113ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6113fb600083836001611683565b6000818152600260205260409020546001600160a01b0316156114605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006daaeb6d7670e522a718067333cd4e3b15806104f15750604051633185c44d60e21b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561158e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f191906121a5565b610cdd338383611790565b6115c8848484611164565b6115d48484848461185e565b610d135760405162461bcd60e51b8152600401610624906121c2565b606060006115fd8361195c565b600101905060008167ffffffffffffffff81111561161d5761161d611c59565b6040519080825280601f01601f191660200182016040528015611647576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461165157509392505050565b6001600160a01b038416158015906116a457506001600160a01b0384163314155b80156116b657506116b43361151d565b155b156116d657604051633b79c77360e21b8152336004820152602401610624565b610d13565b60008080600019858709858702925082811083820303915050806000036117155783828161170b5761170b61217c565b0492505050611789565b80841161172157600080fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b816001600160a01b0316836001600160a01b0316036117f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610624565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b1561195457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118a2903390899088908890600401612214565b6020604051808303816000875af19250505080156118dd575060408051601f3d908101601f191682019092526118da91810190612251565b60015b61193a573d80801561190b576040519150601f19603f3d011682016040523d82523d6000602084013e611910565b606091505b5080516000036119325760405162461bcd60e51b8152600401610624906121c2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061115c565b50600161115c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061199b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106119c7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106119e557662386f26fc10000830492506010015b6305f5e10083106119fd576305f5e100830492506008015b6127108310611a1157612710830492506004015b60648310611a23576064830492506002015b600a83106104f15760010192915050565b6001600160e01b031981168114610fb157600080fd5b600060208284031215611a5c57600080fd5b813561178981611a34565b60005b83811015611a82578181015183820152602001611a6a565b50506000910152565b60008151808452611aa3816020860160208601611a67565b601f01601f19169290920160200192915050565b6020815260006117896020830184611a8b565b600060208284031215611adc57600080fd5b5035919050565b80356001600160a01b0381168114611afa57600080fd5b919050565b60008060408385031215611b1257600080fd5b611b1b83611ae3565b946020939093013593505050565b600060208284031215611b3b57600080fd5b61178982611ae3565b600080600060608486031215611b5957600080fd5b611b6284611ae3565b9250611b7060208501611ae3565b9150604084013590509250925092565b60008060408385031215611b9357600080fd5b50508035926020909101359150565b60008060208385031215611bb557600080fd5b823567ffffffffffffffff80821115611bcd57600080fd5b818501915085601f830112611be157600080fd5b813581811115611bf057600080fd5b866020828501011115611c0257600080fd5b60209290920196919550909350505050565b8015158114610fb157600080fd5b60008060408385031215611c3557600080fd5b611c3e83611ae3565b91506020830135611c4e81611c14565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c9857611c98611c59565b604052919050565b600067ffffffffffffffff821115611cba57611cba611c59565b50601f01601f191660200190565b60008060008060808587031215611cde57600080fd5b611ce785611ae3565b9350611cf560208601611ae3565b925060408501359150606085013567ffffffffffffffff811115611d1857600080fd5b8501601f81018713611d2957600080fd5b8035611d3c611d3782611ca0565b611c6f565b818152886020838501011115611d5157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215611d8657600080fd5b611d8f83611ae3565b91506108a660208401611ae3565b600181811c90821680611db157607f821691505b602082108103611dd157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106c557600081815260208120601f850160051c81016020861015611dfe5750805b601f850160051c820191505b81811015611e1d57828155600101611e0a565b505050505050565b815167ffffffffffffffff811115611e3f57611e3f611c59565b611e5381611e4d8454611d9d565b84611dd7565b602080601f831160018114611e885760008415611e705750858301515b600019600386901b1c1916600185901b178555611e1d565b600085815260208120601f198616915b82811015611eb757888601518255948401946001909101908401611e98565b5085821015611ed55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156104f1576104f1611ee5565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b67ffffffffffffffff831115611f7357611f73611c59565b611f8783611f818354611d9d565b83611dd7565b6000601f841160018114611fbb5760008515611fa35750838201355b600019600387901b1c1916600186901b178355612015565b600083815260209020601f19861690835b82811015611fec5786850135825560209485019460019092019101611fcc565b50868210156120095760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600080845461202a81611d9d565b60018281168015612042576001811461205757612086565b60ff1984168752821515830287019450612086565b8860005260208060002060005b8581101561207d5781548a820152908401908201612064565b50505082870194505b50505050835161209a818360208801611a67565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156120c557600080fd5b815167ffffffffffffffff8111156120dc57600080fd5b8201601f810184136120ed57600080fd5b80516120fb611d3782611ca0565b81815285602083850101111561211057600080fd5b611329826020830160208601611a67565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b808201808211156104f1576104f1611ee5565b6000602082840312156121b757600080fd5b815161178981611c14565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061224790830184611a8b565b9695505050505050565b60006020828403121561226357600080fd5b815161178981611a3456fea264697066735822122089a61f4bd6ca0e55a4e06a29d1d2cb552095e3070d035d2270423058b126914d64736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000562829508ad81a45bf621be99c130807906d626c000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000195245574f524c4420627920526f6f7065205261696e6973746f0000000000000000000000000000000000000000000000000000000000000000000000000000075245574f524c44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d563679416b74505362535850684269647975744a3438616b37637075514648447167537a4e616835454550322f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c806370a082311161010f578063b88d4fde116100a2578063ecededad11610071578063ecededad14610412578063f2fde38b14610425578063fca3b5aa14610438578063fd8d7ed31461044b57600080fd5b8063b88d4fde146103d0578063c87b56dd146103e3578063e7dee99f146103f6578063e985e9c5146103ff57600080fd5b8063931688cb116100de578063931688cb1461038f57806395d89b41146103a25780639fbc8713146103aa578063a22cb465146103bd57600080fd5b806370a0823114610350578063715018a6146103635780638da5cb5b1461036b5780638dc251e31461037c57600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e1461030f5780634f558e79146103225780636352211e146103355780636c0360eb1461034857600080fd5b806323b872dd146102a45780632a55205a146102b757806335209821146102e957806340c10f19146102fc57600080fd5b8063081812fc116101c3578063081812fc14610252578063095ea7b314610265578063113b98e01461027a57806318160ddd1461028d57600080fd5b806301ffc9a7146101ea57806306fdde03146102125780630754617214610227575b600080fd5b6101fd6101f8366004611a4a565b610454565b60405190151581526020015b60405180910390f35b61021a6104f7565b6040516102099190611ab7565b60085461023a906001600160a01b031681565b6040516001600160a01b039091168152602001610209565b61023a610260366004611aca565b610589565b610278610273366004611aff565b6105b0565b005b610278610288366004611b29565b6106ca565b610296600c5481565b604051908152602001610209565b6102786102b2366004611b44565b61084f565b6102ca6102c5366004611b80565b610880565b604080516001600160a01b039093168352602083019190915201610209565b60095461023a906001600160a01b031681565b61027861030a366004611aff565b6108af565b61027861031d366004611b44565b610953565b6101fd610330366004611aca565b61096e565b61023a610343366004611aca565b61098d565b61021a6109ed565b61029661035e366004611b29565b610a7b565b610278610b01565b6006546001600160a01b031661023a565b61027861038a366004611b29565b610b15565b61027861039d366004611ba2565b610bab565b61021a610c88565b60075461023a906001600160a01b031681565b6102786103cb366004611c22565b610c97565b6102786103de366004611cc8565b610ce1565b61021a6103f1366004611aca565b610d19565b610296600a5481565b6101fd61040d366004611d73565b610e37565b610278610420366004611b80565b610e65565b610278610433366004611b29565b610f3b565b610278610446366004611b29565b610fb4565b610296600b5481565b60006380ac58cd60e01b6001600160e01b0319831614806104855750635b5e139f60e01b6001600160e01b03198316145b806104a0575063152a902d60e11b6001600160e01b03198316145b806104bb5750632483248360e11b6001600160e01b03198316145b806104d657506307f5828d60e41b6001600160e01b03198316145b806104f157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461050690611d9d565b80601f016020809104026020016040519081016040528092919081815260200182805461053290611d9d565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b5050505050905090565b600061059482610fde565b506000908152600460205260409020546001600160a01b031690565b60006105bb8261098d565b9050806001600160a01b0316836001600160a01b03160361062d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061064957506106498133610e37565b6106bb5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610624565b6106c5838361103d565b505050565b6106d26110ab565b6001600160a01b0381166107435760405162461bcd60e51b815260206004820152603260248201527f4e6577206d657461646174612064656c6567617465206d757374206e6f7420626044820152716520746865207a65726f206164647265737360701b6064820152608401610624565b6000816001600160a01b03163b116107ae5760405162461bcd60e51b815260206004820152602860248201527f4e6577206d657461646174612064656c6567617465206d75737420626520612060448201526718dbdb9d1c9858dd60c21b6064820152608401610624565b604080516020810190915260008152600d906107ca9082611e25565b50600980546001600160a01b0319166001600160a01b0383161790557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c600061083460017f00000000000000000000000000000000000000000000000000000000000001f4611efb565b6040805192835260208301919091520160405180910390a150565b6108593382611105565b6108755760405162461bcd60e51b815260040161062490611f0e565b6106c5838383611164565b600754600a54600b546001600160a01b03909216916000916108a69185919060016112d5565b90509250929050565b6008546001600160a01b031633146108da57604051639cdc2ed560e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000001f4811061093c5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b88125160821b6044820152606401610624565b6109468282611332565b5050600c80546001019055565b6106c583838360405180602001604052806000815250610ce1565b6000818152600260205260408120546001600160a01b031615156104f1565b6000818152600260205260408120546001600160a01b0316806104f15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600d80546109fa90611d9d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2690611d9d565b8015610a735780601f10610a4857610100808354040283529160200191610a73565b820191906000526020600020905b815481529060010190602001808311610a5657829003601f168201915b505050505081565b60006001600160a01b038216610ae55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610624565b506001600160a01b031660009081526003602052604090205490565b610b096110ab565b610b1360006114cb565b565b610b1d6110ab565b6001600160a01b038116610b895760405162461bcd60e51b815260206004820152602d60248201527f526f79616c7479207265636569766572206d757374206e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401610624565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610bb36110ab565b80610c005760405162461bcd60e51b815260206004820152601d60248201527f4e6577206261736520555249206d7573742062652070726f76696465640000006044820152606401610624565b600d610c0d828483611f5b565b50600980546001600160a01b03191690557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000610c6c60017f00000000000000000000000000000000000000000000000000000000000001f4611efb565b6040805192835260208301919091520160405180910390a15050565b60606001805461050690611d9d565b808015610caa5750610ca88261151d565b155b15610cd357604051633b79c77360e21b81526001600160a01b0383166004820152602401610624565b610cdd82826115b2565b5050565b610ceb3383611105565b610d075760405162461bcd60e51b815260040161062490611f0e565b610d13848484846115bd565b50505050565b6060610d2482610fde565b6000600d8054610d3390611d9d565b90501115610d6d57600d610d46836115f0565b604051602001610d5792919061201c565b6040516020818303038152906040529050919050565b6009546001600160a01b031615610def5760095460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015610dc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104f191908101906120b3565b60405162461bcd60e51b815260206004820152601760248201527f746f6b656e555249206e6f7420636f6e666967757265640000000000000000006044820152606401610624565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610e6d6110ab565b80600003610ec95760405162461bcd60e51b8152602060048201526024808201527f526f79616c74792064656e6f6d696e61746f72206d757374206e6f74206265206044820152637a65726f60e01b6064820152608401610624565b80821115610f305760405162461bcd60e51b815260206004820152602e60248201527f526f79616c7479206672616374696f6e206d757374206e6f742062652067726560448201526d61746572207468616e203130302560901b6064820152608401610624565b600a91909155600b55565b610f436110ab565b6001600160a01b038116610fa85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610624565b610fb1816114cb565b50565b610fbc6110ab565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546001600160a01b0316610fb15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110728261098d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b03163314610b135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610624565b6000806111118361098d565b9050806001600160a01b0316846001600160a01b0316148061113857506111388185610e37565b8061115c5750836001600160a01b031661115184610589565b6001600160a01b0316145b949350505050565b826001600160a01b03166111778261098d565b6001600160a01b03161461119d5760405162461bcd60e51b815260040161062490612121565b6001600160a01b0382166111ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610624565b61120c8383836001611683565b826001600160a01b031661121f8261098d565b6001600160a01b0316146112455760405162461bcd60e51b815260040161062490612121565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806112e38686866116db565b905060018360028111156112f9576112f9612166565b1480156113165750600084806113115761131161217c565b868809115b1561132957611326600182612192565b90505b95945050505050565b6001600160a01b0382166113885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610624565b6000818152600260205260409020546001600160a01b0316156113ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6113fb600083836001611683565b6000818152600260205260409020546001600160a01b0316156114605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006daaeb6d7670e522a718067333cd4e3b15806104f15750604051633185c44d60e21b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561158e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f191906121a5565b610cdd338383611790565b6115c8848484611164565b6115d48484848461185e565b610d135760405162461bcd60e51b8152600401610624906121c2565b606060006115fd8361195c565b600101905060008167ffffffffffffffff81111561161d5761161d611c59565b6040519080825280601f01601f191660200182016040528015611647576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461165157509392505050565b6001600160a01b038416158015906116a457506001600160a01b0384163314155b80156116b657506116b43361151d565b155b156116d657604051633b79c77360e21b8152336004820152602401610624565b610d13565b60008080600019858709858702925082811083820303915050806000036117155783828161170b5761170b61217c565b0492505050611789565b80841161172157600080fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b816001600160a01b0316836001600160a01b0316036117f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610624565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b1561195457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118a2903390899088908890600401612214565b6020604051808303816000875af19250505080156118dd575060408051601f3d908101601f191682019092526118da91810190612251565b60015b61193a573d80801561190b576040519150601f19603f3d011682016040523d82523d6000602084013e611910565b606091505b5080516000036119325760405162461bcd60e51b8152600401610624906121c2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061115c565b50600161115c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061199b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106119c7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106119e557662386f26fc10000830492506010015b6305f5e10083106119fd576305f5e100830492506008015b6127108310611a1157612710830492506004015b60648310611a23576064830492506002015b600a83106104f15760010192915050565b6001600160e01b031981168114610fb157600080fd5b600060208284031215611a5c57600080fd5b813561178981611a34565b60005b83811015611a82578181015183820152602001611a6a565b50506000910152565b60008151808452611aa3816020860160208601611a67565b601f01601f19169290920160200192915050565b6020815260006117896020830184611a8b565b600060208284031215611adc57600080fd5b5035919050565b80356001600160a01b0381168114611afa57600080fd5b919050565b60008060408385031215611b1257600080fd5b611b1b83611ae3565b946020939093013593505050565b600060208284031215611b3b57600080fd5b61178982611ae3565b600080600060608486031215611b5957600080fd5b611b6284611ae3565b9250611b7060208501611ae3565b9150604084013590509250925092565b60008060408385031215611b9357600080fd5b50508035926020909101359150565b60008060208385031215611bb557600080fd5b823567ffffffffffffffff80821115611bcd57600080fd5b818501915085601f830112611be157600080fd5b813581811115611bf057600080fd5b866020828501011115611c0257600080fd5b60209290920196919550909350505050565b8015158114610fb157600080fd5b60008060408385031215611c3557600080fd5b611c3e83611ae3565b91506020830135611c4e81611c14565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c9857611c98611c59565b604052919050565b600067ffffffffffffffff821115611cba57611cba611c59565b50601f01601f191660200190565b60008060008060808587031215611cde57600080fd5b611ce785611ae3565b9350611cf560208601611ae3565b925060408501359150606085013567ffffffffffffffff811115611d1857600080fd5b8501601f81018713611d2957600080fd5b8035611d3c611d3782611ca0565b611c6f565b818152886020838501011115611d5157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215611d8657600080fd5b611d8f83611ae3565b91506108a660208401611ae3565b600181811c90821680611db157607f821691505b602082108103611dd157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106c557600081815260208120601f850160051c81016020861015611dfe5750805b601f850160051c820191505b81811015611e1d57828155600101611e0a565b505050505050565b815167ffffffffffffffff811115611e3f57611e3f611c59565b611e5381611e4d8454611d9d565b84611dd7565b602080601f831160018114611e885760008415611e705750858301515b600019600386901b1c1916600185901b178555611e1d565b600085815260208120601f198616915b82811015611eb757888601518255948401946001909101908401611e98565b5085821015611ed55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156104f1576104f1611ee5565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b67ffffffffffffffff831115611f7357611f73611c59565b611f8783611f818354611d9d565b83611dd7565b6000601f841160018114611fbb5760008515611fa35750838201355b600019600387901b1c1916600186901b178355612015565b600083815260209020601f19861690835b82811015611fec5786850135825560209485019460019092019101611fcc565b50868210156120095760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600080845461202a81611d9d565b60018281168015612042576001811461205757612086565b60ff1984168752821515830287019450612086565b8860005260208060002060005b8581101561207d5781548a820152908401908201612064565b50505082870194505b50505050835161209a818360208801611a67565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156120c557600080fd5b815167ffffffffffffffff8111156120dc57600080fd5b8201601f810184136120ed57600080fd5b80516120fb611d3782611ca0565b81815285602083850101111561211057600080fd5b611329826020830160208601611a67565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b808201808211156104f1576104f1611ee5565b6000602082840312156121b757600080fd5b815161178981611c14565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061224790830184611a8b565b9695505050505050565b60006020828403121561226357600080fd5b815161178981611a3456fea264697066735822122089a61f4bd6ca0e55a4e06a29d1d2cb552095e3070d035d2270423058b126914d64736f6c63430008120033
Deployed Bytecode Sourcemap
630:9039:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8350:606;;;;;;:::i;:::-;;:::i;:::-;;;565:14:14;;558:22;540:41;;528:2;513:18;8350:606:13;;;;;;;;2471:98:1;;;:::i;:::-;;;;;;;:::i;969:21:13:-;;;;;-1:-1:-1;;;;;969:21:13;;;;;;-1:-1:-1;;;;;1512:32:14;;;1494:51;;1482:2;1467:18;969:21:13;1348:203:14;3935:167:1;;;;;;:::i;:::-;;:::i;3468:406::-;;;;;;:::i;:::-;;:::i;:::-;;6176:411:13;;;;;;:::i;:::-;;:::i;1177:26::-;;;;;;;;;2515:25:14;;;2503:2;2488:18;1177:26:13;2369:177:14;4612:326:1;;;;;;:::i;:::-;;:::i;7630:354:13:-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3329:32:14;;;3311:51;;3393:2;3378:18;;3371:34;;;;3284:18;7630:354:13;3137:274:14;996:31:13;;;;;-1:-1:-1;;;;;996:31:13;;;3881:327;;;;;;:::i;:::-;;:::i;5004:179:1:-;;;;;;:::i;:::-;;:::i;7248:102:13:-;;;;;;:::i;:::-;;:::i;2190:219:1:-;;;;;;:::i;:::-;;:::i;1282:21:13:-;;;:::i;1929:204:1:-;;;;;;:::i;:::-;;:::i;1831:101:0:-;;;:::i;1201:85::-;1273:6;;-1:-1:-1;;;;;1273:6:0;1201:85;;4535:266:13;;;;;;:::i;:::-;;:::i;5628:319::-;;;;;;:::i;:::-;;:::i;2633:102:1:-;;;:::i;933:30:13:-;;;;;-1:-1:-1;;;;;933:30:13;;;3287:286;;;;;;:::i;:::-;;:::i;5249:314:1:-;;;;;;:::i;:::-;;:::i;6729:444:13:-;;;;;;:::i;:::-;;:::i;1034:30::-;;;;;;4388:162:1;;;;;;:::i;:::-;;:::i;4907:438:13:-;;;;;;:::i;:::-;;:::i;2081:198:0:-;;;;;;:::i;:::-;;:::i;4335:88:13:-;;;;;;:::i;:::-;;:::i;1070:39::-;;;;;;8350:606;8435:4;-1:-1:-1;;;;;;;;;8470:25:13;;;;:105;;-1:-1:-1;;;;;;;;;;8550:25:13;;;8470:105;:206;;;-1:-1:-1;;;;;;;;;;8651:25:13;;;8470:206;:280;;;-1:-1:-1;;;;;;;;;;8725:25:13;;;8470:280;:359;;;-1:-1:-1;;;;;;;;;;8804:25:13;;;8470:359;:439;;;-1:-1:-1;;;;;;;;;;8884:25:13;;;8470:439;8451:458;8350:606;-1:-1:-1;;8350:606:13:o;2471:98:1:-;2525:13;2557:5;2550:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2471:98;:::o;3935:167::-;4011:7;4030:23;4045:7;4030:14;:23::i;:::-;-1:-1:-1;4071:24:1;;;;:15;:24;;;;;;-1:-1:-1;;;;;4071:24:1;;3935:167::o;3468:406::-;3548:13;3564:23;3579:7;3564:14;:23::i;:::-;3548:39;;3611:5;-1:-1:-1;;;;;3605:11:1;:2;-1:-1:-1;;;;;3605:11:1;;3597:57;;;;-1:-1:-1;;;3597:57:1;;6804:2:14;3597:57:1;;;6786:21:14;6843:2;6823:18;;;6816:30;6882:34;6862:18;;;6855:62;-1:-1:-1;;;6933:18:14;;;6926:31;6974:19;;3597:57:1;;;;;;;;;719:10:6;-1:-1:-1;;;;;3686:21:1;;;;:62;;-1:-1:-1;3711:37:1;3728:5;719:10:6;4388:162:1;:::i;3711:37::-;3665:170;;;;-1:-1:-1;;;3665:170:1;;7206:2:14;3665:170:1;;;7188:21:14;7245:2;7225:18;;;7218:30;7284:34;7264:18;;;7257:62;7355:31;7335:18;;;7328:59;7404:19;;3665:170:1;7004:425:14;3665:170:1;3846:21;3855:2;3859:7;3846:8;:21::i;:::-;3538:336;3468:406;;:::o;6176:411:13:-;1094:13:0;:11;:13::i;:::-;-1:-1:-1;;;;;6283:22:13;::::1;6275:85;;;::::0;-1:-1:-1;;;6275:85:13;;7636:2:14;6275:85:13::1;::::0;::::1;7618:21:14::0;7675:2;7655:18;;;7648:30;7714:34;7694:18;;;7687:62;-1:-1:-1;;;7765:18:14;;;7758:48;7823:19;;6275:85:13::1;7434:414:14::0;6275:85:13::1;6401:1;6378:8;-1:-1:-1::0;;;;;6378:20:13::1;;:24;6370:77;;;::::0;-1:-1:-1;;;6370:77:13;;8055:2:14;6370:77:13::1;::::0;::::1;8037:21:14::0;8094:2;8074:18;;;8067:30;8133:34;8113:18;;;8106:62;-1:-1:-1;;;8184:18:14;;;8177:38;8232:19;;6370:77:13::1;7853:404:14::0;6370:77:13::1;6477:12;::::0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;6477:12:13;;:7:::1;::::0;:12:::1;::::0;:7;:12:::1;:::i;:::-;-1:-1:-1::0;6499:16:13::1;:27:::0;;-1:-1:-1;;;;;;6499:27:13::1;-1:-1:-1::0;;;;;6499:27:13;::::1;;::::0;;6542:38:::1;-1:-1:-1::0;6565:14:13::1;-1:-1:-1::0;6565:10:13::1;:14;:::i;:::-;6542:38;::::0;;10913:25:14;;;10969:2;10954:18;;10947:34;;;;10886:18;6542:38:13::1;;;;;;;6176:411:::0;:::o;4612:326:1:-;4801:41;719:10:6;4834:7:1;4801:18;:41::i;:::-;4793:99;;;;-1:-1:-1;;;4793:99:1;;;;;;;:::i;:::-;4903:28;4913:4;4919:2;4923:7;4903:9;:28::i;7630:354:13:-;7764:15;;7923;;7940:18;;-1:-1:-1;;;;;7764:15:13;;;;7702:16;;7900:77;;7912:9;;7923:15;7764;7900:11;:77::i;:::-;7884:93;;7630:354;;;;;:::o;3881:327::-;2859:6;;-1:-1:-1;;;;;2859:6:13;2845:10;:20;2841:45;;2874:12;;-1:-1:-1;;;2874:12:13;;;;;;;;;;;2841:45;3997:10:::1;3987:7;:20;3979:49;;;::::0;-1:-1:-1;;;3979:49:13;;11608:2:14;3979:49:13::1;::::0;::::1;11590:21:14::0;11647:2;11627:18;;;11620:30;-1:-1:-1;;;11666:18:14;;;11659:46;11722:18;;3979:49:13::1;11406:340:14::0;3979:49:13::1;4102:18;4108:2;4112:7;4102:5;:18::i;:::-;-1:-1:-1::0;;4178:11:13::1;:13:::0;;::::1;;::::0;;3881:327::o;5004:179:1:-;5137:39;5154:4;5160:2;5164:7;5137:39;;;;;;;;;;;;:16;:39::i;7248:102:13:-;7304:4;6930:16:1;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;7344:31;;7327:16:13;7256:126:1;2190:219;2262:7;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;;2324:56;;;;-1:-1:-1;;;2324:56:1;;11953:2:14;2324:56:1;;;11935:21:14;11992:2;11972:18;;;11965:30;-1:-1:-1;;;12011:18:14;;;12004:54;12075:18;;2324:56:1;11751:348:14;1282:21:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1929:204:1:-;2001:7;-1:-1:-1;;;;;2028:19:1;;2020:73;;;;-1:-1:-1;;;2020:73:1;;12306:2:14;2020:73:1;;;12288:21:14;12345:2;12325:18;;;12318:30;12384:34;12364:18;;;12357:62;-1:-1:-1;;;12435:18:14;;;12428:39;12484:19;;2020:73:1;12104:405:14;2020:73:1;-1:-1:-1;;;;;;2110:16:1;;;;;:9;:16;;;;;;;1929:204::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;4535:266:13:-;1094:13:0;:11;:13::i;:::-;-1:-1:-1;;;;;4651:30:13;::::1;4643:88;;;::::0;-1:-1:-1;;;4643:88:13;;12716:2:14;4643:88:13::1;::::0;::::1;12698:21:14::0;12755:2;12735:18;;;12728:30;12794:34;12774:18;;;12767:62;-1:-1:-1;;;12845:18:14;;;12838:43;12898:19;;4643:88:13::1;12514:409:14::0;4643:88:13::1;4760:15;:34:::0;;-1:-1:-1;;;;;;4760:34:13::1;-1:-1:-1::0;;;;;4760:34:13;;;::::1;::::0;;;::::1;::::0;;4535:266::o;5628:319::-;1094:13:0;:11;:13::i;:::-;5739:26:13;5731:68:::1;;;::::0;-1:-1:-1;;;5731:68:13;;13130:2:14;5731:68:13::1;::::0;::::1;13112:21:14::0;13169:2;13149:18;;;13142:30;13208:31;13188:18;;;13181:59;13257:18;;5731:68:13::1;12928:353:14::0;5731:68:13::1;5829:7;:18;5839:8:::0;;5829:7;:18:::1;:::i;:::-;-1:-1:-1::0;5857:16:13::1;:29:::0;;-1:-1:-1;;;;;;5857:29:13::1;::::0;;5902:38:::1;5884:1;5925:14;5857:29:::0;5925:10:::1;:14;:::i;:::-;5902:38;::::0;;10913:25:14;;;10969:2;10954:18;;10947:34;;;;10886:18;5902:38:13::1;;;;;;;5628:319:::0;;:::o;2633:102:1:-;2689:13;2721:7;2714:14;;;;;:::i;3287:286:13:-;3410:8;:38;;;;;3423:25;3439:8;3423:15;:25::i;:::-;3422:26;3410:38;3406:79;;;3457:28;;-1:-1:-1;;;3457:28:13;;-1:-1:-1;;;;;1512:32:14;;3457:28:13;;;1494:51:14;1467:18;;3457:28:13;1348:203:14;3406:79:13;3523:43;3547:8;3557;3523:23;:43::i;:::-;3287:286;;:::o;5249:314:1:-;5417:41;719:10:6;5450:7:1;5417:18;:41::i;:::-;5409:99;;;;-1:-1:-1;;;5409:99:1;;;;;;;:::i;:::-;5518:38;5532:4;5538:2;5542:7;5551:4;5518:13;:38::i;:::-;5249:314;;;;:::o;6729:444:13:-;6794:13;6819:23;6834:7;6819:14;:23::i;:::-;6881:1;6863:7;6857:21;;;;;:::i;:::-;;;:25;6853:132;;;6929:7;6938:25;6955:7;6938:16;:25::i;:::-;6912:61;;;;;;;;;:::i;:::-;;;;;;;;;;;;;6898:76;;6729:444;;;:::o;6853:132::-;7007:16;;-1:-1:-1;;;;;7007:16:13;6999:39;6995:128;;7077:16;;7061:51;;-1:-1:-1;;;7061:51:13;;;;;2515:25:14;;;-1:-1:-1;;;;;7077:16:13;;;;7061:42;;2488:18:14;;7061:51:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7061:51:13;;;;;;;;;;;;:::i;6995:128::-;7133:33;;-1:-1:-1;;;7133:33:13;;16544:2:14;7133:33:13;;;16526:21:14;16583:2;16563:18;;;16556:30;16622:25;16602:18;;;16595:53;16665:18;;7133:33:13;16342:347:14;4388:162:1;-1:-1:-1;;;;;4508:25:1;;;4485:4;4508:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4388:162::o;4907:438:13:-;1094:13:0;:11;:13::i;:::-;5052:19:13::1;5075:1;5052:24:::0;5044:73:::1;;;::::0;-1:-1:-1;;;5044:73:13;;16896:2:14;5044:73:13::1;::::0;::::1;16878:21:14::0;16935:2;16915:18;;;16908:30;16974:34;16954:18;;;16947:62;-1:-1:-1;;;17025:18:14;;;17018:34;17069:19;;5044:73:13::1;16694:400:14::0;5044:73:13::1;5155:19;5135:16;:39;;5127:98;;;::::0;-1:-1:-1;;;5127:98:13;;17301:2:14;5127:98:13::1;::::0;::::1;17283:21:14::0;17340:2;17320:18;;;17313:30;17379:34;17359:18;;;17352:62;-1:-1:-1;;;17430:18:14;;;17423:44;17484:19;;5127:98:13::1;17099:410:14::0;5127:98:13::1;5254:15;:34:::0;;;;5298:18:::1;:40:::0;4907:438::o;2081:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;17716:2:14;2161:73:0::1;::::0;::::1;17698:21:14::0;17755:2;17735:18;;;17728:30;17794:34;17774:18;;;17767:62;-1:-1:-1;;;17845:18:14;;;17838:36;17891:19;;2161:73:0::1;17514:402:14::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;4335:88:13:-;1094:13:0;:11;:13::i;:::-;4400:6:13::1;:16:::0;;-1:-1:-1;;;;;;4400:16:13::1;-1:-1:-1::0;;;;;4400:16:13;;;::::1;::::0;;;::::1;::::0;;4335:88::o;13466:133:1:-;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;13539:53;;;;-1:-1:-1;;;13539:53:1;;11953:2:14;13539:53:1;;;11935:21:14;11992:2;11972:18;;;11965:30;-1:-1:-1;;;12011:18:14;;;12004:54;12075:18;;13539:53:1;11751:348:14;12768:171:1;12842:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;12842:29:1;-1:-1:-1;;;;;12842:29:1;;;;;;;;:24;;12895:23;12842:24;12895:14;:23::i;:::-;-1:-1:-1;;;;;12886:46:1;;;;;;;;;;;12768:171;;:::o;1359:130:0:-;1273:6;;-1:-1:-1;;;;;1273:6:0;719:10:6;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;18123:2:14;1414:68:0;;;18105:21:14;;;18142:18;;;18135:30;18201:34;18181:18;;;18174:62;18253:18;;1414:68:0;17921:356:14;7540:261:1;7633:4;7649:13;7665:23;7680:7;7665:14;:23::i;:::-;7649:39;;7717:5;-1:-1:-1;;;;;7706:16:1;:7;-1:-1:-1;;;;;7706:16:1;;:52;;;;7726:32;7743:5;7750:7;7726:16;:32::i;:::-;7706:87;;;;7786:7;-1:-1:-1;;;;;7762:31:1;:20;7774:7;7762:11;:20::i;:::-;-1:-1:-1;;;;;7762:31:1;;7706:87;7698:96;7540:261;-1:-1:-1;;;;7540:261:1:o;11423:1233::-;11577:4;-1:-1:-1;;;;;11550:31:1;:23;11565:7;11550:14;:23::i;:::-;-1:-1:-1;;;;;11550:31:1;;11542:81;;;;-1:-1:-1;;;11542:81:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;11641:16:1;;11633:65;;;;-1:-1:-1;;;11633:65:1;;18890:2:14;11633:65:1;;;18872:21:14;18929:2;18909:18;;;18902:30;18968:34;18948:18;;;18941:62;-1:-1:-1;;;19019:18:14;;;19012:34;19063:19;;11633:65:1;18688:400:14;11633:65:1;11709:42;11730:4;11736:2;11740:7;11749:1;11709:20;:42::i;:::-;11878:4;-1:-1:-1;;;;;11851:31:1;:23;11866:7;11851:14;:23::i;:::-;-1:-1:-1;;;;;11851:31:1;;11843:81;;;;-1:-1:-1;;;11843:81:1;;;;;;;:::i;:::-;11993:24;;;;:15;:24;;;;;;;;11986:31;;-1:-1:-1;;;;;;11986:31:1;;;;;;-1:-1:-1;;;;;12461:15:1;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;12461:20:1;;;12495:13;;;;;;;;;:18;;11986:31;12495:18;;;12533:16;;;:7;:16;;;;;;:21;;;;;;;;;;12570:27;;12009:7;;12570:27;;;3538:336;3468:406;;:::o;5724:337:10:-;5863:7;5882:14;5899:25;5906:1;5909;5912:11;5899:6;:25::i;:::-;5882:42;-1:-1:-1;5950:11:10;5938:8;:23;;;;;;;;:::i;:::-;;:56;;;;;5993:1;5978:11;5965:25;;;;;:::i;:::-;5975:1;5972;5965:25;:29;5938:56;5934:98;;;6010:11;6020:1;6010:11;;:::i;:::-;;;5934:98;6048:6;5724:337;-1:-1:-1;;;;;5724:337:10:o;9091:920:1:-;-1:-1:-1;;;;;9170:16:1;;9162:61;;;;-1:-1:-1;;;9162:61:1;;19689:2:14;9162:61:1;;;19671:21:14;;;19708:18;;;19701:30;19767:34;19747:18;;;19740:62;19819:18;;9162:61:1;19487:356:14;9162:61:1;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;7344:31;9233:58;;;;-1:-1:-1;;;9233:58:1;;20050:2:14;9233:58:1;;;20032:21:14;20089:2;20069:18;;;20062:30;20128;20108:18;;;20101:58;20176:18;;9233:58:1;19848:352:14;9233:58:1;9302:48;9331:1;9335:2;9339:7;9348:1;9302:20;:48::i;:::-;7321:4;6930:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6930:16:1;7344:31;9437:58;;;;-1:-1:-1;;;9437:58:1;;20050:2:14;9437:58:1;;;20032:21:14;20089:2;20069:18;;;20062:30;20128;20108:18;;;20101:58;20176:18;;9437:58:1;19848:352:14;9437:58:1;-1:-1:-1;;;;;9837:13:1;;;;;;:9;:13;;;;;;;;:18;;9854:1;9837:18;;;9876:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9876:21:1;;;;;9913:33;9884:7;;9837:13;;9913:33;;9837:13;;9913:33;3287:286:13;;:::o;2433:187:0:-;2525:6;;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;;;;;2541:17:0;;;;;;;2573:40;;2525:6;;;2541:17;2525:6;;2573:40;;2506:16;;2573:40;2496:124;2433:187;:::o;9426:241:13:-;9492:4;840:42;9527:45;:50;;:133;;-1:-1:-1;9593:67:13;;-1:-1:-1;;;9593:67:13;;9644:4;9593:67;;;20417:34:14;-1:-1:-1;;;;;20487:15:14;;20467:18;;;20460:43;840:42:13;;9593;;20352:18:14;;9593:67:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;4169:153:1:-;4263:52;719:10:6;4296:8:1;4306;4263:18;:52::i;6424:305::-;6574:28;6584:4;6590:2;6594:7;6574:9;:28::i;:::-;6620:47;6643:4;6649:2;6653:7;6662:4;6620:22;:47::i;:::-;6612:110;;;;-1:-1:-1;;;6612:110:1;;;;;;;:::i;415:696:7:-;471:13;520:14;537:17;548:5;537:10;:17::i;:::-;557:1;537:21;520:38;;572:20;606:6;595:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;595:18:7;-1:-1:-1;572:41:7;-1:-1:-1;733:28:7;;;749:2;733:28;788:280;-1:-1:-1;;819:5:7;-1:-1:-1;;;953:2:7;942:14;;937:30;819:5;924:44;1012:2;1003:11;;;-1:-1:-1;1032:21:7;788:280;1032:21;-1:-1:-1;1088:6:7;415:696;-1:-1:-1;;;415:696:7:o;9091:329:13:-;-1:-1:-1;;;;;9217:18:13;;;;;;:40;;-1:-1:-1;;;;;;9239:18:13;;9247:10;9239:18;;9217:40;:72;;;;;9262:27;9278:10;9262:15;:27::i;:::-;9261:28;9217:72;9213:140;;;9312:30;;-1:-1:-1;;;9312:30:13;;9331:10;9312:30;;;1494:51:14;1467:18;;9312:30:13;1348:203:14;9213:140:13;9363:50;5249:314:1;1667:3925:10;1779:14;;;-1:-1:-1;;2316:1:10;2313;2306:20;2359:1;2356;2352:9;2343:18;;2414:5;2410:2;2407:13;2399:5;2395:2;2391:14;2387:34;2378:43;;;2516:5;2525:1;2516:10;2512:75;;2561:11;2553:5;:19;;;;;:::i;:::-;;2546:26;;;;;;2512:75;2711:5;2697:11;:19;2689:28;;;;;;2973:17;3108:11;3105:1;3102;3095:25;3641:12;;3656:1;3641:16;;;3626:32;;3761:22;;;;;3269:21;;;3859:16;;;3222:20;;;;3211:32;;;3611:12;4006;;;4002:23;;;;3998:31;;;4118:12;;;;4109:21;;;;4467:1;:15;;4486:1;4466:21;;;4719;;;4715:25;;4704:36;4788:21;;;4784:25;;4773:36;4858:21;;;4854:25;;4843:36;4928:21;;;4924:25;;4913:36;4998:21;;;4994:25;;4983:36;5069:21;;;5065:25;;;5054:36;5533:15;;-1:-1:-1;;1667:3925:10;;;;;;:::o;13075:307:1:-;13225:8;-1:-1:-1;;;;;13216:17:1;:5;-1:-1:-1;;;;;13216:17:1;;13208:55;;;;-1:-1:-1;;;13208:55:1;;21385:2:14;13208:55:1;;;21367:21:14;21424:2;21404:18;;;21397:30;21463:27;21443:18;;;21436:55;21508:18;;13208:55:1;21183:349:14;13208:55:1;-1:-1:-1;;;;;13273:25:1;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13273:46:1;;;;;;;;;;13334:41;;540::14;;;13334::1;;513:18:14;13334:41:1;;;;;;;13075:307;;;:::o;14151:831::-;14300:4;-1:-1:-1;;;;;14320:13:1;;1465:19:5;:23;14316:660:1;;14355:71;;-1:-1:-1;;;14355:71:1;;-1:-1:-1;;;;;14355:36:1;;;;;:71;;719:10:6;;14406:4:1;;14412:7;;14421:4;;14355:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14355:71:1;;;;;;;;-1:-1:-1;;14355:71:1;;;;;;;;;;;;:::i;:::-;;;14351:573;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14593:6;:13;14610:1;14593:18;14589:321;;14635:60;;-1:-1:-1;;;14635:60:1;;;;;;;:::i;14589:321::-;14862:6;14856:13;14847:6;14843:2;14839:15;14832:38;14351:573;-1:-1:-1;;;;;;14476:51:1;-1:-1:-1;;;14476:51:1;;-1:-1:-1;14469:58:1;;14316:660;-1:-1:-1;14961:4:1;14954:11;;9889:890:10;9942:7;;-1:-1:-1;;;10017:15:10;;10013:99;;-1:-1:-1;;;10052:15:10;;;-1:-1:-1;10095:2:10;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:10;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:10;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:10;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:10;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:10;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:10:o;14:131:14:-;-1:-1:-1;;;;;;88:32:14;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:14;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:14;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:14:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1556:180::-;1615:6;1668:2;1656:9;1647:7;1643:23;1639:32;1636:52;;;1684:1;1681;1674:12;1636:52;-1:-1:-1;1707:23:14;;1556:180;-1:-1:-1;1556:180:14:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:14;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:14:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;2884:248::-;2952:6;2960;3013:2;3001:9;2992:7;2988:23;2984:32;2981:52;;;3029:1;3026;3019:12;2981:52;-1:-1:-1;;3052:23:14;;;3122:2;3107:18;;;3094:32;;-1:-1:-1;2884:248:14:o;3416:592::-;3487:6;3495;3548:2;3536:9;3527:7;3523:23;3519:32;3516:52;;;3564:1;3561;3554:12;3516:52;3604:9;3591:23;3633:18;3674:2;3666:6;3663:14;3660:34;;;3690:1;3687;3680:12;3660:34;3728:6;3717:9;3713:22;3703:32;;3773:7;3766:4;3762:2;3758:13;3754:27;3744:55;;3795:1;3792;3785:12;3744:55;3835:2;3822:16;3861:2;3853:6;3850:14;3847:34;;;3877:1;3874;3867:12;3847:34;3922:7;3917:2;3908:6;3904:2;3900:15;3896:24;3893:37;3890:57;;;3943:1;3940;3933:12;3890:57;3974:2;3966:11;;;;;3996:6;;-1:-1:-1;3416:592:14;;-1:-1:-1;;;;3416:592:14:o;4013:118::-;4099:5;4092:13;4085:21;4078:5;4075:32;4065:60;;4121:1;4118;4111:12;4136:315;4201:6;4209;4262:2;4250:9;4241:7;4237:23;4233:32;4230:52;;;4278:1;4275;4268:12;4230:52;4301:29;4320:9;4301:29;:::i;:::-;4291:39;;4380:2;4369:9;4365:18;4352:32;4393:28;4415:5;4393:28;:::i;:::-;4440:5;4430:15;;;4136:315;;;;;:::o;4456:127::-;4517:10;4512:3;4508:20;4505:1;4498:31;4548:4;4545:1;4538:15;4572:4;4569:1;4562:15;4588:275;4659:2;4653:9;4724:2;4705:13;;-1:-1:-1;;4701:27:14;4689:40;;4759:18;4744:34;;4780:22;;;4741:62;4738:88;;;4806:18;;:::i;:::-;4842:2;4835:22;4588:275;;-1:-1:-1;4588:275:14:o;4868:186::-;4916:4;4949:18;4941:6;4938:30;4935:56;;;4971:18;;:::i;:::-;-1:-1:-1;5037:2:14;5016:15;-1:-1:-1;;5012:29:14;5043:4;5008:40;;4868:186::o;5059:888::-;5154:6;5162;5170;5178;5231:3;5219:9;5210:7;5206:23;5202:33;5199:53;;;5248:1;5245;5238:12;5199:53;5271:29;5290:9;5271:29;:::i;:::-;5261:39;;5319:38;5353:2;5342:9;5338:18;5319:38;:::i;:::-;5309:48;;5404:2;5393:9;5389:18;5376:32;5366:42;;5459:2;5448:9;5444:18;5431:32;5486:18;5478:6;5475:30;5472:50;;;5518:1;5515;5508:12;5472:50;5541:22;;5594:4;5586:13;;5582:27;-1:-1:-1;5572:55:14;;5623:1;5620;5613:12;5572:55;5659:2;5646:16;5684:48;5700:31;5728:2;5700:31;:::i;:::-;5684:48;:::i;:::-;5755:2;5748:5;5741:17;5795:7;5790:2;5785;5781;5777:11;5773:20;5770:33;5767:53;;;5816:1;5813;5806:12;5767:53;5871:2;5866;5862;5858:11;5853:2;5846:5;5842:14;5829:45;5915:1;5910:2;5905;5898:5;5894:14;5890:23;5883:34;5936:5;5926:15;;;;;5059:888;;;;;;;:::o;5952:260::-;6020:6;6028;6081:2;6069:9;6060:7;6056:23;6052:32;6049:52;;;6097:1;6094;6087:12;6049:52;6120:29;6139:9;6120:29;:::i;:::-;6110:39;;6168:38;6202:2;6191:9;6187:18;6168:38;:::i;6217:380::-;6296:1;6292:12;;;;6339;;;6360:61;;6414:4;6406:6;6402:17;6392:27;;6360:61;6467:2;6459:6;6456:14;6436:18;6433:38;6430:161;;6513:10;6508:3;6504:20;6501:1;6494:31;6548:4;6545:1;6538:15;6576:4;6573:1;6566:15;6430:161;;6217:380;;;:::o;8388:545::-;8490:2;8485:3;8482:11;8479:448;;;8526:1;8551:5;8547:2;8540:17;8596:4;8592:2;8582:19;8666:2;8654:10;8650:19;8647:1;8643:27;8637:4;8633:38;8702:4;8690:10;8687:20;8684:47;;;-1:-1:-1;8725:4:14;8684:47;8780:2;8775:3;8771:12;8768:1;8764:20;8758:4;8754:31;8744:41;;8835:82;8853:2;8846:5;8843:13;8835:82;;;8898:17;;;8879:1;8868:13;8835:82;;;8839:3;;;8388:545;;;:::o;9109:1352::-;9235:3;9229:10;9262:18;9254:6;9251:30;9248:56;;;9284:18;;:::i;:::-;9313:97;9403:6;9363:38;9395:4;9389:11;9363:38;:::i;:::-;9357:4;9313:97;:::i;:::-;9465:4;;9529:2;9518:14;;9546:1;9541:663;;;;10248:1;10265:6;10262:89;;;-1:-1:-1;10317:19:14;;;10311:26;10262:89;-1:-1:-1;;9066:1:14;9062:11;;;9058:24;9054:29;9044:40;9090:1;9086:11;;;9041:57;10364:81;;9511:944;;9541:663;8335:1;8328:14;;;8372:4;8359:18;;-1:-1:-1;;9577:20:14;;;9695:236;9709:7;9706:1;9703:14;9695:236;;;9798:19;;;9792:26;9777:42;;9890:27;;;;9858:1;9846:14;;;;9725:19;;9695:236;;;9699:3;9959:6;9950:7;9947:19;9944:201;;;10020:19;;;10014:26;-1:-1:-1;;10103:1:14;10099:14;;;10115:3;10095:24;10091:37;10087:42;10072:58;10057:74;;9944:201;-1:-1:-1;;;;;10191:1:14;10175:14;;;10171:22;10158:36;;-1:-1:-1;9109:1352:14:o;10466:127::-;10527:10;10522:3;10518:20;10515:1;10508:31;10558:4;10555:1;10548:15;10582:4;10579:1;10572:15;10598:128;10665:9;;;10686:11;;;10683:37;;;10700:18;;:::i;10992:409::-;11194:2;11176:21;;;11233:2;11213:18;;;11206:30;11272:34;11267:2;11252:18;;11245:62;-1:-1:-1;;;11338:2:14;11323:18;;11316:43;11391:3;11376:19;;10992:409::o;13286:1206::-;13410:18;13405:3;13402:27;13399:53;;;13432:18;;:::i;:::-;13461:94;13551:3;13511:38;13543:4;13537:11;13511:38;:::i;:::-;13505:4;13461:94;:::i;:::-;13581:1;13606:2;13601:3;13598:11;13623:1;13618:616;;;;14278:1;14295:3;14292:93;;;-1:-1:-1;14351:19:14;;;14338:33;14292:93;-1:-1:-1;;9066:1:14;9062:11;;;9058:24;9054:29;9044:40;9090:1;9086:11;;;9041:57;14398:78;;13591:895;;13618:616;8335:1;8328:14;;;8372:4;8359:18;;-1:-1:-1;;13654:17:14;;;13755:9;13777:229;13791:7;13788:1;13785:14;13777:229;;;13880:19;;;13867:33;13852:49;;13987:4;13972:20;;;;13940:1;13928:14;;;;13807:12;13777:229;;;13781:3;14034;14025:7;14022:16;14019:159;;;14158:1;14154:6;14148:3;14142;14139:1;14135:11;14131:21;14127:34;14123:39;14110:9;14105:3;14101:19;14088:33;14084:79;14076:6;14069:95;14019:159;;;14221:1;14215:3;14212:1;14208:11;14204:19;14198:4;14191:33;13591:895;;;13286:1206;;;:::o;14497:1187::-;14774:3;14803:1;14836:6;14830:13;14866:36;14892:9;14866:36;:::i;:::-;14921:1;14938:18;;;14965:133;;;;15112:1;15107:356;;;;14931:532;;14965:133;-1:-1:-1;;14998:24:14;;14986:37;;15071:14;;15064:22;15052:35;;15043:45;;;-1:-1:-1;14965:133:14;;15107:356;15138:6;15135:1;15128:17;15168:4;15213:2;15210:1;15200:16;15238:1;15252:165;15266:6;15263:1;15260:13;15252:165;;;15344:14;;15331:11;;;15324:35;15387:16;;;;15281:10;;15252:165;;;15256:3;;;15446:6;15441:3;15437:16;15430:23;;14931:532;;;;;15494:6;15488:13;15510:68;15569:8;15564:3;15557:4;15549:6;15545:17;15510:68;:::i;:::-;-1:-1:-1;;;15600:18:14;;15627:22;;;15676:1;15665:13;;14497:1187;-1:-1:-1;;;;14497:1187:14:o;15689:648::-;15769:6;15822:2;15810:9;15801:7;15797:23;15793:32;15790:52;;;15838:1;15835;15828:12;15790:52;15871:9;15865:16;15904:18;15896:6;15893:30;15890:50;;;15936:1;15933;15926:12;15890:50;15959:22;;16012:4;16004:13;;16000:27;-1:-1:-1;15990:55:14;;16041:1;16038;16031:12;15990:55;16070:2;16064:9;16095:48;16111:31;16139:2;16111:31;:::i;16095:48::-;16166:2;16159:5;16152:17;16206:7;16201:2;16196;16192;16188:11;16184:20;16181:33;16178:53;;;16227:1;16224;16217:12;16178:53;16240:67;16304:2;16299;16292:5;16288:14;16283:2;16279;16275:11;16240:67;:::i;18282:401::-;18484:2;18466:21;;;18523:2;18503:18;;;18496:30;18562:34;18557:2;18542:18;;18535:62;-1:-1:-1;;;18628:2:14;18613:18;;18606:35;18673:3;18658:19;;18282:401::o;19093:127::-;19154:10;19149:3;19145:20;19142:1;19135:31;19185:4;19182:1;19175:15;19209:4;19206:1;19199:15;19225:127;19286:10;19281:3;19277:20;19274:1;19267:31;19317:4;19314:1;19307:15;19341:4;19338:1;19331:15;19357:125;19422:9;;;19443:10;;;19440:36;;;19456:18;;:::i;20514:245::-;20581:6;20634:2;20622:9;20613:7;20609:23;20605:32;20602:52;;;20650:1;20647;20640:12;20602:52;20682:9;20676:16;20701:28;20723:5;20701:28;:::i;20764:414::-;20966:2;20948:21;;;21005:2;20985:18;;;20978:30;21044:34;21039:2;21024:18;;21017:62;-1:-1:-1;;;21110:2:14;21095:18;;21088:48;21168:3;21153:19;;20764:414::o;21537:489::-;-1:-1:-1;;;;;21806:15:14;;;21788:34;;21858:15;;21853:2;21838:18;;21831:43;21905:2;21890:18;;21883:34;;;21953:3;21948:2;21933:18;;21926:31;;;21731:4;;21974:46;;22000:19;;21992:6;21974:46;:::i;:::-;21966:54;21537:489;-1:-1:-1;;;;;;21537:489:14:o;22031:249::-;22100:6;22153:2;22141:9;22132:7;22128:23;22124:32;22121:52;;;22169:1;22166;22159:12;22121:52;22201:9;22195:16;22220:30;22244:5;22220:30;:::i
Swarm Source
ipfs://89a61f4bd6ca0e55a4e06a29d1d2cb552095e3070d035d2270423058b126914d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.