Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Minter | 16994307 | 623 days ago | IN | 0 ETH | 0.00109691 |
Latest 10 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH | |||
16994303 | 623 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
PPPMetaCollection
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Copyright (c) 2023 Fellowship pragma solidity ^0.8.7; import './PPPCollection.sol'; struct CollectionInfo { string name; string symbol; string baseURI; address royaltyReceiver; } contract PPPMetaCollection is Ownable { address public minter; PPPCollection[10] public collection; error OnlyMinter(); constructor(uint256 royaltyPercent, CollectionInfo[10] memory collectionsInfo) { // CHECKS for (uint256 i = 0; i < 10; i++) { CollectionInfo memory info = collectionsInfo[i]; require(bytes(info.name).length > 0, "All collections must have a name"); require(bytes(info.symbol).length > 0, "All collections must have a symbol"); require(bytes(info.baseURI).length > 0, "All collections must have a base URI"); } // EFFECTS + INTERACTIONS for (uint256 i = 0; i < 10; i++) { CollectionInfo memory info = collectionsInfo[i]; PPPCollection newCollection = collection[i] = new PPPCollection( info.name, info.symbol, info.baseURI, 100, info.royaltyReceiver, royaltyPercent ); newCollection.setMinter(address(this)); newCollection.transferOwnership(msg.sender); } } // MINTER FUNCTIONS function mint(address to, uint256 tokenId) external { // CHECKS if (msg.sender != minter) revert OnlyMinter(); // INTERACTIONS collection[tokenId / 100].mint(to, tokenId % 100); } // OWNER FUNCTIONS function setMinter(address minter_) external onlyOwner { minter = minter_; } // VIEW FUNCTIONS /// @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 returns (bool) { return interfaceId == 0x7f5828d0 || // ERC-173 Contract Ownership Standard interfaceId == 0x01ffc9a7; // ERC-165 Standard Interface Detection } }
// 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.
// 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); } }
// 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":"uint256","name":"royaltyPercent","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"royaltyReceiver","type":"address"}],"internalType":"struct CollectionInfo[10]","name":"collectionsInfo","type":"tuple[10]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyMinter","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collection","outputs":[{"internalType":"contract PPPCollection","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter_","type":"address"}],"name":"setMinter","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620034523803806200345283398101604081905262000034916200049c565b6200003f3362000320565b60005b600a8110156200019b5760008282600a8110620000635762000063620005f1565b6020020151805151909150620000c05760405162461bcd60e51b815260206004820181905260248201527f416c6c20636f6c6c656374696f6e73206d75737420686176652061206e616d6560448201526064015b60405180910390fd5b600081602001515111620001225760405162461bcd60e51b815260206004820152602260248201527f416c6c20636f6c6c656374696f6e73206d757374206861766520612073796d626044820152611bdb60f21b6064820152608401620000b7565b600081604001515111620001855760405162461bcd60e51b8152602060048201526024808201527f416c6c20636f6c6c656374696f6e73206d7573742068617665206120626173656044820152632055524960e01b6064820152608401620000b7565b5080620001928162000607565b91505062000042565b5060005b600a811015620003175760008282600a8110620001c057620001c0620005f1565b6020020151905060008160000151826020015183604001516064856060015189604051620001ee9062000370565b620001ff969594939291906200065d565b604051809103906000f0801580156200021c573d6000803e3d6000fd5b50600284600a8110620002335762000233620005f1565b0180546001600160a01b0319166001600160a01b038316908117909155604051637e51dad560e11b81523060048201529192509063fca3b5aa90602401600060405180830381600087803b1580156200028b57600080fd5b505af1158015620002a0573d6000803e3d6000fd5b505060405163f2fde38b60e01b81523360048201526001600160a01b038416925063f2fde38b9150602401600060405180830381600087803b158015620002e657600080fd5b505af1158015620002fb573d6000803e3d6000fd5b50505050505080806200030e9062000607565b9150506200019f565b505050620006c4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61287f8062000bd383390190565b634e487b7160e01b600052604160045260246000fd5b60405161014081016001600160401b0381118282101715620003ba57620003ba6200037e565b60405290565b604051608081016001600160401b0381118282101715620003ba57620003ba6200037e565b60005b8381101562000402578181015183820152602001620003e8565b50506000910152565b600082601f8301126200041d57600080fd5b81516001600160401b03808211156200043a576200043a6200037e565b604051601f8301601f19908116603f011681019082821181831017156200046557620004656200037e565b816040528381528660208588010111156200047f57600080fd5b62000492846020830160208901620003e5565b9695505050505050565b6000806040808486031215620004b157600080fd5b8351602080860151919450906001600160401b0380821115620004d357600080fd5b818701915087601f830112620004e857600080fd5b620004f262000394565b8061014084018a8111156200050657600080fd5b845b81811015620005e057805185811115620005225760008081fd5b86016080818e031215620005365760008081fd5b62000540620003c0565b815187811115620005515760008081fd5b6200055f8f8285016200040b565b8252508882015187811115620005755760008081fd5b620005838f8285016200040b565b8a8301525089820151878111156200059b5760008081fd5b620005a98f8285016200040b565b828c015250606091820151916001600160a01b0383168314620005cc5760008081fd5b810191909152845292860192860162000508565b50979a909950975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016200062857634e487b7160e01b600052601160045260246000fd5b5060010190565b6000815180845262000649816020860160208601620003e5565b601f01601f19169290920160200192915050565b60c0815260006200067260c08301896200062f565b82810360208401526200068681896200062f565b905082810360408401526200069c81886200062f565b606084019690965250506001600160a01b0392909216608083015260a0909101529392505050565b6104ff80620006d46000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100fd578063f07723771461010e578063f2fde38b14610121578063fca3b5aa1461013457600080fd5b806301ffc9a71461008d57806307546172146100b557806340c10f19146100e0578063715018a6146100f5575b600080fd5b6100a061009b3660046103ca565b610147565b60405190151581526020015b60405180910390f35b6001546100c8906001600160a01b031681565b6040516001600160a01b0390911681526020016100ac565b6100f36100ee366004610417565b61017e565b005b6100f3610244565b6000546001600160a01b03166100c8565b6100c861011c366004610441565b610258565b6100f361012f36600461045a565b610278565b6100f361014236600461045a565b6102f6565b60006307f5828d60e41b6001600160e01b03198316148061017857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001546001600160a01b031633146101a957604051639cdc2ed560e01b815260040160405180910390fd5b60026101b660648361048b565b600a81106101c6576101c661049f565b01546001600160a01b03166340c10f19836101e26064856104b5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561022857600080fd5b505af115801561023c573d6000803e3d6000fd5b505050505050565b61024c610320565b610256600061037a565b565b600281600a811061026857600080fd5b01546001600160a01b0316905081565b610280610320565b6001600160a01b0381166102ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102f38161037a565b50565b6102fe610320565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103dc57600080fd5b81356001600160e01b0319811681146103f457600080fd5b9392505050565b80356001600160a01b038116811461041257600080fd5b919050565b6000806040838503121561042a57600080fd5b610433836103fb565b946020939093013593505050565b60006020828403121561045357600080fd5b5035919050565b60006020828403121561046c57600080fd5b6103f4826103fb565b634e487b7160e01b600052601260045260246000fd5b60008261049a5761049a610475565b500490565b634e487b7160e01b600052603260045260246000fd5b6000826104c4576104c4610475565b50069056fea2646970667358221220ed2b0171b0ae9b6b11dd18d43941342d2daccfb1563810b3de687be9713928e264736f6c6343000812003360a06040526064600b553480156200001657600080fd5b506040516200287f3803806200287f83398101604081905262000039916200038f565b85856000620000498382620004e5565b506001620000588282620004e5565b505050620000756200006f6200027460201b60201c565b62000278565b60008311620000cb5760405162461bcd60e51b815260206004820152601b60248201527f4d617820737570706c79206d757374206e6f74206265207a65726f000000000060448201526064015b60405180910390fd5b6001600160a01b038216620001395760405162461bcd60e51b815260206004820152602d60248201527f526f79616c7479207265636569766572206d757374206e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401620000c2565b6064811115620001a35760405162461bcd60e51b815260206004820152602e60248201527f526f79616c7479206672616374696f6e206d757374206e6f742062652067726560448201526d61746572207468616e203130302560901b6064820152608401620000c2565b6080839052600d620001b68582620004e5565b50600780546001600160a01b0319166001600160a01b038416179055600a8190556daaeb6d7670e522a718067333cd4e3b156200026857604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe90604401600060405180830381600087803b1580156200024e57600080fd5b505af115801562000263573d6000803e3d6000fd5b505050505b505050505050620005b1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002f257600080fd5b81516001600160401b03808211156200030f576200030f620002ca565b604051601f8301601f19908116603f011681019082821181831017156200033a576200033a620002ca565b816040528381526020925086838588010111156200035757600080fd5b600091505b838210156200037b57858201830151818301840152908201906200035c565b600093810190920192909252949350505050565b60008060008060008060c08789031215620003a957600080fd5b86516001600160401b0380821115620003c157600080fd5b620003cf8a838b01620002e0565b97506020890151915080821115620003e657600080fd5b620003f48a838b01620002e0565b965060408901519150808211156200040b57600080fd5b506200041a89828a01620002e0565b606089015160808a0151919650945090506001600160a01b03811681146200044157600080fd5b8092505060a087015190509295509295509295565b600181811c908216806200046b57607f821691505b6020821081036200048c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004e057600081815260208120601f850160051c81016020861015620004bb5750805b601f850160051c820191505b81811015620004dc57828155600101620004c7565b5050505b505050565b81516001600160401b03811115620005015762000501620002ca565b620005198162000512845462000456565b8462000492565b602080601f831160018114620005515760008415620005385750858301515b600019600386901b1c1916600185901b178555620004dc565b600085815260208120601f198616915b82811015620005825788860151825594840194600190910190840162000561565b5085821015620005a15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516122a4620005db60003960008181610810015281816108dc0152610c4801526122a46000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806370a082311161010f578063b88d4fde116100a2578063ecededad11610071578063ecededad14610412578063f2fde38b14610425578063fca3b5aa14610438578063fd8d7ed31461044b57600080fd5b8063b88d4fde146103d0578063c87b56dd146103e3578063e7dee99f146103f6578063e985e9c5146103ff57600080fd5b8063931688cb116100de578063931688cb1461038f57806395d89b41146103a25780639fbc8713146103aa578063a22cb465146103bd57600080fd5b806370a0823114610350578063715018a6146103635780638da5cb5b1461036b5780638dc251e31461037c57600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e1461030f5780634f558e79146103225780636352211e146103355780636c0360eb1461034857600080fd5b806323b872dd146102a45780632a55205a146102b757806335209821146102e957806340c10f19146102fc57600080fd5b8063081812fc116101c3578063081812fc14610252578063095ea7b314610265578063113b98e01461027a57806318160ddd1461028d57600080fd5b806301ffc9a7146101ea57806306fdde03146102125780630754617214610227575b600080fd5b6101fd6101f8366004611a4a565b610454565b60405190151581526020015b60405180910390f35b61021a6104f7565b6040516102099190611ab7565b60085461023a906001600160a01b031681565b6040516001600160a01b039091168152602001610209565b61023a610260366004611aca565b610589565b610278610273366004611aff565b6105b0565b005b610278610288366004611b29565b6106ca565b610296600c5481565b604051908152602001610209565b6102786102b2366004611b44565b61084f565b6102ca6102c5366004611b80565b610880565b604080516001600160a01b039093168352602083019190915201610209565b60095461023a906001600160a01b031681565b61027861030a366004611aff565b6108af565b61027861031d366004611b44565b610953565b6101fd610330366004611aca565b61096e565b61023a610343366004611aca565b61098d565b61021a6109ed565b61029661035e366004611b29565b610a7b565b610278610b01565b6006546001600160a01b031661023a565b61027861038a366004611b29565b610b15565b61027861039d366004611ba2565b610bab565b61021a610c88565b60075461023a906001600160a01b031681565b6102786103cb366004611c22565b610c97565b6102786103de366004611cc8565b610ce1565b61021a6103f1366004611aca565b610d19565b610296600a5481565b6101fd61040d366004611d73565b610e37565b610278610420366004611b80565b610e65565b610278610433366004611b29565b610f3b565b610278610446366004611b29565b610fb4565b610296600b5481565b60006380ac58cd60e01b6001600160e01b0319831614806104855750635b5e139f60e01b6001600160e01b03198316145b806104a0575063152a902d60e11b6001600160e01b03198316145b806104bb5750632483248360e11b6001600160e01b03198316145b806104d657506307f5828d60e41b6001600160e01b03198316145b806104f157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461050690611d9d565b80601f016020809104026020016040519081016040528092919081815260200182805461053290611d9d565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b5050505050905090565b600061059482610fde565b506000908152600460205260409020546001600160a01b031690565b60006105bb8261098d565b9050806001600160a01b0316836001600160a01b03160361062d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061064957506106498133610e37565b6106bb5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610624565b6106c5838361103d565b505050565b6106d26110ab565b6001600160a01b0381166107435760405162461bcd60e51b815260206004820152603260248201527f4e6577206d657461646174612064656c6567617465206d757374206e6f7420626044820152716520746865207a65726f206164647265737360701b6064820152608401610624565b6000816001600160a01b03163b116107ae5760405162461bcd60e51b815260206004820152602860248201527f4e6577206d657461646174612064656c6567617465206d75737420626520612060448201526718dbdb9d1c9858dd60c21b6064820152608401610624565b604080516020810190915260008152600d906107ca9082611e25565b50600980546001600160a01b0319166001600160a01b0383161790557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c600061083460017f0000000000000000000000000000000000000000000000000000000000000000611efb565b6040805192835260208301919091520160405180910390a150565b6108593382611105565b6108755760405162461bcd60e51b815260040161062490611f0e565b6106c5838383611164565b600754600a54600b546001600160a01b03909216916000916108a69185919060016112d5565b90509250929050565b6008546001600160a01b031633146108da57604051639cdc2ed560e01b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811061093c5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b88125160821b6044820152606401610624565b6109468282611332565b5050600c80546001019055565b6106c583838360405180602001604052806000815250610ce1565b6000818152600260205260408120546001600160a01b031615156104f1565b6000818152600260205260408120546001600160a01b0316806104f15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600d80546109fa90611d9d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2690611d9d565b8015610a735780601f10610a4857610100808354040283529160200191610a73565b820191906000526020600020905b815481529060010190602001808311610a5657829003601f168201915b505050505081565b60006001600160a01b038216610ae55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610624565b506001600160a01b031660009081526003602052604090205490565b610b096110ab565b610b1360006114cb565b565b610b1d6110ab565b6001600160a01b038116610b895760405162461bcd60e51b815260206004820152602d60248201527f526f79616c7479207265636569766572206d757374206e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401610624565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610bb36110ab565b80610c005760405162461bcd60e51b815260206004820152601d60248201527f4e6577206261736520555249206d7573742062652070726f76696465640000006044820152606401610624565b600d610c0d828483611f5b565b50600980546001600160a01b03191690557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6000610c6c60017f0000000000000000000000000000000000000000000000000000000000000000611efb565b6040805192835260208301919091520160405180910390a15050565b60606001805461050690611d9d565b808015610caa5750610ca88261151d565b155b15610cd357604051633b79c77360e21b81526001600160a01b0383166004820152602401610624565b610cdd82826115b2565b5050565b610ceb3383611105565b610d075760405162461bcd60e51b815260040161062490611f0e565b610d13848484846115bd565b50505050565b6060610d2482610fde565b6000600d8054610d3390611d9d565b90501115610d6d57600d610d46836115f0565b604051602001610d5792919061201c565b6040516020818303038152906040529050919050565b6009546001600160a01b031615610def5760095460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015610dc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104f191908101906120b3565b60405162461bcd60e51b815260206004820152601760248201527f746f6b656e555249206e6f7420636f6e666967757265640000000000000000006044820152606401610624565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610e6d6110ab565b80600003610ec95760405162461bcd60e51b8152602060048201526024808201527f526f79616c74792064656e6f6d696e61746f72206d757374206e6f74206265206044820152637a65726f60e01b6064820152608401610624565b80821115610f305760405162461bcd60e51b815260206004820152602e60248201527f526f79616c7479206672616374696f6e206d757374206e6f742062652067726560448201526d61746572207468616e203130302560901b6064820152608401610624565b600a91909155600b55565b610f436110ab565b6001600160a01b038116610fa85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610624565b610fb1816114cb565b50565b610fbc6110ab565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546001600160a01b0316610fb15760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610624565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110728261098d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b03163314610b135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610624565b6000806111118361098d565b9050806001600160a01b0316846001600160a01b0316148061113857506111388185610e37565b8061115c5750836001600160a01b031661115184610589565b6001600160a01b0316145b949350505050565b826001600160a01b03166111778261098d565b6001600160a01b03161461119d5760405162461bcd60e51b815260040161062490612121565b6001600160a01b0382166111ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610624565b61120c8383836001611683565b826001600160a01b031661121f8261098d565b6001600160a01b0316146112455760405162461bcd60e51b815260040161062490612121565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806112e38686866116db565b905060018360028111156112f9576112f9612166565b1480156113165750600084806113115761131161217c565b868809115b1561132957611326600182612192565b90505b95945050505050565b6001600160a01b0382166113885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610624565b6000818152600260205260409020546001600160a01b0316156113ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6113fb600083836001611683565b6000818152600260205260409020546001600160a01b0316156114605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610624565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006daaeb6d7670e522a718067333cd4e3b15806104f15750604051633185c44d60e21b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561158e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f191906121a5565b610cdd338383611790565b6115c8848484611164565b6115d48484848461185e565b610d135760405162461bcd60e51b8152600401610624906121c2565b606060006115fd8361195c565b600101905060008167ffffffffffffffff81111561161d5761161d611c59565b6040519080825280601f01601f191660200182016040528015611647576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461165157509392505050565b6001600160a01b038416158015906116a457506001600160a01b0384163314155b80156116b657506116b43361151d565b155b156116d657604051633b79c77360e21b8152336004820152602401610624565b610d13565b60008080600019858709858702925082811083820303915050806000036117155783828161170b5761170b61217c565b0492505050611789565b80841161172157600080fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b816001600160a01b0316836001600160a01b0316036117f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610624565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b1561195457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118a2903390899088908890600401612214565b6020604051808303816000875af19250505080156118dd575060408051601f3d908101601f191682019092526118da91810190612251565b60015b61193a573d80801561190b576040519150601f19603f3d011682016040523d82523d6000602084013e611910565b606091505b5080516000036119325760405162461bcd60e51b8152600401610624906121c2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061115c565b50600161115c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061199b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106119c7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106119e557662386f26fc10000830492506010015b6305f5e10083106119fd576305f5e100830492506008015b6127108310611a1157612710830492506004015b60648310611a23576064830492506002015b600a83106104f15760010192915050565b6001600160e01b031981168114610fb157600080fd5b600060208284031215611a5c57600080fd5b813561178981611a34565b60005b83811015611a82578181015183820152602001611a6a565b50506000910152565b60008151808452611aa3816020860160208601611a67565b601f01601f19169290920160200192915050565b6020815260006117896020830184611a8b565b600060208284031215611adc57600080fd5b5035919050565b80356001600160a01b0381168114611afa57600080fd5b919050565b60008060408385031215611b1257600080fd5b611b1b83611ae3565b946020939093013593505050565b600060208284031215611b3b57600080fd5b61178982611ae3565b600080600060608486031215611b5957600080fd5b611b6284611ae3565b9250611b7060208501611ae3565b9150604084013590509250925092565b60008060408385031215611b9357600080fd5b50508035926020909101359150565b60008060208385031215611bb557600080fd5b823567ffffffffffffffff80821115611bcd57600080fd5b818501915085601f830112611be157600080fd5b813581811115611bf057600080fd5b866020828501011115611c0257600080fd5b60209290920196919550909350505050565b8015158114610fb157600080fd5b60008060408385031215611c3557600080fd5b611c3e83611ae3565b91506020830135611c4e81611c14565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c9857611c98611c59565b604052919050565b600067ffffffffffffffff821115611cba57611cba611c59565b50601f01601f191660200190565b60008060008060808587031215611cde57600080fd5b611ce785611ae3565b9350611cf560208601611ae3565b925060408501359150606085013567ffffffffffffffff811115611d1857600080fd5b8501601f81018713611d2957600080fd5b8035611d3c611d3782611ca0565b611c6f565b818152886020838501011115611d5157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215611d8657600080fd5b611d8f83611ae3565b91506108a660208401611ae3565b600181811c90821680611db157607f821691505b602082108103611dd157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106c557600081815260208120601f850160051c81016020861015611dfe5750805b601f850160051c820191505b81811015611e1d57828155600101611e0a565b505050505050565b815167ffffffffffffffff811115611e3f57611e3f611c59565b611e5381611e4d8454611d9d565b84611dd7565b602080601f831160018114611e885760008415611e705750858301515b600019600386901b1c1916600185901b178555611e1d565b600085815260208120601f198616915b82811015611eb757888601518255948401946001909101908401611e98565b5085821015611ed55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156104f1576104f1611ee5565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b67ffffffffffffffff831115611f7357611f73611c59565b611f8783611f818354611d9d565b83611dd7565b6000601f841160018114611fbb5760008515611fa35750838201355b600019600387901b1c1916600186901b178355612015565b600083815260209020601f19861690835b82811015611fec5786850135825560209485019460019092019101611fcc565b50868210156120095760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600080845461202a81611d9d565b60018281168015612042576001811461205757612086565b60ff1984168752821515830287019450612086565b8860005260208060002060005b8581101561207d5781548a820152908401908201612064565b50505082870194505b50505050835161209a818360208801611a67565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156120c557600080fd5b815167ffffffffffffffff8111156120dc57600080fd5b8201601f810184136120ed57600080fd5b80516120fb611d3782611ca0565b81815285602083850101111561211057600080fd5b611329826020830160208601611a67565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b808201808211156104f1576104f1611ee5565b6000602082840312156121b757600080fd5b815161178981611c14565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061224790830184611a8b565b9695505050505050565b60006020828403121561226357600080fd5b815161178981611a3456fea264697066735822122089a61f4bd6ca0e55a4e06a29d1d2cb552095e3070d035d2270423058b126914d64736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000072000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000b600000000000000000000000000000000000000000000000000000000000000ce00000000000000000000000000000000000000000000000000000000000000e60000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000db940fc3813b00b9ab666fe4f239f53e3aed24370000000000000000000000000000000000000000000000000000000000000013547275746865722062792041492e532e412e4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095050502d414953414d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d62396e555a4e5244324b4a6a483870486f354247675a4471565a4548747776584e734e6f776261526e4b61332f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c2268d7d45ec10e6b5e8d1ebc35c6805733aad1b000000000000000000000000000000000000000000000000000000000000002e476c696d70736573206f662074686520457468657265616c20627920416e6472c3a973204865726ec3a16e64657a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d414800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d574752437731613351695235334b45544c7751506d3551446e58437659654d5356567131693735516e5746692f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000fac94382696afa9d4dc0b805914b818a7773a25f000000000000000000000000000000000000000000000000000000000000002354686520477265617420467265657a6520627920416e747469204b61727070696e656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d414b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d536d44454b45717a7653594b557871427532625437714d794a5452337250444c477664724b74506d4c3872462f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000008c1fea39a04e761008f26e6237034e887d228f08000000000000000000000000000000000000000000000000000000000000002146756e686f757365204d6972726f7220627920436861726c696520456e676d616e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d434500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d556a774a586f6832746e414c774b716355416b7972537974666e654562434a394141346b395878633464476e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000cf6c502489faf41a0ef8bd85d20528314b1ffb0e000000000000000000000000000000000000000000000000000000000000002e446973736f6369617469766520447265616d733a2049742773204d79205061727479206279204a657373204d616300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d4a4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6167336a523951484d627754363245486a776547434336425934747376514b375243787648696f78657447372f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000003fc7c62048d76b4aef681a259c5a9ad029292222000000000000000000000000000000000000000000000000000000000000001a54656d706f72617279206279204a756c6965205769656c616e6400000000000000000000000000000000000000000000000000000000000000000000000000065050502d4a5700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d50613272556677443943385178726d4264735255655870487469717245645731716979756255464c4d5a63522f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000220ad9f43c2e07148f69f380237322ae16dfbf8d00000000000000000000000000000000000000000000000000000000000000194d696e647363617065206279204b61746965204d6f727269730000000000000000000000000000000000000000000000000000000000000000000000000000065050502d4b4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e64647154634464634272794e32324579414878564b6a664e4b774443347546376d4a376a5a42565241337a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c0843646f136a16671a02abc41f718c3561fa85f000000000000000000000000000000000000000000000000000000000000003850696e6b2e20556e6964656e7469666965642e20537563682061205573656c65737320436f6c6f72212062792053696d6f6e205261696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d535200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54626d544367785263354237684154387a7154594a4c6875665553374c6667374e517a356256776a6f67465a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000e1badc0099a0506764aa1bc8c6e40e97baa11fb40000000000000000000000000000000000000000000000000000000000000027436f6d7075746572732043616e2774204a756d702062792042656e204d696c6c617220436f6c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075050502d424d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54634c543761624c4147566a4e6e7547504c6f794456696d5467595866664d3255444d705737673668684c782f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000be0368054ead752f2cf89a7524a7306e7a1a2d620000000000000000000000000000000000000000000000000000000000000011506965727265205a616e64726f7769637a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d505a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61365574727871345347576950456e5445653477615332656d36714c5336376d52547a5965427159516279412f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100fd578063f07723771461010e578063f2fde38b14610121578063fca3b5aa1461013457600080fd5b806301ffc9a71461008d57806307546172146100b557806340c10f19146100e0578063715018a6146100f5575b600080fd5b6100a061009b3660046103ca565b610147565b60405190151581526020015b60405180910390f35b6001546100c8906001600160a01b031681565b6040516001600160a01b0390911681526020016100ac565b6100f36100ee366004610417565b61017e565b005b6100f3610244565b6000546001600160a01b03166100c8565b6100c861011c366004610441565b610258565b6100f361012f36600461045a565b610278565b6100f361014236600461045a565b6102f6565b60006307f5828d60e41b6001600160e01b03198316148061017857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001546001600160a01b031633146101a957604051639cdc2ed560e01b815260040160405180910390fd5b60026101b660648361048b565b600a81106101c6576101c661049f565b01546001600160a01b03166340c10f19836101e26064856104b5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561022857600080fd5b505af115801561023c573d6000803e3d6000fd5b505050505050565b61024c610320565b610256600061037a565b565b600281600a811061026857600080fd5b01546001600160a01b0316905081565b610280610320565b6001600160a01b0381166102ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6102f38161037a565b50565b6102fe610320565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103dc57600080fd5b81356001600160e01b0319811681146103f457600080fd5b9392505050565b80356001600160a01b038116811461041257600080fd5b919050565b6000806040838503121561042a57600080fd5b610433836103fb565b946020939093013593505050565b60006020828403121561045357600080fd5b5035919050565b60006020828403121561046c57600080fd5b6103f4826103fb565b634e487b7160e01b600052601260045260246000fd5b60008261049a5761049a610475565b500490565b634e487b7160e01b600052603260045260246000fd5b6000826104c4576104c4610475565b50069056fea2646970667358221220ed2b0171b0ae9b6b11dd18d43941342d2daccfb1563810b3de687be9713928e264736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000072000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000b600000000000000000000000000000000000000000000000000000000000000ce00000000000000000000000000000000000000000000000000000000000000e60000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000db940fc3813b00b9ab666fe4f239f53e3aed24370000000000000000000000000000000000000000000000000000000000000013547275746865722062792041492e532e412e4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095050502d414953414d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d62396e555a4e5244324b4a6a483870486f354247675a4471565a4548747776584e734e6f776261526e4b61332f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c2268d7d45ec10e6b5e8d1ebc35c6805733aad1b000000000000000000000000000000000000000000000000000000000000002e476c696d70736573206f662074686520457468657265616c20627920416e6472c3a973204865726ec3a16e64657a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d414800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d574752437731613351695235334b45544c7751506d3551446e58437659654d5356567131693735516e5746692f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000fac94382696afa9d4dc0b805914b818a7773a25f000000000000000000000000000000000000000000000000000000000000002354686520477265617420467265657a6520627920416e747469204b61727070696e656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d414b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d536d44454b45717a7653594b557871427532625437714d794a5452337250444c477664724b74506d4c3872462f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000008c1fea39a04e761008f26e6237034e887d228f08000000000000000000000000000000000000000000000000000000000000002146756e686f757365204d6972726f7220627920436861726c696520456e676d616e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d434500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d556a774a586f6832746e414c774b716355416b7972537974666e654562434a394141346b395878633464476e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000cf6c502489faf41a0ef8bd85d20528314b1ffb0e000000000000000000000000000000000000000000000000000000000000002e446973736f6369617469766520447265616d733a2049742773204d79205061727479206279204a657373204d616300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d4a4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6167336a523951484d627754363245486a776547434336425934747376514b375243787648696f78657447372f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000003fc7c62048d76b4aef681a259c5a9ad029292222000000000000000000000000000000000000000000000000000000000000001a54656d706f72617279206279204a756c6965205769656c616e6400000000000000000000000000000000000000000000000000000000000000000000000000065050502d4a5700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d50613272556677443943385178726d4264735255655870487469717245645731716979756255464c4d5a63522f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000220ad9f43c2e07148f69f380237322ae16dfbf8d00000000000000000000000000000000000000000000000000000000000000194d696e647363617065206279204b61746965204d6f727269730000000000000000000000000000000000000000000000000000000000000000000000000000065050502d4b4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e64647154634464634272794e32324579414878564b6a664e4b774443347546376d4a376a5a42565241337a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c0843646f136a16671a02abc41f718c3561fa85f000000000000000000000000000000000000000000000000000000000000003850696e6b2e20556e6964656e7469666965642e20537563682061205573656c65737320436f6c6f72212062792053696d6f6e205261696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d535200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54626d544367785263354237684154387a7154594a4c6875665553374c6667374e517a356256776a6f67465a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000e1badc0099a0506764aa1bc8c6e40e97baa11fb40000000000000000000000000000000000000000000000000000000000000027436f6d7075746572732043616e2774204a756d702062792042656e204d696c6c617220436f6c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075050502d424d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54634c543761624c4147566a4e6e7547504c6f794456696d5467595866664d3255444d705737673668684c782f00000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000be0368054ead752f2cf89a7524a7306e7a1a2d620000000000000000000000000000000000000000000000000000000000000011506965727265205a616e64726f7769637a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065050502d505a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61365574727871345347576950456e5445653477615332656d36714c5336376d52547a5965427159516279412f00000000000000000000
-----Decoded View---------------
Arg [0] : royaltyPercent (uint256): 5
Arg [1] : collectionsInfo (tuple[10]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
128 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000420
Arg [5] : 00000000000000000000000000000000000000000000000000000000000005a0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000720
Arg [7] : 00000000000000000000000000000000000000000000000000000000000008a0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000a00
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000b60
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000ce0
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000e60
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [13] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [15] : 000000000000000000000000db940fc3813b00b9ab666fe4f239f53e3aed2437
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [17] : 547275746865722062792041492e532e412e4d00000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [19] : 5050502d414953414d0000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [21] : 697066733a2f2f516d62396e555a4e5244324b4a6a483870486f354247675a44
Arg [22] : 71565a4548747776584e734e6f776261526e4b61332f00000000000000000000
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [24] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [26] : 000000000000000000000000c2268d7d45ec10e6b5e8d1ebc35c6805733aad1b
Arg [27] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [28] : 476c696d70736573206f662074686520457468657265616c20627920416e6472
Arg [29] : c3a973204865726ec3a16e64657a000000000000000000000000000000000000
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [31] : 5050502d41480000000000000000000000000000000000000000000000000000
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [33] : 697066733a2f2f516d574752437731613351695235334b45544c7751506d3551
Arg [34] : 446e58437659654d5356567131693735516e5746692f00000000000000000000
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [36] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [37] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [38] : 000000000000000000000000fac94382696afa9d4dc0b805914b818a7773a25f
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [40] : 54686520477265617420467265657a6520627920416e747469204b6172707069
Arg [41] : 6e656e0000000000000000000000000000000000000000000000000000000000
Arg [42] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [43] : 5050502d414b0000000000000000000000000000000000000000000000000000
Arg [44] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [45] : 697066733a2f2f516d536d44454b45717a7653594b557871427532625437714d
Arg [46] : 794a5452337250444c477664724b74506d4c3872462f00000000000000000000
Arg [47] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [48] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [50] : 0000000000000000000000008c1fea39a04e761008f26e6237034e887d228f08
Arg [51] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [52] : 46756e686f757365204d6972726f7220627920436861726c696520456e676d61
Arg [53] : 6e00000000000000000000000000000000000000000000000000000000000000
Arg [54] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [55] : 5050502d43450000000000000000000000000000000000000000000000000000
Arg [56] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [57] : 697066733a2f2f516d556a774a586f6832746e414c774b716355416b79725379
Arg [58] : 74666e654562434a394141346b395878633464476e2f00000000000000000000
Arg [59] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [60] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [61] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [62] : 000000000000000000000000cf6c502489faf41a0ef8bd85d20528314b1ffb0e
Arg [63] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [64] : 446973736f6369617469766520447265616d733a2049742773204d7920506172
Arg [65] : 7479206279204a657373204d6163000000000000000000000000000000000000
Arg [66] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [67] : 5050502d4a4d0000000000000000000000000000000000000000000000000000
Arg [68] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [69] : 697066733a2f2f516d6167336a523951484d627754363245486a776547434336
Arg [70] : 425934747376514b375243787648696f78657447372f00000000000000000000
Arg [71] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [72] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [73] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [74] : 0000000000000000000000003fc7c62048d76b4aef681a259c5a9ad029292222
Arg [75] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [76] : 54656d706f72617279206279204a756c6965205769656c616e64000000000000
Arg [77] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [78] : 5050502d4a570000000000000000000000000000000000000000000000000000
Arg [79] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [80] : 697066733a2f2f516d50613272556677443943385178726d4264735255655870
Arg [81] : 487469717245645731716979756255464c4d5a63522f00000000000000000000
Arg [82] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [83] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [84] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [85] : 000000000000000000000000220ad9f43c2e07148f69f380237322ae16dfbf8d
Arg [86] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [87] : 4d696e647363617065206279204b61746965204d6f7272697300000000000000
Arg [88] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [89] : 5050502d4b4d0000000000000000000000000000000000000000000000000000
Arg [90] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [91] : 697066733a2f2f516d4e64647154634464634272794e32324579414878564b6a
Arg [92] : 664e4b774443347546376d4a376a5a42565241337a2f00000000000000000000
Arg [93] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [94] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [95] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [96] : 000000000000000000000000c0843646f136a16671a02abc41f718c3561fa85f
Arg [97] : 0000000000000000000000000000000000000000000000000000000000000038
Arg [98] : 50696e6b2e20556e6964656e7469666965642e20537563682061205573656c65
Arg [99] : 737320436f6c6f72212062792053696d6f6e205261696f6e0000000000000000
Arg [100] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [101] : 5050502d53520000000000000000000000000000000000000000000000000000
Arg [102] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [103] : 697066733a2f2f516d54626d544367785263354237684154387a7154594a4c68
Arg [104] : 75665553374c6667374e517a356256776a6f67465a2f00000000000000000000
Arg [105] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [106] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [107] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [108] : 000000000000000000000000e1badc0099a0506764aa1bc8c6e40e97baa11fb4
Arg [109] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [110] : 436f6d7075746572732043616e2774204a756d702062792042656e204d696c6c
Arg [111] : 617220436f6c6500000000000000000000000000000000000000000000000000
Arg [112] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [113] : 5050502d424d4300000000000000000000000000000000000000000000000000
Arg [114] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [115] : 697066733a2f2f516d54634c543761624c4147566a4e6e7547504c6f79445669
Arg [116] : 6d5467595866664d3255444d705737673668684c782f00000000000000000000
Arg [117] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [118] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [119] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [120] : 000000000000000000000000be0368054ead752f2cf89a7524a7306e7a1a2d62
Arg [121] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [122] : 506965727265205a616e64726f7769637a000000000000000000000000000000
Arg [123] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [124] : 5050502d505a0000000000000000000000000000000000000000000000000000
Arg [125] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [126] : 697066733a2f2f516d61365574727871345347576950456e5445653477615332
Arg [127] : 656d36714c5336376d52547a5965427159516279412f00000000000000000000
Deployed Bytecode Sourcemap
234:2163:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2140:255;;;;;;:::i;:::-;;:::i;:::-;;;470:14:15;;463:22;445:41;;433:2;418:18;2140:255:14;;;;;;;;278:21;;;;;-1:-1:-1;;;;;278:21:14;;;;;;-1:-1:-1;;;;;661:32:15;;;643:51;;631:2;616:18;278:21:14;497:203:15;1417:216:14;;;;;;:::i;:::-;;:::i;:::-;;1831:101:0;;;:::i;1201:85::-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;305:35:14;;;;;;:::i;:::-;;:::i;2081:198:0:-;;;;;;:::i;:::-;;:::i;1663:88:14:-;;;;;;:::i;:::-;;:::i;2140:255::-;2208:4;-1:-1:-1;;;;;;;;;2243:25:14;;;;:105;;-1:-1:-1;;;;;;;;;;2323:25:14;;;2243:105;2224:124;2140:255;-1:-1:-1;;2140:255:14:o;1417:216::-;1515:6;;-1:-1:-1;;;;;1515:6:14;1501:10;:20;1497:45;;1530:12;;-1:-1:-1;;;1530:12:14;;;;;;;;;;;1497:45;1577:10;1588:13;1598:3;1588:7;:13;:::i;:::-;1577:25;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;1577:25:14;:30;1608:2;1612:13;1622:3;1612:7;:13;:::i;:::-;1577:49;;-1:-1:-1;;;;;;1577:49:14;;;;;;;-1:-1:-1;;;;;2446:32:15;;;1577:49:14;;;2428:51:15;2495:18;;;2488:34;2401:18;;1577:49:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1417:216;;:::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;305:35:14:-;;;;;;;;;;;;;;-1:-1:-1;;;;;305:35:14;;-1:-1:-1;305:35:14;:::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;;2735:2:15;2161:73:0::1;::::0;::::1;2717:21:15::0;2774:2;2754:18;;;2747:30;2813:34;2793:18;;;2786:62;-1:-1:-1;;;2864:18:15;;;2857:36;2910:19;;2161:73:0::1;;;;;;;;;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;1663:88:14:-;1094:13:0;:11;:13::i;:::-;1728:6:14::1;:16:::0;;-1:-1:-1;;;;;;1728:16:14::1;-1:-1:-1::0;;;;;1728:16:14;;;::::1;::::0;;;::::1;::::0;;1663:88::o;1359:130:0:-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;719:10:6;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;3142:2:15;1414:68:0;;;3124:21:15;;;3161:18;;;3154:30;3220:34;3200:18;;;3193:62;3272:18;;1414:68:0;2940:356:15;2433:187:0;2506:16;2525:6;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;;;;;2541:17:0;;;;;;2573:40;;2525:6;;;;;;;2573:40;;2506:16;2573:40;2496:124;2433:187;:::o;14:286:15:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:15;;209:43;;199:71;;266:1;263;256:12;199:71;289:5;14:286;-1:-1:-1;;;14:286:15:o;705:173::-;773:20;;-1:-1:-1;;;;;822:31:15;;812:42;;802:70;;868:1;865;858:12;802:70;705:173;;;:::o;883:254::-;951:6;959;1012:2;1000:9;991:7;987:23;983:32;980:52;;;1028:1;1025;1018:12;980:52;1051:29;1070:9;1051:29;:::i;:::-;1041:39;1127:2;1112:18;;;;1099:32;;-1:-1:-1;;;883:254:15:o;1142:180::-;1201:6;1254:2;1242:9;1233:7;1229:23;1225:32;1222:52;;;1270:1;1267;1260:12;1222:52;-1:-1:-1;1293:23:15;;1142:180;-1:-1:-1;1142:180:15:o;1557:186::-;1616:6;1669:2;1657:9;1648:7;1644:23;1640:32;1637:52;;;1685:1;1682;1675:12;1637:52;1708:29;1727:9;1708:29;:::i;1748:127::-;1809:10;1804:3;1800:20;1797:1;1790:31;1840:4;1837:1;1830:15;1864:4;1861:1;1854:15;1880:120;1920:1;1946;1936:35;;1951:18;;:::i;:::-;-1:-1:-1;1985:9:15;;1880:120::o;2005:127::-;2066:10;2061:3;2057:20;2054:1;2047:31;2097:4;2094:1;2087:15;2121:4;2118:1;2111:15;2137:112;2169:1;2195;2185:35;;2200:18;;:::i;:::-;-1:-1:-1;2234:9:15;;2137:112::o
Swarm Source
ipfs://89a61f4bd6ca0e55a4e06a29d1d2cb552095e3070d035d2270423058b126914d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.