Polygon Sponsored slots available. Book your slot here!
ERC-721
Overview
Max Total Supply
7,050 MAU5
Holders
148
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2,013 MAU5Loading...
Loading
Loading...
Loading
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x2991bF64...60C3cFc16 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PixelynNft
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 430 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import {SharedStructs} from '../shared-structs/SharedStructs.sol'; import {IPixelynNftDeployer} from 'interfaces/IPixelynNftDeployer.sol'; import {IERC2981} from 'interfaces/IERC2981.sol'; import {IERC4906} from 'interfaces/IERC4906.sol'; import {ContextMixin} from './ContextMixin.sol'; import 'operator-filter-registry/DefaultOperatorFilterer.sol'; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; contract PixelynNft is DefaultOperatorFilterer, ReentrancyGuard, ContextMixin, Ownable, IERC165, IERC721, IERC721Metadata, IERC2981, IERC4906 { using Address for address; using Strings for uint256; uint256 constant MAX_BPS = 10_000; // the address of the PixelynNftDeployer contract address private _pixelynNftDeployer; // Token name string private _name; // Token symbol string private _symbol; // price to mint uint256 private _price; // base URI string private _baseURI; // when the mint starts uint256 private _mintStartTimestamp; // the max supply of tokens uint256 _maxSupply; // beneficiaries SharedStructs.Beneficiary[] private _beneficiaries; // the royality recipient address private _royaltyRecipient; // the percent of the royalty uint256 private _royaltyPercentage; // the token id to royalty recipient mapping if a custom royalty recipient is set mapping(uint256 => address) private _tokenRoyaltyRecipients; // the token id to royalty percentage mapping(uint256 => uint256) private _tokenRoyaltyPercentages; // kill switch bool private _killSwitch; // not minted tokens mapping(uint256 => uint256) private _unusedTokens; // the number of unused tokens left uint256 private _unusedTokensLeft; // the number of minted tokens uint256 private _mintedTokensTotal; // 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; // allowlist mapping(address => uint256) private _allowlist; uint256 private _allowlistStartTimestamp; /** * @dev Constructor function for the PixelynNft contract. * Initializes various contract state variables such as name, symbol, price, maxSupply, beneficiaries, royalties, etc. * @param __pixelynNftDeployer The address of the contract deployer. * @param collectionInitialize A struct containing various collection initialization parameters such as name, symbol, price, maxSupply, beneficiaries, royalties, etc. */ constructor(address __pixelynNftDeployer, SharedStructs.NewCollectionInitialize memory collectionInitialize) { _name = collectionInitialize.name; _symbol = collectionInitialize.symbol; _pixelynNftDeployer = __pixelynNftDeployer; _mintStartTimestamp = collectionInitialize.mintStartTimestamp; _allowlistStartTimestamp = collectionInitialize.allowlistStartTimestamp; _baseURI = collectionInitialize.baseURI; _price = collectionInitialize.price; _maxSupply = collectionInitialize.maxSupply; _unusedTokensLeft = collectionInitialize.maxSupply; _setBeneficiaries(collectionInitialize.beneficiaries); // royalties can be not set if (collectionInitialize.royalties.percentage > 0) { _setGlobalRoyalties(collectionInitialize.royalties.to, collectionInitialize.royalties.percentage); } _transferOwnership(IPixelynNftDeployer(_pixelynNftDeployer).getSuperAdmin()); } /** * @dev Throws if called by a account which does not have permission to perform this action */ modifier isPixelynSuperAdmin() { require(IPixelynNftDeployer(_pixelynNftDeployer).getSuperAdmin() == _msgSender(), 'not a super admin'); _; } /** * @dev Throws if called by a account which does not have permission to perform this action */ modifier isPixelynAdmin() { require(IPixelynNftDeployer(_pixelynNftDeployer).getAdminState(_msgSender()), 'not a admin'); _; } /** * @dev Throws if called by a account which does not have permission to perform this action */ modifier isAirdropper() { require(IPixelynNftDeployer(_pixelynNftDeployer).getAirdropperState(_msgSender()), 'not a airdropper'); _; } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal view override returns (address sender) { return ContextMixin.msgSender(); } /** * @dev Sets the kill switch to stop minting */ function setKillSwitch(bool state) external isPixelynAdmin { _killSwitch = state; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC165).interfaceId || interfaceId == type(IERC4906).interfaceId; } /** * @dev update metadata for a token id and emit an event * this allows marketplaces to reindex it * @param _tokenId The token id to update metadata for */ function metadataUpdate(uint256 _tokenId) external isAirdropper { emit MetadataUpdate(_tokenId); } /** * @dev update metadata for a range of token ids and emit an event * this allows marketplaces to reindex it * @param _fromTokenId The token id to start updating metadata for * @param _toTokenId The token id to stop updating metadata for */ function batchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId) external isAirdropper { emit BatchMetadataUpdate(_fromTokenId, _toTokenId); } function _refreshAllMetadata() private { emit BatchMetadataUpdate(0, maxMintSupply()); } /** * @dev update metadata for all token ids and emit an event * this allows marketplaces to reindex it * we use the full range of max mint supply as it random mints on-chain */ function refreshAllMetadata() external isAirdropper { _refreshAllMetadata(); } /** * @dev See {IERC721:-balanceOf}. */ function balanceOf(address owner) public view returns (uint256) { require(owner != address(0), 'address zero'); 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), 'invalid token ID'); return owner; } /** * @dev See {IERC721:Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Set the name of the collection */ function setName(string memory newName) external isPixelynAdmin { _name = newName; } /** * @dev See {IERC721:Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Set the symbol of the collection */ function setSymbol(string memory newSymbol) external isPixelynAdmin { _symbol = newSymbol; } /** * @dev Get the pixelyn nft deployer contract address */ function pixelynNftDeployer() public view returns (address) { return _pixelynNftDeployer; } /** * @dev Set the pixelyn nft deployer contract address */ function setPixelynNftDeployer(address newPixelynNftDeployer) external isPixelynSuperAdmin { _pixelynNftDeployer = newPixelynNftDeployer; } /** * @dev The mint price for the collection */ function mintPrice() external view returns (uint256) { return _price; } /** * @dev Set the mint price for the collection */ function setMintPrice(uint256 newMintPrice) external isPixelynAdmin { _price = newMintPrice; } /** * @dev Set the mint max supply for the collection * please note you can only update this if the mint has not started and * nothing has been minted in the collection. This is due to the fact that * the token ids are generated based on the max supply and are random. * so it is not safe to do so. */ function setMintMaxSupply(uint256 newMintMaxSupply) external isPixelynAdmin { require( block.timestamp < _mintStartTimestamp && newMintMaxSupply > 0 && totalSupply() == 0 && newMintMaxSupply >= totalSupply(), 'Can not set mint max supply' ); _maxSupply = newMintMaxSupply; _unusedTokensLeft = newMintMaxSupply; } /** * @dev The max supply of the collection */ function maxMintSupply() public view returns (uint256) { return _maxSupply; } /** * @dev The amount of tokens remaining to be minted */ function tokensRemaining() public view returns (uint256) { return _unusedTokensLeft; } /** * @dev The mint start timestamp for the collection */ function mintStartTimestamp() public view returns (uint256) { return _mintStartTimestamp; } /** * @dev Set the mint start timestamp for the collection */ function setMintStartTimestamp(uint256 newMintStartTimestamp) external isPixelynAdmin { _mintStartTimestamp = newMintStartTimestamp; } /** * @dev See {IERC721:Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = this.getBaseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Get the base URI for the collection */ function getBaseURI() external view returns (string memory) { return _baseURI; } /** * @dev Set the base URI for the collection */ function setBaseURI(string memory newBaseURI) external isPixelynAdmin { _baseURI = newBaseURI; _refreshAllMetadata(); } /** * @dev Get the total supply of the collection */ function totalSupply() public view returns (uint256) { return _mintedTokensTotal; } /** * @dev See {IERC721:-approve}. */ function approve(address operator, uint256 tokenId) public virtual override onlyAllowedOperatorApproval(operator) { address owner = PixelynNft.ownerOf(tokenId); require(operator != owner, 'approval to current owner'); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), 'approve caller is not token owner or approved for all' ); _approve(operator, 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 onlyAllowedOperatorApproval(operator) { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721:-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { // if OpenSea's ERC721 Proxy Address is detected, auto-return true if (operator == address(0x58807baD0B376efc12F5AD86aAc70E78ed67deaE)) return true; return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721:-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override onlyAllowedOperator(from) { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), '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 onlyAllowedOperator(from) { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721:-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override onlyAllowedOperator(from) { require(_isApprovedOrOwner(_msgSender(), tokenId), '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 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 {IPixelynNft:Receiver-onPixelynNft:Received}, 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), '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 * and stop existing when they are burned */ 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 = PixelynNft.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev The allowlist start timestamp for the collection */ function allowlistStartTimestamp() public view returns (uint256) { return _allowlistStartTimestamp; } /** * @dev Set the allowlist start timestamp */ function setAllowlistStartTimestamp(uint256 _timestamp) external isPixelynAdmin { require(_timestamp <= _mintStartTimestamp, 'timestamp higher than mint timestamp'); _allowlistStartTimestamp = _timestamp; } /** * @dev Add addresses to the allowlist */ function addToAllowlist(SharedStructs.AllowList[] memory allowList) external isAirdropper { for (uint256 i = 0; i < allowList.length; i++) { SharedStructs.AllowList memory item = allowList[i]; _allowlist[item.account] = item.allowance; } } /** * @dev Remove addresses from the allowlist */ function removeFromAllowlist(address[] memory _addresses) external isAirdropper { for (uint256 i = 0; i < _addresses.length; i++) { _allowlist[_addresses[i]] = 0; } } /** * @dev This internal function returns a random and unused token ID for minting. * It uses keccak256 hash function with some arbitrary parameters to generate a random index. * The generated index is then used to retrieve the corresponding token ID from the list of unused tokens. * @param to The address of the recipient of the minted token. * @param unusedTokensLeft The number of unused tokens left for minting. * @return The random and unused token ID for minting. */ function _getRandomMintingTokenId(address to, uint256 unusedTokensLeft) internal returns (uint256) { return _getUnusedTokenAtIndex( uint256( keccak256( // good enough randomness for this use case! abi.encode( to, tx.gasprice, address(this), unusedTokensLeft, blockhash(block.number - 1), block.timestamp, block.number, block.coinbase ) ) ) % unusedTokensLeft, unusedTokensLeft ); } /** * @dev This internal function retrieves the token ID at the specified index from the list of unused tokens. * If the value at the specified index is zero, the function returns the index itself as the token ID. * The function also updates the list of unused tokens by swapping the value at the specified index with the last unused token. * @param indexToUse The index of the token ID to retrieve from the list of unused tokens. * @param unusedTokensLeft The number of unused tokens left for minting. * @return The token ID at the specified index or the index itself if the value at the specified index is zero. */ function _getUnusedTokenAtIndex(uint256 indexToUse, uint256 unusedTokensLeft) internal returns (uint256) { // Retrieve the value at the index in the _unusedTokens mapping uint256 valAtIndex = _unusedTokens[indexToUse]; // If the value at the index is zero, use the index itself as the token ID, otherwise use the value at the index uint256 result = valAtIndex == 0 ? indexToUse : valAtIndex; // Calculate the index of the last unused token uint256 lastIndex = unusedTokensLeft - 1; // Retrieve the value of the last unused token in the _unusedTokens mapping uint256 lastValInArray = _unusedTokens[lastIndex]; // If the index to use is not the last index, update the value at the index with the last unused token value or the lastIndex itself if the last unused token value is zero if (indexToUse != lastIndex) _unusedTokens[indexToUse] = lastValInArray == 0 ? lastIndex : lastValInArray; // If the last unused token value is not zero, delete the value at the lastIndex in the _unusedTokens mapping if (lastValInArray != 0) delete _unusedTokens[lastIndex]; return result; } /** * @dev reserves `index` and transfers it to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `index` the token index to reserve * * @param to The address to mint the token to. * @param index The token index to reserve. */ function reserve(address to, uint256 index) external isPixelynAdmin { require(to != address(0) && _unusedTokensLeft > 0, 'Invalid address or no tokens left for minting'); uint256 tokenId = _getUnusedTokenAtIndex(index, _unusedTokensLeft); --_unusedTokensLeft; _mint(to, tokenId); _balances[to]++; } /** * @dev Mints `tokenId` and transfers it to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must not exist. */ function _mint(address to, uint256 tokenId) private { ++_mintedTokensTotal; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Split the payment between the beneficiaries */ function _splitPayments() private { SharedStructs.Beneficiary[] memory beneficiaries = _beneficiaries; for (uint256 i = 0; i < beneficiaries.length; i++) { SharedStructs.Beneficiary memory beneficiary = beneficiaries[i]; uint256 amount = (msg.value * beneficiary.percentage) / 10_000; payable(beneficiary.to).transfer(amount); } } /** * @dev Public mint started */ function publicMintStarted() public view returns (bool) { return block.timestamp >= _mintStartTimestamp; } /** * @dev Allowlist mint started */ function allowlistMintStarted() public view returns (bool) { return _allowlistStartTimestamp > 0 && block.timestamp >= _allowlistStartTimestamp; } /** * @dev In allowlist period */ function inAllowlistPeriod() public view returns (bool) { return _allowlistStartTimestamp > 0 && block.timestamp >= _allowlistStartTimestamp && block.timestamp < _mintStartTimestamp; } /** * @dev In mintable period */ function inMintablePeriod() public view returns (bool) { return allowlistMintStarted() || publicMintStarted(); } /** * @dev Used for paper integration */ function checkClaimEligibility(address to, uint256 numToMint) external view returns (string memory) { if ( !inMintablePeriod() || _killSwitch || to == address(0) || numToMint <= 0 || _unusedTokensLeft < numToMint || (inAllowlistPeriod() && _allowlist[to] < numToMint) ) return 'Can not mint'; return ''; } /** * @dev mint random token to `to`. * * Requirements: * * - `to` must exist. * - `numToMint` must be greater than 0. * */ function mintRandom(address to, uint256 numToMint) external payable nonReentrant { require(inMintablePeriod(), 'mint has not started yet'); require(!_killSwitch, 'minting is paused'); require(to != address(0), 'mint to the zero address'); require(numToMint > 0, 'need to mint at least one token'); require(_unusedTokensLeft >= numToMint, 'minting more tokens than supply'); require(msg.value == _price * numToMint, 'Did not send correct amount of funds'); if (inAllowlistPeriod()) { require(_allowlist[to] >= numToMint, 'sender cannot mint more than allowed'); _allowlist[to] -= numToMint; } // Split the payments _splitPayments(); // Mint the tokens _mintRandom(to, numToMint); } /** * @dev Mint `numToMint` random tokens and assign them to `to`. * @param to The address to assign the minted tokens to. * @param numToMint The number of tokens to mint. */ function _mintRandom(address to, uint256 numToMint) private { uint256 unusedTokensLeft = _unusedTokensLeft; for (uint256 i; i < numToMint; ++i) { uint256 tokenId = _getRandomMintingTokenId(to, unusedTokensLeft); _mint(to, tokenId); --unusedTokensLeft; } _unusedTokensLeft = unusedTokensLeft; _balances[to] += numToMint; } /** * @dev airdrops NFTs to addresses. * This still uses mint random to keep it fair. * * Requirements: * * - `recipients` must exist. * */ function airdrop(address[] calldata recipients) external isAirdropper { require( recipients.length > 0 && _unusedTokensLeft >= recipients.length, 'Empty recipient list or minting more tokens than supply' ); for (uint256 i; i < recipients.length; ++i) { _mintRandom(recipients[i], 1); } } /** * @dev mints an NFT to an address - used for marketing assets and giveaways. * This still uses mint random to keep it fair. * * Requirements: * * - `to` must exist. * - `numToMint` must be greater than 0. * */ function mintFor(address to, uint256 numToMint) external isAirdropper { require(numToMint > 0, 'mint at least one token'); require(_unusedTokensLeft >= numToMint, 'minting more tokens than supply'); _mintRandom(to, numToMint); } /** * @dev Set the beneficiaries for the NFT minting payout. * @param beneficiaries An array of `SharedStructs.Beneficiary` structs representing the new beneficiaries. */ function _setBeneficiaries(SharedStructs.Beneficiary[] memory beneficiaries) internal { // Ensure that the number of beneficiaries is valid require(beneficiaries.length > 0 && beneficiaries.length < 4, 'invalid number of beneficiaries'); // Clear the existing beneficiaries while (_beneficiaries.length > 0) _beneficiaries.pop(); // Add the new beneficiaries and validate their percentages uint256 totalPercentage; for (uint256 i; i < beneficiaries.length; i++) { SharedStructs.Beneficiary memory beneficiary = beneficiaries[i]; require(beneficiary.percentage <= MAX_BPS, 'beneficiary percentage is too high'); _beneficiaries.push(beneficiary); totalPercentage += beneficiary.percentage; } // Ensure that the total percentage adds up to 100 require(totalPercentage == MAX_BPS, 'total percentage must be 100'); } /** * @dev Set the beneficiaries for the NFT minting payout. * @param beneficiaries An array of `SharedStructs.Beneficiary` structs representing the new beneficiaries. */ function setBeneficiaries(SharedStructs.Beneficiary[] memory beneficiaries) external isPixelynAdmin { _setBeneficiaries(beneficiaries); } /** * @dev Sets the global royalties for the contract, meaning if no token id is overriden * this will be the default royalty. */ function _setGlobalRoyalties(address newRecipient, uint256 newPercentage) internal { require(newRecipient != address(0), 'royalties recipient is the zero address'); require( newPercentage <= MAX_BPS && newPercentage > 0, 'royalty must be less than or equal to 100% and greater than 0%' ); _royaltyRecipient = newRecipient; _royaltyPercentage = newPercentage; } /** * @dev Sets the global royalties for the contract, meaning if no token id is overriden * this will be the default royalty. */ function setGlobalRoyalties(address newRecipient, uint256 percent) external isPixelynAdmin { _setGlobalRoyalties(newRecipient, percent); } /** * @dev Sets the royalties for a specific token id. */ function setTokenRoyalty(uint256 tokenId, address receiver, uint256 royaltyPercentage) external isPixelynAdmin { require(receiver != address(0), 'royalties new recipient is the zero address'); require(royaltyPercentage <= MAX_BPS, 'token royalty must be higher then 100%'); _tokenRoyaltyRecipients[tokenId] = receiver; _tokenRoyaltyPercentages[tokenId] = royaltyPercentage; } /** * @dev EIP2981 royalties implementation. * For now this will always return to the defined royalty recipient. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), 'ERC2981Royalties: Token does not exist'); uint256 royaltyPercentage = _royaltyPercentage; address royaltyRecipient = _royaltyRecipient; // Check if the token has a royalty override if (_tokenRoyaltyPercentages[tokenId] > 0) { royaltyPercentage = _tokenRoyaltyPercentages[tokenId]; royaltyRecipient = _tokenRoyaltyRecipients[tokenId]; } if (royaltyPercentage > 0) { royaltyAmount = (salePrice * royaltyPercentage) / MAX_BPS; receiver = royaltyRecipient; } else { royaltyAmount = 0; receiver = address(0); } return (receiver, royaltyAmount); } /** * @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(PixelynNft.ownerOf(tokenId) == from, 'transfer from incorrect owner'); require(to != address(0), 'transfer to the zero address'); require(PixelynNft.ownerOf(tokenId) == from, 'transfer from incorrect owner'); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow // `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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(PixelynNft.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, '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), 'invalid token ID'); } /** * @dev Internal function to invoke {IPixelynNft:Receiver-onPixelynNft:Received} 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('transfer to non ERC721Receiver implementer'); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; interface IERC20 { /*/////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*/////////////////////////////////////////////////////////////// VARIABLES //////////////////////////////////////////////////////////////*/ function name() external view returns (string memory _name); function symbol() external view returns (string memory _symbol); function decimals() external view returns (uint8 _decimals); function totalSupply() external view returns (uint256 _totalSupply); function balanceOf(address _account) external view returns (uint256); function allowance(address _owner, address _spender) external view returns (uint256); function nonces(address _account) external view returns (uint256); /*/////////////////////////////////////////////////////////////// LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) external returns (bool); function transfer(address to, uint256 amount) external returns (bool); function transferFrom( address from, address to, uint256 amount ) external returns (bool); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// 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 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) (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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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 (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// 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, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; interface IERC2981 is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _salePrice - the sale price of the NFT asset specified by _tokenId /// @return receiver - address of who should be sent the royalty payment /// @return royaltyAmount - the royalty payment amount for _salePrice function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; interface IERC4906 is IERC165 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; import {IERC20} from 'isolmate/interfaces/tokens/IERC20.sol'; import {SharedStructs} from '../shared-structs/SharedStructs.sol'; /** * @title Pixelyn Nft Deployer Contract * @notice This is the contract that deploys the nft contracts */ interface IPixelynNftDeployer { ///////////////////////////////////////////////////////// EVENTS /** * @notice The airdrop state has changed * @param _airdropper The airdropper address * @param _allowed Whether the deployer is allowed to deploy */ event AirdropperStateChanged(address indexed _airdropper, bool _allowed); /** * @notice The admin state has changed * @param _admin The admin address * @param _status Whether the admin is an admin or not */ event AdminStateChanged(address indexed _admin, bool _status); /** * @notice The admin state has changed * @param _collectionNft The NFT address of the collection * @param _collectionName The name of the collection * @param _deployer Who deployed it */ event NewCollectionDeployed(address indexed _collectionNft, string _collectionName, address indexed _deployer); ///////////////////////////////////////////////////////// ERRORS ////////////////////////////////////////////////////// LOGIC /** * Deploy the nft contract */ function deployNewCollection(SharedStructs.NewCollectionInitialize memory collectionInitialize) external returns (address); /** * Returns all deployed collections */ function allDeployedCollections() external view returns (address[] memory); /** * Set the airdropper state for an address */ function setAirdropperState(address airdropper, bool allowed) external; /** * Get the airdropper state */ function getAirdropperState(address airdropper) external view returns (bool); /** * Get the super admin */ function getSuperAdmin() external view returns (address); /** * Add a new admin */ function addAdmin(address admin) external; /** * Remove an admin */ function removeAdmin(address admin) external; /** * Get the admin state */ function getAdminState(address deployer) external view returns (bool); /** * Get the admin state */ function getRoles(address[] memory addresses) external view returns (SharedStructs.Roles[] memory); }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.4 <0.9.0; /** * @title SharedStructs * * @notice A standard library of shared structs used throughout the codebase. */ library SharedStructs { struct Royality { address to; // * by 1e2 aka 10.05 = 1005 uint256 percentage; } struct Beneficiary { address to; // * by 1e2 aka 10.05 = 1005 uint256 percentage; } struct NewCollectionInitialize { string name; string symbol; string baseURI; uint256 price; uint256 maxSupply; uint256 mintStartTimestamp; uint256 allowlistStartTimestamp; SharedStructs.Beneficiary[] beneficiaries; SharedStructs.Royality royalties; } struct Part { address payable account; uint96 value; } struct Roles { address user; bool isSuperAdmin; bool isAirdropper; bool isAdmin; } struct AllowList { address account; uint256 allowance; } }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "contracts/=solidity/contracts/", "ds-test/=lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "interfaces/=solidity/interfaces/", "isolmate/=lib/isolmate/src/", "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "operator-filter-registry/=lib/operator-filter-registry/src/", "prb-test/=lib/prb-test/src/", "prb/test/=lib/prb-test/src/", "test/=solidity/test/" ], "optimizer": { "enabled": true, "runs": 430 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"__pixelynNftDeployer","type":"address"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"allowlistStartTimestamp","type":"uint256"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Beneficiary[]","name":"beneficiaries","type":"tuple[]"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Royality","name":"royalties","type":"tuple"}],"internalType":"struct SharedStructs.NewCollectionInitialize","name":"collectionInitialize","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"internalType":"struct SharedStructs.AllowList[]","name":"allowList","type":"tuple[]"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"batchMetadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"checkClaimEligibility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inAllowlistPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inMintablePeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"metadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"mintRandom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pixelynNftDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refreshAllMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeFromAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setAllowlistStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"internalType":"struct SharedStructs.Beneficiary[]","name":"beneficiaries","type":"tuple[]"}],"name":"setBeneficiaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"setGlobalRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setKillSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintMaxSupply","type":"uint256"}],"name":"setMintMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintStartTimestamp","type":"uint256"}],"name":"setMintStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPixelynNftDeployer","type":"address"}],"name":"setPixelynNftDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004e4a38038062004e4a8339810160408190526200003491620009cf565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b1562000190578015620000de57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000bf57600080fd5b505af1158015620000d4573d6000803e3d6000fd5b5050505062000190565b6001600160a01b038216156200012f5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000a4565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200017657600080fd5b505af11580156200018b573d6000803e3d6000fd5b505050505b50506001600055620001ab620001a5620002ee565b6200030a565b80518051620001c39160039160209091019062000713565b506020808201518051620001dc92600492019062000713565b50600280546001600160a01b0319166001600160a01b03841617905560a081015160075560c081015160175560408101518051620002239160069160209091019062000713565b5060608101516005556080810151600881905560105560e081015162000249906200035c565b610100810151602001511562000273576101008101518051602090910151620002739190620005a0565b60025460408051634102619360e11b81529051620002e6926001600160a01b031691638204c3269160048083019260209291908290030181865afa158015620002c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a5919062000b0e565b505062000be8565b600062000305620006b560201b620029b61760201c565b905090565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081511180156200036f575060048151105b620003c15760405162461bcd60e51b815260206004820152601f60248201527f696e76616c6964206e756d626572206f662062656e656669636961726965730060448201526064015b60405180910390fd5b600954156200040d576009805480620003de57620003de62000b33565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101559055620003c1565b6000805b82518110156200054857600083828151811062000432576200043262000b49565b60200260200101519050612710816020015111156200049f5760405162461bcd60e51b815260206004820152602260248201527f62656e65666963696172792070657263656e7461676520697320746f6f2068696044820152610ced60f31b6064820152608401620003b8565b6009805460018101825560009190915281517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b09091018190556200052f908462000b75565b92505080806200053f9062000b90565b91505062000411565b5061271081146200059c5760405162461bcd60e51b815260206004820152601c60248201527f746f74616c2070657263656e74616765206d75737420626520313030000000006044820152606401620003b8565b5050565b6001600160a01b038216620006085760405162461bcd60e51b815260206004820152602760248201527f726f79616c7469657320726563697069656e7420697320746865207a65726f206044820152666164647265737360c81b6064820152608401620003b8565b61271081111580156200061b5750600081115b6200068f5760405162461bcd60e51b815260206004820152603e60248201527f726f79616c7479206d757374206265206c657373207468616e206f722065717560448201527f616c20746f203130302520616e642067726561746572207468616e20302500006064820152608401620003b8565b600a80546001600160a01b0319166001600160a01b039390931692909217909155600b55565b60003033036200070d57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620007109050565b50335b90565b828054620007219062000bac565b90600052602060002090601f01602090048101928262000745576000855562000790565b82601f106200076057805160ff191683800117855562000790565b8280016001018555821562000790579182015b828111156200079057825182559160200191906001019062000773565b506200079e929150620007a2565b5090565b5b808211156200079e5760008155600101620007a3565b80516001600160a01b0381168114620007d157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715620008125762000812620007d6565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620008435762000843620007d6565b604052919050565b600082601f8301126200085d57600080fd5b81516001600160401b03811115620008795762000879620007d6565b60206200088f601f8301601f1916820162000818565b8281528582848701011115620008a457600080fd5b60005b83811015620008c4578581018301518282018401528201620008a7565b83811115620008d65760008385840101525b5095945050505050565b600060408284031215620008f357600080fd5b604080519081016001600160401b0381118282101715620009185762000918620007d6565b6040529050806200092983620007b9565b8152602083015160208201525092915050565b600082601f8301126200094e57600080fd5b815160206001600160401b038211156200096c576200096c620007d6565b6200097c818360051b0162000818565b82815260069290921b840181019181810190868411156200099c57600080fd5b8286015b84811015620009c457620009b58882620008e0565b835291830191604001620009a0565b509695505050505050565b60008060408385031215620009e357600080fd5b620009ee83620007b9565b60208401519092506001600160401b038082111562000a0c57600080fd5b90840190610140828703121562000a2257600080fd5b62000a2c620007ec565b82518281111562000a3c57600080fd5b62000a4a888286016200084b565b82525060208301518281111562000a6057600080fd5b62000a6e888286016200084b565b60208301525060408301518281111562000a8757600080fd5b62000a95888286016200084b565b604083015250606083015160608201526080830151608082015260a083015160a082015260c083015160c082015260e08301518281111562000ad657600080fd5b62000ae4888286016200093c565b60e083015250610100915062000afd87838501620008e0565b828201528093505050509250929050565b60006020828403121562000b2157600080fd5b62000b2c82620007b9565b9392505050565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111562000b8b5762000b8b62000b5f565b500190565b60006001820162000ba55762000ba562000b5f565b5060010190565b600181811c9082168062000bc157607f821691505b60208210810362000be257634e487b7160e01b600052602260045260246000fd5b50919050565b6142528062000bf86000396000f3fe60806040526004361061033e5760003560e01c8063775fe52f116101b0578063c47f0027116100ec578063d17bf5cc11610095578063e10967fa1161006f578063e10967fa146108f7578063e985e9c514610917578063f2fde38b14610937578063f4a0a5281461095757600080fd5b8063d17bf5cc146108a4578063d23796ae146108b9578063da1919b3146108d757600080fd5b8063c8b08125116100c6578063c8b081251461084f578063cc47a40b14610864578063cc7192811461088457600080fd5b8063c47f0027146107ef578063c758f6001461080f578063c87b56dd1461082f57600080fd5b80639713c80711610159578063b84c824611610133578063b84c824614610785578063b88d4fde146107a5578063bed20a87146107c5578063c285e107146107da57600080fd5b80639713c80714610730578063a0e389de14610750578063a22cb4651461076557600080fd5b80639213bda71161018a5780639213bda7146106db57806393a67125146106fb57806395d89b411461071b57600080fd5b8063775fe52f146106885780638da5cb5b1461069d5780638f73716b146106bb57600080fd5b806332034d271161027f5780636352211e1161022857806370a082311161020257806370a082311461061e578063714c53981461063e578063715018a614610653578063729ad39e1461066857600080fd5b80636352211e146105c95780636817c76c146105e95780636a1c34fb146105fe57600080fd5b806342842e0e1161025957806342842e0e1461056957806354fee61f1461058957806355f804b3146105a957600080fd5b806332034d271461051457806334bf3d921461052757806341f434341461054757600080fd5b8063081812fc116102ec578063105dedfc116102c6578063105dedfc1461047657806318160ddd1461049657806323b872dd146104b55780632a55205a146104d557600080fd5b8063081812fc146103fe578063095ea7b314610436578063104b6cb71461045657600080fd5b80630548b4ac1161031d5780630548b4ac146103a55780630618a1b8146103ba57806306fdde03146103dc57600080fd5b8062c236a91461034357806301ffc9a71461036d578063035240051461038d575b600080fd5b34801561034f57600080fd5b50610358610977565b60405190151581526020015b60405180910390f35b34801561037957600080fd5b50610358610388366004613a01565b610991565b34801561039957600080fd5b50600754421015610358565b3480156103b157600080fd5b50610358610a11565b3480156103c657600080fd5b506103da6103d5366004613b40565b610a2b565b005b3480156103e857600080fd5b506103f1610b52565b6040516103649190613be1565b34801561040a57600080fd5b5061041e610419366004613bf4565b610be4565b6040516001600160a01b039091168152602001610364565b34801561044257600080fd5b506103da610451366004613c0d565b610c0b565b34801561046257600080fd5b506103da610471366004613c39565b610d33565b34801561048257600080fd5b506103da610491366004613b40565b610e56565b3480156104a257600080fd5b506011545b604051908152602001610364565b3480156104c157600080fd5b506103da6104d0366004613cd3565b610f1d565b3480156104e157600080fd5b506104f56104f0366004613d14565b610fad565b604080516001600160a01b039093168352602083019190915201610364565b6103da610522366004613c0d565b6110a8565b34801561053357600080fd5b506103da610542366004613c0d565b611382565b34801561055357600080fd5b5061041e6daaeb6d7670e522a718067333cd4e81565b34801561057557600080fd5b506103da610584366004613cd3565b611447565b34801561059557600080fd5b506103da6105a4366004613bf4565b61147c565b3480156105b557600080fd5b506103da6105c4366004613d97565b61153c565b3480156105d557600080fd5b5061041e6105e4366004613bf4565b611613565b3480156105f557600080fd5b506005546104a7565b34801561060a57600080fd5b506103da610619366004613bf4565b61166b565b34801561062a57600080fd5b506104a7610639366004613de0565b611761565b34801561064a57600080fd5b506103f16117c4565b34801561065f57600080fd5b506103da6117d3565b34801561067457600080fd5b506103da610683366004613dfd565b6117e7565b34801561069457600080fd5b506017546104a7565b3480156106a957600080fd5b506001546001600160a01b031661041e565b3480156106c757600080fd5b506103da6106d6366004613bf4565b61197b565b3480156106e757600080fd5b506103da6106f6366004613e80565b611a99565b34801561070757600080fd5b506103da610716366004613bf4565b611b67565b34801561072757600080fd5b506103f1611ca3565b34801561073c57600080fd5b506103da61074b366004613e9d565b611cb2565b34801561075c57600080fd5b506007546104a7565b34801561077157600080fd5b506103da610780366004613ec4565b611e71565b34801561079157600080fd5b506103da6107a0366004613d97565b611e8d565b3480156107b157600080fd5b506103da6107c0366004613efd565b611f5b565b3480156107d157600080fd5b506103da611ff3565b3480156107e657600080fd5b506008546104a7565b3480156107fb57600080fd5b506103da61080a366004613d97565b6120bb565b34801561081b57600080fd5b506103da61082a366004613d14565b612189565b34801561083b57600080fd5b506103f161084a366004613bf4565b612286565b34801561085b57600080fd5b506010546104a7565b34801561087057600080fd5b506103da61087f366004613c0d565b61234b565b34801561089057600080fd5b506103f161089f366004613c0d565b6124dd565b3480156108b057600080fd5b50610358612591565b3480156108c557600080fd5b506002546001600160a01b031661041e565b3480156108e357600080fd5b506103da6108f2366004613c0d565b6125b6565b34801561090357600080fd5b506103da610912366004613de0565b612722565b34801561092357600080fd5b50610358610932366004613f7d565b612822565b34801561094357600080fd5b506103da610952366004613de0565b612880565b34801561096357600080fd5b506103da610972366004613bf4565b6128f6565b60008060175411801561098c57506017544210155b905090565b60006001600160e01b0319821663152a902d60e11b14806109c257506001600160e01b031982166380ac58cd60e01b145b806109dd57506001600160e01b03198216635b5e139f60e01b145b806109f857506001600160e01b031982166301ffc9a760e01b145b80610a0b57506001600160e01b03198216155b92915050565b6000610a1b610977565b8061098c57505060075442101590565b6002546001600160a01b0316631177570f610a44612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aac9190613fab565b610af05760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b60448201526064015b60405180910390fd5b60005b8151811015610b4e576000828281518110610b1057610b10613fc8565b6020908102919091018101518082015190516001600160a01b0316600090815260169092526040909120555080610b4681613ff4565b915050610af3565b5050565b606060038054610b619061400d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8d9061400d565b8015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b5050505050905090565b6000610bef82612a1c565b506000908152601460205260409020546001600160a01b031690565b81610c1581612a73565b6000610c2083611613565b9050806001600160a01b0316846001600160a01b031603610c835760405162461bcd60e51b815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610ae7565b806001600160a01b0316610c95612a12565b6001600160a01b03161480610cb15750610cb181610932612a12565b610d235760405162461bcd60e51b815260206004820152603560248201527f617070726f76652063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656420666f7220616c6c00000000000000000000006064820152608401610ae7565b610d2d8484612b2c565b50505050565b6002546001600160a01b0316631177570f610d4c612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610d90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db49190613fab565b610df35760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b60005b8151811015610b4e57600060166000848481518110610e1757610e17613fc8565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610e4e90613ff4565b915050610df6565b6002546001600160a01b03166367499c7e610e6f612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed79190613fab565b610f115760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b610f1a81612b9a565b50565b826001600160a01b0381163314610f3757610f3733612a73565b610f48610f42612a12565b83612dc1565b610fa25760405162461bcd60e51b815260206004820152602560248201527f63616c6c6572206973206e6f7420746f6b656e206f776e6572206f72206170706044820152641c9bdd995960da1b6064820152608401610ae7565b610d2d848484612e20565b60008281526012602052604081205481906001600160a01b03166110225760405162461bcd60e51b815260206004820152602660248201527f45524332393831526f79616c746965733a20546f6b656e20646f6573206e6f7460448201526508195e1a5cdd60d21b6064820152608401610ae7565b600b54600a546000868152600d60205260409020546001600160a01b03909116901561106f5750506000848152600d6020908152604080832054600c909252909120546001600160a01b03165b8115611096576127106110828387614047565b61108c919061407c565b925080935061109f565b60009250600093505b50509250929050565b6110b0612fd8565b6110b8610a11565b6111045760405162461bcd60e51b815260206004820152601860248201527f6d696e7420686173206e6f7420737461727465642079657400000000000000006044820152606401610ae7565b600e5460ff16156111575760405162461bcd60e51b815260206004820152601160248201527f6d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610ae7565b6001600160a01b0382166111ad5760405162461bcd60e51b815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610ae7565b600081116111fd5760405162461bcd60e51b815260206004820152601f60248201527f6e65656420746f206d696e74206174206c65617374206f6e6520746f6b656e006044820152606401610ae7565b80601054101561124f5760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e67206d6f726520746f6b656e73207468616e20737570706c79006044820152606401610ae7565b8060055461125d9190614047565b34146112b75760405162461bcd60e51b8152602060048201526024808201527f446964206e6f742073656e6420636f727265637420616d6f756e74206f662066604482015263756e647360e01b6064820152608401610ae7565b6112bf612591565b15611366576001600160a01b0382166000908152601660205260409020548111156113385760405162461bcd60e51b8152602060048201526024808201527f73656e6465722063616e6e6f74206d696e74206d6f7265207468616e20616c6c6044820152631bddd95960e21b6064820152608401610ae7565b6001600160a01b03821660009081526016602052604081208054839290611360908490614090565b90915550505b61136e613031565b611378828261313c565b610b4e6001600055565b6002546001600160a01b03166367499c7e61139b612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190613fab565b61143d5760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b610b4e82826131b7565b826001600160a01b03811633146114615761146133612a73565b610d2d84848460405180602001604052806000815250611f5b565b6002546001600160a01b03166367499c7e611495612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156114d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fd9190613fab565b6115375760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600755565b6002546001600160a01b03166367499c7e611555612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611599573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115bd9190613fab565b6115f75760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b805161160a906006906020840190613952565b50610f1a6132c7565b6000818152601260205260408120546001600160a01b031680610a0b5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a59081d1bdad95b88125160821b6044820152606401610ae7565b6002546001600160a01b0316631177570f611684612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156116c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ec9190613fab565b61172b5760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b60006001600160a01b0382166117a85760405162461bcd60e51b815260206004820152600c60248201526b61646472657373207a65726f60a01b6044820152606401610ae7565b506001600160a01b031660009081526013602052604090205490565b606060068054610b619061400d565b6117db61330d565b6117e56000613386565b565b6002546001600160a01b0316631177570f611800612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118689190613fab565b6118a75760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b80158015906118b857506010548111155b61192a5760405162461bcd60e51b815260206004820152603760248201527f456d70747920726563697069656e74206c697374206f72206d696e74696e672060448201527f6d6f726520746f6b656e73207468616e20737570706c790000000000000000006064820152608401610ae7565b60005b818110156119765761196683838381811061194a5761194a613fc8565b905060200201602081019061195f9190613de0565b600161313c565b61196f81613ff4565b905061192d565b505050565b6002546001600160a01b03166367499c7e611994612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156119d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fc9190613fab565b611a365760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600754811115611a945760405162461bcd60e51b8152602060048201526024808201527f74696d657374616d7020686967686572207468616e206d696e742074696d6573604482015263074616d760e41b6064820152608401610ae7565b601755565b6002546001600160a01b03166367499c7e611ab2612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1a9190613fab565b611b545760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600e805460ff1916911515919091179055565b6002546001600160a01b03166367499c7e611b80612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611bc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be89190613fab565b611c225760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b60075442108015611c335750600081115b8015611c3f5750601154155b8015611c4d57506011548110155b611c995760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f7420736574206d696e74206d617820737570706c7900000000006044820152606401610ae7565b6008819055601055565b606060048054610b619061400d565b6002546001600160a01b03166367499c7e611ccb612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d339190613fab565b611d6d5760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b6001600160a01b038216611dd75760405162461bcd60e51b815260206004820152602b60248201527f726f79616c74696573206e657720726563697069656e7420697320746865207a60448201526a65726f206164647265737360a81b6064820152608401610ae7565b612710811115611e385760405162461bcd60e51b815260206004820152602660248201527f746f6b656e20726f79616c7479206d75737420626520686967686572207468656044820152656e203130302560d01b6064820152608401610ae7565b6000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b81611e7b81612a73565b611976611e86612a12565b84846133d8565b6002546001600160a01b03166367499c7e611ea6612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190613fab565b611f485760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b8051610b4e906004906020840190613952565b836001600160a01b0381163314611f7557611f7533612a73565b611f86611f80612a12565b84612dc1565b611fe05760405162461bcd60e51b815260206004820152602560248201527f63616c6c6572206973206e6f7420746f6b656e206f776e6572206f72206170706044820152641c9bdd995960da1b6064820152608401610ae7565b611fec858585856134a6565b5050505050565b6002546001600160a01b0316631177570f61200c612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120749190613fab565b6120b35760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b6117e56132c7565b6002546001600160a01b03166367499c7e6120d4612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612118573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213c9190613fab565b6121765760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b8051610b4e906003906020840190613952565b6002546001600160a01b0316631177570f6121a2612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156121e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220a9190613fab565b6122495760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b606061229182612a1c565b6000306001600160a01b031663714c53986040518163ffffffff1660e01b8152600401600060405180830381865afa1580156122d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122f991908101906140a7565b905060008151116123195760405180602001604052806000815250612344565b806123238461351c565b60405160200161233492919061411e565b6040516020818303038152906040525b9392505050565b6002546001600160a01b03166367499c7e612364612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156123a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123cc9190613fab565b6124065760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b6001600160a01b0382161580159061242057506000601054115b6124825760405162461bcd60e51b815260206004820152602d60248201527f496e76616c69642061646472657373206f72206e6f20746f6b656e73206c656660448201526c7420666f72206d696e74696e6760981b6064820152608401610ae7565b6000612490826010546135af565b90506010600081546124a19061414d565b909155506124af8382613634565b6001600160a01b03831660009081526013602052604081208054916124d383613ff4565b9190505550505050565b60606124e7610a11565b15806124f55750600e5460ff165b8061250757506001600160a01b038316155b80612510575081155b8061251c575081601054105b8061254d575061252a612591565b801561254d57506001600160a01b03831660009081526016602052604090205482115b1561257b575060408051808201909152600c81526b10d85b881b9bdd081b5a5b9d60a21b6020820152610a0b565b5060408051602081019091526000815292915050565b6000806017541180156125a657506017544210155b801561098c575050600754421090565b6002546001600160a01b0316631177570f6125cf612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126379190613fab565b6126765760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b600081116126c65760405162461bcd60e51b815260206004820152601760248201527f6d696e74206174206c65617374206f6e6520746f6b656e0000000000000000006044820152606401610ae7565b8060105410156127185760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e67206d6f726520746f6b656e73207468616e20737570706c79006044820152606401610ae7565b610b4e828261313c565b61272a612a12565b6001600160a01b0316600260009054906101000a90046001600160a01b03166001600160a01b0316638204c3266040518163ffffffff1660e01b8152600401602060405180830381865afa158015612786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127aa9190614164565b6001600160a01b0316146128005760405162461bcd60e51b815260206004820152601160248201527f6e6f7420612073757065722061646d696e0000000000000000000000000000006044820152606401610ae7565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60007358807bad0b376efc12f5ad86aac70e78ed67dead196001600160a01b0383160161285157506001610a0b565b506001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b61288861330d565b6001600160a01b0381166128ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae7565b610f1a81613386565b6002546001600160a01b03166367499c7e61290f612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129779190613fab565b6129b15760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600555565b6000303303612a0c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612a0f9050565b50335b90565b600061098c6129b6565b6000818152601260205260409020546001600160a01b0316610f1a5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a59081d1bdad95b88125160821b6044820152606401610ae7565b6daaeb6d7670e522a718067333cd4e3b15610f1a57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b049190613fab565b610f1a57604051633b79c77360e21b81526001600160a01b0382166004820152602401610ae7565b600081815260146020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b6182611613565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008151118015612bac575060048151105b612bf85760405162461bcd60e51b815260206004820152601f60248201527f696e76616c6964206e756d626572206f662062656e65666963696172696573006044820152606401610ae7565b60095415612c3f576009805480612c1157612c11614181565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101559055612bf8565b6000805b8251811015612d6f576000838281518110612c6057612c60613fc8565b6020026020010151905061271081602001511115612ccb5760405162461bcd60e51b815260206004820152602260248201527f62656e65666963696172792070657263656e7461676520697320746f6f2068696044820152610ced60f31b6064820152608401610ae7565b6009805460018101825560009190915281517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b0909101819055612d599084614197565b9250508080612d6790613ff4565b915050612c43565b506127108114610b4e5760405162461bcd60e51b815260206004820152601c60248201527f746f74616c2070657263656e74616765206d75737420626520313030000000006044820152606401610ae7565b600080612dcd83611613565b9050806001600160a01b0316846001600160a01b03161480612df45750612df48185612822565b80612e185750836001600160a01b0316612e0d84610be4565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e3382611613565b6001600160a01b031614612e895760405162461bcd60e51b815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610ae7565b6001600160a01b038216612edf5760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610ae7565b826001600160a01b0316612ef282611613565b6001600160a01b031614612f485760405162461bcd60e51b815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610ae7565b600081815260146020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260138552838620805460001901905590871680865283862080546001019055868652601290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026000540361302a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae7565b6002600055565b60006009805480602002602001604051908101604052809291908181526020016000905b8282101561309d576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101613055565b50505050905060005b8151811015610b4e5760008282815181106130c3576130c3613fc8565b6020026020010151905060006127108260200151346130e29190614047565b6130ec919061407c565b82516040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613126573d6000803e3d6000fd5b505050808061313490613ff4565b9150506130a6565b60105460005b8281101561317f57600061315685846136a0565b90506131628582613634565b61316b8361414d565b9250508061317890613ff4565b9050613142565b5060108190556001600160a01b038316600090815260136020526040812080548492906131ad908490614197565b9091555050505050565b6001600160a01b03821661321d5760405162461bcd60e51b815260206004820152602760248201527f726f79616c7469657320726563697069656e7420697320746865207a65726f206044820152666164647265737360c81b6064820152608401610ae7565b612710811115801561322f5750600081115b6132a15760405162461bcd60e51b815260206004820152603e60248201527f726f79616c7479206d757374206265206c657373207468616e206f722065717560448201527f616c20746f203130302520616e642067726561746572207468616e20302500006064820152608401610ae7565b600a80546001600160a01b0319166001600160a01b039390931692909217909155600b55565b7f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c60006132f360085490565b6040805192835260208301919091520160405180910390a1565b613315612a12565b6001600160a01b03166133306001546001600160a01b031690565b6001600160a01b0316146117e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae7565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036134395760405162461bcd60e51b815260206004820152601160248201527f617070726f766520746f2063616c6c65720000000000000000000000000000006044820152606401610ae7565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134b1848484612e20565b6134bd84848484613725565b610d2d5760405162461bcd60e51b815260206004820152602a60248201527f7472616e7366657220746f206e6f6e204552433732315265636569766572206960448201526936b83632b6b2b73a32b960b11b6064820152608401610ae7565b6060600061352983613870565b600101905060008167ffffffffffffffff81111561354957613549613a1e565b6040519080825280601f01601f191660200182016040528015613573576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461357d57509392505050565b6000828152600f60205260408120548181156135cb57816135cd565b845b905060006135dc600186614090565b6000818152600f60205260409020549091508682146136135780156136015780613603565b815b6000888152600f60205260409020555b8015613629576000828152600f60205260408120555b509095945050505050565b60116000815461364390613ff4565b9091555060008181526012602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061234482843a30836136b5600143614090565b604080516001600160a01b039687166020820152908101949094529390911660608301526080820152904060a08201524260c08201524360e082015241610100820152610120016040516020818303038152906040528051906020012060001c61371f91906141af565b836135af565b60006001600160a01b0384163b1561386557836001600160a01b031663150b7a0261374e612a12565b8786866040518563ffffffff1660e01b815260040161377094939291906141c3565b6020604051808303816000875af19250505080156137ab575060408051601f3d908101601f191682019092526137a8918101906141ff565b60015b61384b573d8080156137d9576040519150601f19603f3d011682016040523d82523d6000602084013e6137de565b606091505b5080516000036138435760405162461bcd60e51b815260206004820152602a60248201527f7472616e7366657220746f206e6f6e204552433732315265636569766572206960448201526936b83632b6b2b73a32b960b11b6064820152608401610ae7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e18565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106138b9577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106138e5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061390357662386f26fc10000830492506010015b6305f5e100831061391b576305f5e100830492506008015b612710831061392f57612710830492506004015b60648310613941576064830492506002015b600a8310610a0b5760010192915050565b82805461395e9061400d565b90600052602060002090601f01602090048101928261398057600085556139c6565b82601f1061399957805160ff19168380011785556139c6565b828001600101855582156139c6579182015b828111156139c65782518255916020019190600101906139ab565b506139d29291506139d6565b5090565b5b808211156139d257600081556001016139d7565b6001600160e01b031981168114610f1a57600080fd5b600060208284031215613a1357600080fd5b8135612344816139eb565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613a5d57613a5d613a1e565b604052919050565b600067ffffffffffffffff821115613a7f57613a7f613a1e565b5060051b60200190565b6001600160a01b0381168114610f1a57600080fd5b6000613ab1613aac84613a65565b613a34565b8381529050602080820190600685901b840186811115613ad057600080fd5b845b81811015613b3557604080828a031215613aec5760008081fd5b805181810181811067ffffffffffffffff82111715613b0d57613b0d613a1e565b909152813590613b1c82613a89565b9081528184013584820152845292820192604001613ad2565b505050509392505050565b600060208284031215613b5257600080fd5b813567ffffffffffffffff811115613b6957600080fd5b8201601f81018413613b7a57600080fd5b612e1884823560208401613a9e565b60005b83811015613ba4578181015183820152602001613b8c565b83811115610d2d5750506000910152565b60008151808452613bcd816020860160208601613b89565b601f01601f19169290920160200192915050565b6020815260006123446020830184613bb5565b600060208284031215613c0657600080fd5b5035919050565b60008060408385031215613c2057600080fd5b8235613c2b81613a89565b946020939093013593505050565b60006020808385031215613c4c57600080fd5b823567ffffffffffffffff811115613c6357600080fd5b8301601f81018513613c7457600080fd5b8035613c82613aac82613a65565b81815260059190911b82018301908381019087831115613ca157600080fd5b928401925b82841015613cc8578335613cb981613a89565b82529284019290840190613ca6565b979650505050505050565b600080600060608486031215613ce857600080fd5b8335613cf381613a89565b92506020840135613d0381613a89565b929592945050506040919091013590565b60008060408385031215613d2757600080fd5b50508035926020909101359150565b600067ffffffffffffffff821115613d5057613d50613a1e565b50601f01601f191660200190565b6000613d6c613aac84613d36565b9050828152838383011115613d8057600080fd5b828260208301376000602084830101529392505050565b600060208284031215613da957600080fd5b813567ffffffffffffffff811115613dc057600080fd5b8201601f81018413613dd157600080fd5b612e1884823560208401613d5e565b600060208284031215613df257600080fd5b813561234481613a89565b60008060208385031215613e1057600080fd5b823567ffffffffffffffff80821115613e2857600080fd5b818501915085601f830112613e3c57600080fd5b813581811115613e4b57600080fd5b8660208260051b8501011115613e6057600080fd5b60209290920196919550909350505050565b8015158114610f1a57600080fd5b600060208284031215613e9257600080fd5b813561234481613e72565b600080600060608486031215613eb257600080fd5b833592506020840135613d0381613a89565b60008060408385031215613ed757600080fd5b8235613ee281613a89565b91506020830135613ef281613e72565b809150509250929050565b60008060008060808587031215613f1357600080fd5b8435613f1e81613a89565b93506020850135613f2e81613a89565b925060408501359150606085013567ffffffffffffffff811115613f5157600080fd5b8501601f81018713613f6257600080fd5b613f7187823560208401613d5e565b91505092959194509250565b60008060408385031215613f9057600080fd5b8235613f9b81613a89565b91506020830135613ef281613a89565b600060208284031215613fbd57600080fd5b815161234481613e72565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161400657614006613fde565b5060010190565b600181811c9082168061402157607f821691505b60208210810361404157634e487b7160e01b600052602260045260246000fd5b50919050565b600081600019048311821515161561406157614061613fde565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261408b5761408b614066565b500490565b6000828210156140a2576140a2613fde565b500390565b6000602082840312156140b957600080fd5b815167ffffffffffffffff8111156140d057600080fd5b8201601f810184136140e157600080fd5b80516140ef613aac82613d36565b81815285602083850101111561410457600080fd5b614115826020830160208601613b89565b95945050505050565b60008351614130818460208801613b89565b835190830190614144818360208801613b89565b01949350505050565b60008161415c5761415c613fde565b506000190190565b60006020828403121561417657600080fd5b815161234481613a89565b634e487b7160e01b600052603160045260246000fd5b600082198211156141aa576141aa613fde565b500190565b6000826141be576141be614066565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526141f56080830184613bb5565b9695505050505050565b60006020828403121561421157600080fd5b8151612344816139eb56fea2646970667358221220b1cf075ec2fef394a4859b0c170ba289922130244a0bf0b45bd7decaa820340464736f6c634300080e00330000000000000000000000000f4681b87b7ffff96f9836f3abe957e77c930faf00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000068155a43676e0000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000006480e1c000000000000000000000000000000000000000000000000000000000647f904000000000000000000000000000000000000000000000000000000000000002200000000000000000000000004c24994b32d6785e5fc6d9101f9b2a04fb7f09a600000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000005434f4445580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434f444500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f6e66742d6173736574732e706978656c796e782e696f2f6e6674732f636f6465782d72657665616c2f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000fcdd3d91f678b75f002873ff9e5f8ffea64505aa0000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode
0x60806040526004361061033e5760003560e01c8063775fe52f116101b0578063c47f0027116100ec578063d17bf5cc11610095578063e10967fa1161006f578063e10967fa146108f7578063e985e9c514610917578063f2fde38b14610937578063f4a0a5281461095757600080fd5b8063d17bf5cc146108a4578063d23796ae146108b9578063da1919b3146108d757600080fd5b8063c8b08125116100c6578063c8b081251461084f578063cc47a40b14610864578063cc7192811461088457600080fd5b8063c47f0027146107ef578063c758f6001461080f578063c87b56dd1461082f57600080fd5b80639713c80711610159578063b84c824611610133578063b84c824614610785578063b88d4fde146107a5578063bed20a87146107c5578063c285e107146107da57600080fd5b80639713c80714610730578063a0e389de14610750578063a22cb4651461076557600080fd5b80639213bda71161018a5780639213bda7146106db57806393a67125146106fb57806395d89b411461071b57600080fd5b8063775fe52f146106885780638da5cb5b1461069d5780638f73716b146106bb57600080fd5b806332034d271161027f5780636352211e1161022857806370a082311161020257806370a082311461061e578063714c53981461063e578063715018a614610653578063729ad39e1461066857600080fd5b80636352211e146105c95780636817c76c146105e95780636a1c34fb146105fe57600080fd5b806342842e0e1161025957806342842e0e1461056957806354fee61f1461058957806355f804b3146105a957600080fd5b806332034d271461051457806334bf3d921461052757806341f434341461054757600080fd5b8063081812fc116102ec578063105dedfc116102c6578063105dedfc1461047657806318160ddd1461049657806323b872dd146104b55780632a55205a146104d557600080fd5b8063081812fc146103fe578063095ea7b314610436578063104b6cb71461045657600080fd5b80630548b4ac1161031d5780630548b4ac146103a55780630618a1b8146103ba57806306fdde03146103dc57600080fd5b8062c236a91461034357806301ffc9a71461036d578063035240051461038d575b600080fd5b34801561034f57600080fd5b50610358610977565b60405190151581526020015b60405180910390f35b34801561037957600080fd5b50610358610388366004613a01565b610991565b34801561039957600080fd5b50600754421015610358565b3480156103b157600080fd5b50610358610a11565b3480156103c657600080fd5b506103da6103d5366004613b40565b610a2b565b005b3480156103e857600080fd5b506103f1610b52565b6040516103649190613be1565b34801561040a57600080fd5b5061041e610419366004613bf4565b610be4565b6040516001600160a01b039091168152602001610364565b34801561044257600080fd5b506103da610451366004613c0d565b610c0b565b34801561046257600080fd5b506103da610471366004613c39565b610d33565b34801561048257600080fd5b506103da610491366004613b40565b610e56565b3480156104a257600080fd5b506011545b604051908152602001610364565b3480156104c157600080fd5b506103da6104d0366004613cd3565b610f1d565b3480156104e157600080fd5b506104f56104f0366004613d14565b610fad565b604080516001600160a01b039093168352602083019190915201610364565b6103da610522366004613c0d565b6110a8565b34801561053357600080fd5b506103da610542366004613c0d565b611382565b34801561055357600080fd5b5061041e6daaeb6d7670e522a718067333cd4e81565b34801561057557600080fd5b506103da610584366004613cd3565b611447565b34801561059557600080fd5b506103da6105a4366004613bf4565b61147c565b3480156105b557600080fd5b506103da6105c4366004613d97565b61153c565b3480156105d557600080fd5b5061041e6105e4366004613bf4565b611613565b3480156105f557600080fd5b506005546104a7565b34801561060a57600080fd5b506103da610619366004613bf4565b61166b565b34801561062a57600080fd5b506104a7610639366004613de0565b611761565b34801561064a57600080fd5b506103f16117c4565b34801561065f57600080fd5b506103da6117d3565b34801561067457600080fd5b506103da610683366004613dfd565b6117e7565b34801561069457600080fd5b506017546104a7565b3480156106a957600080fd5b506001546001600160a01b031661041e565b3480156106c757600080fd5b506103da6106d6366004613bf4565b61197b565b3480156106e757600080fd5b506103da6106f6366004613e80565b611a99565b34801561070757600080fd5b506103da610716366004613bf4565b611b67565b34801561072757600080fd5b506103f1611ca3565b34801561073c57600080fd5b506103da61074b366004613e9d565b611cb2565b34801561075c57600080fd5b506007546104a7565b34801561077157600080fd5b506103da610780366004613ec4565b611e71565b34801561079157600080fd5b506103da6107a0366004613d97565b611e8d565b3480156107b157600080fd5b506103da6107c0366004613efd565b611f5b565b3480156107d157600080fd5b506103da611ff3565b3480156107e657600080fd5b506008546104a7565b3480156107fb57600080fd5b506103da61080a366004613d97565b6120bb565b34801561081b57600080fd5b506103da61082a366004613d14565b612189565b34801561083b57600080fd5b506103f161084a366004613bf4565b612286565b34801561085b57600080fd5b506010546104a7565b34801561087057600080fd5b506103da61087f366004613c0d565b61234b565b34801561089057600080fd5b506103f161089f366004613c0d565b6124dd565b3480156108b057600080fd5b50610358612591565b3480156108c557600080fd5b506002546001600160a01b031661041e565b3480156108e357600080fd5b506103da6108f2366004613c0d565b6125b6565b34801561090357600080fd5b506103da610912366004613de0565b612722565b34801561092357600080fd5b50610358610932366004613f7d565b612822565b34801561094357600080fd5b506103da610952366004613de0565b612880565b34801561096357600080fd5b506103da610972366004613bf4565b6128f6565b60008060175411801561098c57506017544210155b905090565b60006001600160e01b0319821663152a902d60e11b14806109c257506001600160e01b031982166380ac58cd60e01b145b806109dd57506001600160e01b03198216635b5e139f60e01b145b806109f857506001600160e01b031982166301ffc9a760e01b145b80610a0b57506001600160e01b03198216155b92915050565b6000610a1b610977565b8061098c57505060075442101590565b6002546001600160a01b0316631177570f610a44612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aac9190613fab565b610af05760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b60448201526064015b60405180910390fd5b60005b8151811015610b4e576000828281518110610b1057610b10613fc8565b6020908102919091018101518082015190516001600160a01b0316600090815260169092526040909120555080610b4681613ff4565b915050610af3565b5050565b606060038054610b619061400d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8d9061400d565b8015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b5050505050905090565b6000610bef82612a1c565b506000908152601460205260409020546001600160a01b031690565b81610c1581612a73565b6000610c2083611613565b9050806001600160a01b0316846001600160a01b031603610c835760405162461bcd60e51b815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610ae7565b806001600160a01b0316610c95612a12565b6001600160a01b03161480610cb15750610cb181610932612a12565b610d235760405162461bcd60e51b815260206004820152603560248201527f617070726f76652063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656420666f7220616c6c00000000000000000000006064820152608401610ae7565b610d2d8484612b2c565b50505050565b6002546001600160a01b0316631177570f610d4c612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610d90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db49190613fab565b610df35760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b60005b8151811015610b4e57600060166000848481518110610e1757610e17613fc8565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610e4e90613ff4565b915050610df6565b6002546001600160a01b03166367499c7e610e6f612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed79190613fab565b610f115760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b610f1a81612b9a565b50565b826001600160a01b0381163314610f3757610f3733612a73565b610f48610f42612a12565b83612dc1565b610fa25760405162461bcd60e51b815260206004820152602560248201527f63616c6c6572206973206e6f7420746f6b656e206f776e6572206f72206170706044820152641c9bdd995960da1b6064820152608401610ae7565b610d2d848484612e20565b60008281526012602052604081205481906001600160a01b03166110225760405162461bcd60e51b815260206004820152602660248201527f45524332393831526f79616c746965733a20546f6b656e20646f6573206e6f7460448201526508195e1a5cdd60d21b6064820152608401610ae7565b600b54600a546000868152600d60205260409020546001600160a01b03909116901561106f5750506000848152600d6020908152604080832054600c909252909120546001600160a01b03165b8115611096576127106110828387614047565b61108c919061407c565b925080935061109f565b60009250600093505b50509250929050565b6110b0612fd8565b6110b8610a11565b6111045760405162461bcd60e51b815260206004820152601860248201527f6d696e7420686173206e6f7420737461727465642079657400000000000000006044820152606401610ae7565b600e5460ff16156111575760405162461bcd60e51b815260206004820152601160248201527f6d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610ae7565b6001600160a01b0382166111ad5760405162461bcd60e51b815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610ae7565b600081116111fd5760405162461bcd60e51b815260206004820152601f60248201527f6e65656420746f206d696e74206174206c65617374206f6e6520746f6b656e006044820152606401610ae7565b80601054101561124f5760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e67206d6f726520746f6b656e73207468616e20737570706c79006044820152606401610ae7565b8060055461125d9190614047565b34146112b75760405162461bcd60e51b8152602060048201526024808201527f446964206e6f742073656e6420636f727265637420616d6f756e74206f662066604482015263756e647360e01b6064820152608401610ae7565b6112bf612591565b15611366576001600160a01b0382166000908152601660205260409020548111156113385760405162461bcd60e51b8152602060048201526024808201527f73656e6465722063616e6e6f74206d696e74206d6f7265207468616e20616c6c6044820152631bddd95960e21b6064820152608401610ae7565b6001600160a01b03821660009081526016602052604081208054839290611360908490614090565b90915550505b61136e613031565b611378828261313c565b610b4e6001600055565b6002546001600160a01b03166367499c7e61139b612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190613fab565b61143d5760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b610b4e82826131b7565b826001600160a01b03811633146114615761146133612a73565b610d2d84848460405180602001604052806000815250611f5b565b6002546001600160a01b03166367499c7e611495612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156114d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fd9190613fab565b6115375760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600755565b6002546001600160a01b03166367499c7e611555612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611599573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115bd9190613fab565b6115f75760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b805161160a906006906020840190613952565b50610f1a6132c7565b6000818152601260205260408120546001600160a01b031680610a0b5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a59081d1bdad95b88125160821b6044820152606401610ae7565b6002546001600160a01b0316631177570f611684612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156116c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ec9190613fab565b61172b5760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b60006001600160a01b0382166117a85760405162461bcd60e51b815260206004820152600c60248201526b61646472657373207a65726f60a01b6044820152606401610ae7565b506001600160a01b031660009081526013602052604090205490565b606060068054610b619061400d565b6117db61330d565b6117e56000613386565b565b6002546001600160a01b0316631177570f611800612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118689190613fab565b6118a75760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b80158015906118b857506010548111155b61192a5760405162461bcd60e51b815260206004820152603760248201527f456d70747920726563697069656e74206c697374206f72206d696e74696e672060448201527f6d6f726520746f6b656e73207468616e20737570706c790000000000000000006064820152608401610ae7565b60005b818110156119765761196683838381811061194a5761194a613fc8565b905060200201602081019061195f9190613de0565b600161313c565b61196f81613ff4565b905061192d565b505050565b6002546001600160a01b03166367499c7e611994612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156119d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fc9190613fab565b611a365760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600754811115611a945760405162461bcd60e51b8152602060048201526024808201527f74696d657374616d7020686967686572207468616e206d696e742074696d6573604482015263074616d760e41b6064820152608401610ae7565b601755565b6002546001600160a01b03166367499c7e611ab2612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1a9190613fab565b611b545760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600e805460ff1916911515919091179055565b6002546001600160a01b03166367499c7e611b80612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611bc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be89190613fab565b611c225760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b60075442108015611c335750600081115b8015611c3f5750601154155b8015611c4d57506011548110155b611c995760405162461bcd60e51b815260206004820152601b60248201527f43616e206e6f7420736574206d696e74206d617820737570706c7900000000006044820152606401610ae7565b6008819055601055565b606060048054610b619061400d565b6002546001600160a01b03166367499c7e611ccb612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d339190613fab565b611d6d5760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b6001600160a01b038216611dd75760405162461bcd60e51b815260206004820152602b60248201527f726f79616c74696573206e657720726563697069656e7420697320746865207a60448201526a65726f206164647265737360a81b6064820152608401610ae7565b612710811115611e385760405162461bcd60e51b815260206004820152602660248201527f746f6b656e20726f79616c7479206d75737420626520686967686572207468656044820152656e203130302560d01b6064820152608401610ae7565b6000928352600c6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600d9052912055565b81611e7b81612a73565b611976611e86612a12565b84846133d8565b6002546001600160a01b03166367499c7e611ea6612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190613fab565b611f485760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b8051610b4e906004906020840190613952565b836001600160a01b0381163314611f7557611f7533612a73565b611f86611f80612a12565b84612dc1565b611fe05760405162461bcd60e51b815260206004820152602560248201527f63616c6c6572206973206e6f7420746f6b656e206f776e6572206f72206170706044820152641c9bdd995960da1b6064820152608401610ae7565b611fec858585856134a6565b5050505050565b6002546001600160a01b0316631177570f61200c612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120749190613fab565b6120b35760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b6117e56132c7565b6002546001600160a01b03166367499c7e6120d4612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612118573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213c9190613fab565b6121765760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b8051610b4e906003906020840190613952565b6002546001600160a01b0316631177570f6121a2612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156121e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220a9190613fab565b6122495760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b606061229182612a1c565b6000306001600160a01b031663714c53986040518163ffffffff1660e01b8152600401600060405180830381865afa1580156122d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122f991908101906140a7565b905060008151116123195760405180602001604052806000815250612344565b806123238461351c565b60405160200161233492919061411e565b6040516020818303038152906040525b9392505050565b6002546001600160a01b03166367499c7e612364612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156123a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123cc9190613fab565b6124065760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b6001600160a01b0382161580159061242057506000601054115b6124825760405162461bcd60e51b815260206004820152602d60248201527f496e76616c69642061646472657373206f72206e6f20746f6b656e73206c656660448201526c7420666f72206d696e74696e6760981b6064820152608401610ae7565b6000612490826010546135af565b90506010600081546124a19061414d565b909155506124af8382613634565b6001600160a01b03831660009081526013602052604081208054916124d383613ff4565b9190505550505050565b60606124e7610a11565b15806124f55750600e5460ff165b8061250757506001600160a01b038316155b80612510575081155b8061251c575081601054105b8061254d575061252a612591565b801561254d57506001600160a01b03831660009081526016602052604090205482115b1561257b575060408051808201909152600c81526b10d85b881b9bdd081b5a5b9d60a21b6020820152610a0b565b5060408051602081019091526000815292915050565b6000806017541180156125a657506017544210155b801561098c575050600754421090565b6002546001600160a01b0316631177570f6125cf612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126379190613fab565b6126765760405162461bcd60e51b815260206004820152601060248201526f3737ba10309030b4b9323937b83832b960811b6044820152606401610ae7565b600081116126c65760405162461bcd60e51b815260206004820152601760248201527f6d696e74206174206c65617374206f6e6520746f6b656e0000000000000000006044820152606401610ae7565b8060105410156127185760405162461bcd60e51b815260206004820152601f60248201527f6d696e74696e67206d6f726520746f6b656e73207468616e20737570706c79006044820152606401610ae7565b610b4e828261313c565b61272a612a12565b6001600160a01b0316600260009054906101000a90046001600160a01b03166001600160a01b0316638204c3266040518163ffffffff1660e01b8152600401602060405180830381865afa158015612786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127aa9190614164565b6001600160a01b0316146128005760405162461bcd60e51b815260206004820152601160248201527f6e6f7420612073757065722061646d696e0000000000000000000000000000006044820152606401610ae7565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60007358807bad0b376efc12f5ad86aac70e78ed67dead196001600160a01b0383160161285157506001610a0b565b506001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b61288861330d565b6001600160a01b0381166128ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae7565b610f1a81613386565b6002546001600160a01b03166367499c7e61290f612a12565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129779190613fab565b6129b15760405162461bcd60e51b815260206004820152600b60248201526a3737ba10309030b236b4b760a91b6044820152606401610ae7565b600555565b6000303303612a0c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612a0f9050565b50335b90565b600061098c6129b6565b6000818152601260205260409020546001600160a01b0316610f1a5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a59081d1bdad95b88125160821b6044820152606401610ae7565b6daaeb6d7670e522a718067333cd4e3b15610f1a57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b049190613fab565b610f1a57604051633b79c77360e21b81526001600160a01b0382166004820152602401610ae7565b600081815260146020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b6182611613565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008151118015612bac575060048151105b612bf85760405162461bcd60e51b815260206004820152601f60248201527f696e76616c6964206e756d626572206f662062656e65666963696172696573006044820152606401610ae7565b60095415612c3f576009805480612c1157612c11614181565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101559055612bf8565b6000805b8251811015612d6f576000838281518110612c6057612c60613fc8565b6020026020010151905061271081602001511115612ccb5760405162461bcd60e51b815260206004820152602260248201527f62656e65666963696172792070657263656e7461676520697320746f6f2068696044820152610ced60f31b6064820152608401610ae7565b6009805460018101825560009190915281517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208201517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b0909101819055612d599084614197565b9250508080612d6790613ff4565b915050612c43565b506127108114610b4e5760405162461bcd60e51b815260206004820152601c60248201527f746f74616c2070657263656e74616765206d75737420626520313030000000006044820152606401610ae7565b600080612dcd83611613565b9050806001600160a01b0316846001600160a01b03161480612df45750612df48185612822565b80612e185750836001600160a01b0316612e0d84610be4565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e3382611613565b6001600160a01b031614612e895760405162461bcd60e51b815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610ae7565b6001600160a01b038216612edf5760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610ae7565b826001600160a01b0316612ef282611613565b6001600160a01b031614612f485760405162461bcd60e51b815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610ae7565b600081815260146020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260138552838620805460001901905590871680865283862080546001019055868652601290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60026000540361302a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae7565b6002600055565b60006009805480602002602001604051908101604052809291908181526020016000905b8282101561309d576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101613055565b50505050905060005b8151811015610b4e5760008282815181106130c3576130c3613fc8565b6020026020010151905060006127108260200151346130e29190614047565b6130ec919061407c565b82516040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613126573d6000803e3d6000fd5b505050808061313490613ff4565b9150506130a6565b60105460005b8281101561317f57600061315685846136a0565b90506131628582613634565b61316b8361414d565b9250508061317890613ff4565b9050613142565b5060108190556001600160a01b038316600090815260136020526040812080548492906131ad908490614197565b9091555050505050565b6001600160a01b03821661321d5760405162461bcd60e51b815260206004820152602760248201527f726f79616c7469657320726563697069656e7420697320746865207a65726f206044820152666164647265737360c81b6064820152608401610ae7565b612710811115801561322f5750600081115b6132a15760405162461bcd60e51b815260206004820152603e60248201527f726f79616c7479206d757374206265206c657373207468616e206f722065717560448201527f616c20746f203130302520616e642067726561746572207468616e20302500006064820152608401610ae7565b600a80546001600160a01b0319166001600160a01b039390931692909217909155600b55565b7f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c60006132f360085490565b6040805192835260208301919091520160405180910390a1565b613315612a12565b6001600160a01b03166133306001546001600160a01b031690565b6001600160a01b0316146117e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae7565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036134395760405162461bcd60e51b815260206004820152601160248201527f617070726f766520746f2063616c6c65720000000000000000000000000000006044820152606401610ae7565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134b1848484612e20565b6134bd84848484613725565b610d2d5760405162461bcd60e51b815260206004820152602a60248201527f7472616e7366657220746f206e6f6e204552433732315265636569766572206960448201526936b83632b6b2b73a32b960b11b6064820152608401610ae7565b6060600061352983613870565b600101905060008167ffffffffffffffff81111561354957613549613a1e565b6040519080825280601f01601f191660200182016040528015613573576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461357d57509392505050565b6000828152600f60205260408120548181156135cb57816135cd565b845b905060006135dc600186614090565b6000818152600f60205260409020549091508682146136135780156136015780613603565b815b6000888152600f60205260409020555b8015613629576000828152600f60205260408120555b509095945050505050565b60116000815461364390613ff4565b9091555060008181526012602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061234482843a30836136b5600143614090565b604080516001600160a01b039687166020820152908101949094529390911660608301526080820152904060a08201524260c08201524360e082015241610100820152610120016040516020818303038152906040528051906020012060001c61371f91906141af565b836135af565b60006001600160a01b0384163b1561386557836001600160a01b031663150b7a0261374e612a12565b8786866040518563ffffffff1660e01b815260040161377094939291906141c3565b6020604051808303816000875af19250505080156137ab575060408051601f3d908101601f191682019092526137a8918101906141ff565b60015b61384b573d8080156137d9576040519150601f19603f3d011682016040523d82523d6000602084013e6137de565b606091505b5080516000036138435760405162461bcd60e51b815260206004820152602a60248201527f7472616e7366657220746f206e6f6e204552433732315265636569766572206960448201526936b83632b6b2b73a32b960b11b6064820152608401610ae7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e18565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106138b9577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106138e5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061390357662386f26fc10000830492506010015b6305f5e100831061391b576305f5e100830492506008015b612710831061392f57612710830492506004015b60648310613941576064830492506002015b600a8310610a0b5760010192915050565b82805461395e9061400d565b90600052602060002090601f01602090048101928261398057600085556139c6565b82601f1061399957805160ff19168380011785556139c6565b828001600101855582156139c6579182015b828111156139c65782518255916020019190600101906139ab565b506139d29291506139d6565b5090565b5b808211156139d257600081556001016139d7565b6001600160e01b031981168114610f1a57600080fd5b600060208284031215613a1357600080fd5b8135612344816139eb565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613a5d57613a5d613a1e565b604052919050565b600067ffffffffffffffff821115613a7f57613a7f613a1e565b5060051b60200190565b6001600160a01b0381168114610f1a57600080fd5b6000613ab1613aac84613a65565b613a34565b8381529050602080820190600685901b840186811115613ad057600080fd5b845b81811015613b3557604080828a031215613aec5760008081fd5b805181810181811067ffffffffffffffff82111715613b0d57613b0d613a1e565b909152813590613b1c82613a89565b9081528184013584820152845292820192604001613ad2565b505050509392505050565b600060208284031215613b5257600080fd5b813567ffffffffffffffff811115613b6957600080fd5b8201601f81018413613b7a57600080fd5b612e1884823560208401613a9e565b60005b83811015613ba4578181015183820152602001613b8c565b83811115610d2d5750506000910152565b60008151808452613bcd816020860160208601613b89565b601f01601f19169290920160200192915050565b6020815260006123446020830184613bb5565b600060208284031215613c0657600080fd5b5035919050565b60008060408385031215613c2057600080fd5b8235613c2b81613a89565b946020939093013593505050565b60006020808385031215613c4c57600080fd5b823567ffffffffffffffff811115613c6357600080fd5b8301601f81018513613c7457600080fd5b8035613c82613aac82613a65565b81815260059190911b82018301908381019087831115613ca157600080fd5b928401925b82841015613cc8578335613cb981613a89565b82529284019290840190613ca6565b979650505050505050565b600080600060608486031215613ce857600080fd5b8335613cf381613a89565b92506020840135613d0381613a89565b929592945050506040919091013590565b60008060408385031215613d2757600080fd5b50508035926020909101359150565b600067ffffffffffffffff821115613d5057613d50613a1e565b50601f01601f191660200190565b6000613d6c613aac84613d36565b9050828152838383011115613d8057600080fd5b828260208301376000602084830101529392505050565b600060208284031215613da957600080fd5b813567ffffffffffffffff811115613dc057600080fd5b8201601f81018413613dd157600080fd5b612e1884823560208401613d5e565b600060208284031215613df257600080fd5b813561234481613a89565b60008060208385031215613e1057600080fd5b823567ffffffffffffffff80821115613e2857600080fd5b818501915085601f830112613e3c57600080fd5b813581811115613e4b57600080fd5b8660208260051b8501011115613e6057600080fd5b60209290920196919550909350505050565b8015158114610f1a57600080fd5b600060208284031215613e9257600080fd5b813561234481613e72565b600080600060608486031215613eb257600080fd5b833592506020840135613d0381613a89565b60008060408385031215613ed757600080fd5b8235613ee281613a89565b91506020830135613ef281613e72565b809150509250929050565b60008060008060808587031215613f1357600080fd5b8435613f1e81613a89565b93506020850135613f2e81613a89565b925060408501359150606085013567ffffffffffffffff811115613f5157600080fd5b8501601f81018713613f6257600080fd5b613f7187823560208401613d5e565b91505092959194509250565b60008060408385031215613f9057600080fd5b8235613f9b81613a89565b91506020830135613ef281613a89565b600060208284031215613fbd57600080fd5b815161234481613e72565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161400657614006613fde565b5060010190565b600181811c9082168061402157607f821691505b60208210810361404157634e487b7160e01b600052602260045260246000fd5b50919050565b600081600019048311821515161561406157614061613fde565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261408b5761408b614066565b500490565b6000828210156140a2576140a2613fde565b500390565b6000602082840312156140b957600080fd5b815167ffffffffffffffff8111156140d057600080fd5b8201601f810184136140e157600080fd5b80516140ef613aac82613d36565b81815285602083850101111561410457600080fd5b614115826020830160208601613b89565b95945050505050565b60008351614130818460208801613b89565b835190830190614144818360208801613b89565b01949350505050565b60008161415c5761415c613fde565b506000190190565b60006020828403121561417657600080fd5b815161234481613a89565b634e487b7160e01b600052603160045260246000fd5b600082198211156141aa576141aa613fde565b500190565b6000826141be576141be614066565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526141f56080830184613bb5565b9695505050505050565b60006020828403121561421157600080fd5b8151612344816139eb56fea2646970667358221220b1cf075ec2fef394a4859b0c170ba289922130244a0bf0b45bd7decaa820340464736f6c634300080e0033
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.