ERC-721
NFT
Overview
Max Total Supply
10,000 MM
Holders
2,383
Market
Volume (24H)
0.0014 ETH
Min Price (24H)
$4.59 @ 0.001400 ETH
Max Price (24H)
$4.59 @ 0.001400 ETH
Other Info
Token Contract
Balance
1 MMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MerryModz
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // Contracts import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ITFKFreeMintable.sol"; import "./Royalty.sol"; contract MerryModz is Ownable, ERC721Enumerable, ReentrancyGuard, ITFKFreeMintable, Royalty { // Structs struct FKUsage { bool freeMint; bool presale; } // Utils using ECDSA for bytes32; using Strings for uint256; // ERC721 params string private baseURI = "https://api.merrymodz.io/"; uint32 private tokenCount; // ECDSA address private signerAddress; mapping(string => bool) private isNonceUsed; // Token Timings mapping(uint256 => uint256) private _tokenMintedAt; mapping(uint256 => uint256) private _tokenLastTransferredAt; // Allowances mapping(uint256 => FKUsage) public fkUsage; // Withdrawal address public withdrawalAddress = 0xdAD835097E934A3B7D0b8528Cc6a29D58BA1D308; // Magic Moment address public magicContractAddress; mapping(uint256 => uint256) private _magic; // Collection params uint32 public constant TOTAL_SUPPLY = 10000; uint32 public constant MINT_LIMIT = 15; // Price params uint256 public constant PRICE = 0.07 ether; // Provably randomness bytes32 public firstProvenanceHash; // The hash from the ordered list of NFTs uint256 public randomSeed; // Random seed used to shuffle the first ordered list of NFTs bytes32 public finalProvenanceHash; // The hash from the shuffled list of NFTs // Sale state variables bool public preSaleStarted = false; bool public isPresaleActive = false; bool public saleStarted = false; bool public isSaleActive = false; bool public saleHasEnded = false; // Event declaration event SetBaseURI(string baseURI); event SetProvenance(bytes32 provenance); event MagicContractAddress(address approved); event PresaleBegins(); event SaleBegins(); event SaleEnds(); event Minted(uint256 indexed fromId, uint256 indexed toId); // Constructor constructor( address _signerAddresss, address _itfk, address _itfkPeer ) ERC721("Merry Modz", "MM") ITFKFreeMintable(_itfk, _itfkPeer) Royalty(address(this), 500) // This contract receives 5.00% from 2nd market sales { signerAddress = _signerAddresss; } receive() external payable {} // Signature verfification modifier onlySignedTx( uint32 _amount, string memory _nonce, bytes memory _signature ) { require(!isNonceUsed[_nonce], "Nonce already used"); require( keccak256(abi.encodePacked(msg.sender, _amount, _nonce)) .toEthSignedMessageHash() .recover(_signature) == signerAddress, "Signature does not correspond" ); // Save the used nonce isNonceUsed[_nonce] = true; _; } function setSignerAddress(address _signerAddress) external onlyOwner { signerAddress = _signerAddress; } // Private mint function function _mintPrivate(address _to, uint256 _amount) private { for (uint256 i; i < _amount; i++) { tokenCount++; _safeMint(_to, tokenCount); // Store the token minting timestamp _tokenMintedAt[tokenCount] = block.timestamp; } } // Public Mint function mint( uint8 _amount, string memory _nonce, bytes memory _signature ) external payable onlySignedTx(_amount, _nonce, _signature) nonReentrant { require(isSaleActive, "Sale not active"); require(_amount <= (TOTAL_SUPPLY - tokenCount), "Not enough supply"); require(_amount > 0, "You must mint at least 1"); require( _amount <= MINT_LIMIT, "Cannot mint more than MINT_LIMIT per transaction" ); require( (balanceOf(msg.sender) + _amount) <= MINT_LIMIT, "Any one wallet cannot hold more than MINT_LIMIT" ); require( msg.value >= PRICE * _amount, "Insufficient eth to process the order" ); if (msg.value > PRICE * _amount) { payable(msg.sender).transfer(msg.value - (PRICE * _amount)); // Refund if sent more than required } uint256 fromId = tokenCount + 1; uint256 toId = tokenCount + _amount; _mintPrivate(msg.sender, _amount); emit Minted(fromId, toId); } // Founder's Key Minting function _fkFreeMint(uint256[] memory _fkTokenIds) private { for (uint256 i; i < _fkTokenIds.length; i++) { require( !fkUsage[_fkTokenIds[i]].freeMint, "1 free mint on this collection per Founder's Key" ); require( itfkPeer.getFreeMintsRemaining(_fkTokenIds[i]) > 0, "No free mints available" ); fkUsage[_fkTokenIds[i]].presale = true; fkUsage[_fkTokenIds[i]].freeMint = true; itfkPeer.updateFreeMintAllocation(_fkTokenIds[i]); } uint256 fromId = tokenCount + 1; uint256 toId = tokenCount + _fkTokenIds.length; _mintPrivate(msg.sender, _fkTokenIds.length); emit Minted(fromId, toId); } function _fkPaidMint(uint256[] memory _fkPresaleTokenIds, uint32 _amount) private { require( msg.value >= PRICE * _amount, "Insufficient eth to process the order" ); for (uint256 i; i < _fkPresaleTokenIds.length; i++) { fkUsage[_fkPresaleTokenIds[i]].presale = true; } uint256 fromId = tokenCount + 1; uint256 toId = tokenCount + _amount; _mintPrivate(msg.sender, _amount); emit Minted(fromId, toId); } function fkMint( uint256[] memory _fkPresaleTokenIds, uint256[] memory _fkFreeMintTokenIds, uint32 _amount, string memory _nonce, bytes memory _signature ) external payable override onlySignedTx(_amount, _nonce, _signature) nonReentrant { require(isPresaleActive || isSaleActive, "No sale active"); uint256[] memory eligibleFKs = itfkPeer.getFoundersKeysByTierIds( msg.sender, 3 // 3 = 011 = Heroic & Legendary ); require( arrayContains(eligibleFKs, _fkFreeMintTokenIds) && arrayContains(eligibleFKs, _fkPresaleTokenIds), "Not owner of Heroic or Legendary Founder's Key" ); if (isPresaleActive) { require( arrayContains(_fkPresaleTokenIds, _fkFreeMintTokenIds), "Free minting tokens must be presale tokens" ); require( _amount == _fkPresaleTokenIds.length, "1 mint per Founder's Key during presale" ); for (uint256 i; i < _fkPresaleTokenIds.length; i++) { require( !fkUsage[_fkPresaleTokenIds[i]].presale, "Founder's Key already used during presale" ); } } else { require(_amount > 0, "You must mint at least 1"); } require(_amount <= (TOTAL_SUPPLY - tokenCount), "Not enough supply"); require( (balanceOf(msg.sender) + _amount) <= MINT_LIMIT || (balanceOf(msg.sender) + _amount) <= eligibleFKs.length, "Any one wallet cannot hold more than MINT_LIMIT" ); require( _amount >= _fkFreeMintTokenIds.length, "You must attempt to mint at least the amount of free mints being used" ); uint32 purchaseAmount = uint32(_amount - _fkFreeMintTokenIds.length); if (msg.value > PRICE * purchaseAmount) { payable(msg.sender).transfer(msg.value - (PRICE * purchaseAmount)); // Refund if sent more than required } if (_fkFreeMintTokenIds.length > 0) { _fkFreeMint(_fkFreeMintTokenIds); } if (purchaseAmount > 0) { _fkPaidMint(_fkPresaleTokenIds, purchaseAmount); } } // Giveaway function function giveaway(address[] memory _toArray, uint32 _amount) external onlyOwner nonReentrant { require(_amount > 0, "Must mint at least 1"); require( _toArray.length * _amount <= 100, "Limited to 100 giveaways per transaction" ); require( _toArray.length * _amount <= (TOTAL_SUPPLY - tokenCount), "Exceeds token supply" ); uint256 fromId = tokenCount + 1; uint256 toId = tokenCount + (_toArray.length * _amount); for (uint256 i; i < _toArray.length; i++) { _mintPrivate(_toArray[i], _amount); } emit Minted(fromId, toId); } // Provably Random // Set the first provenance hash and extract a seed to shuffle the list // Shuffle the list // Set the final provenance hash function setFirstProvenanceHash(bytes32 _provenanceHash) external onlyOwner returns (uint256) { // Once firstProvenanceHash is set it is impossible to change it or the randomSeed require(firstProvenanceHash == 0, "First Provenance hash already set"); firstProvenanceHash = _provenanceHash; randomSeed = uint256( keccak256(abi.encodePacked(block.timestamp, block.difficulty)) ); return randomSeed; } function setFinalProvenanceHash(bytes32 _provenanceHash) external onlyOwner { // Once finalProvenanceHash is set it is impossible to change it require(finalProvenanceHash == 0, "Final Provenance hash already set"); finalProvenanceHash = _provenanceHash; emit SetProvenance(_provenanceHash); } // Setting presale state function startPresale() external onlyOwner { require(!saleHasEnded, "Sale has ended"); require(!preSaleStarted, "Presale has already been started"); preSaleStarted = true; isPresaleActive = true; emit PresaleBegins(); } function pausePresale(bool _state) external onlyOwner { require(!saleHasEnded, "Sale has ended"); require(preSaleStarted, "Presale must be started"); require( !saleStarted, "Cannot change presale state when sale has started" ); isPresaleActive = !_state; } // Setting sale state function startSale() external onlyOwner { require(!saleHasEnded, "Sale has ended"); require(!saleStarted, "Sale has already been started"); require(preSaleStarted, "Presale must be started before sale"); saleStarted = true; isSaleActive = true; isPresaleActive = false; emit SaleBegins(); } function pauseSale(bool _state) external onlyOwner { require(!saleHasEnded, "Sale has ended"); require(preSaleStarted && saleStarted, "Sale must be started"); isSaleActive = !_state; } function endSale() external onlyOwner { require(!saleHasEnded, "Sale has ended"); isSaleActive = false; isPresaleActive = false; saleHasEnded = true; emit SaleEnds(); } // Contract & token metadata function setBaseURI(string memory _uri) public onlyOwner { require( bytes(_uri)[bytes(_uri).length - 1] == bytes1("/"), "Must set trailing slash" ); baseURI = _uri; emit SetBaseURI(_uri); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, "token/", tokenId.toString())); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(baseURI, "contract")); } // Withdrawal function withdrawAll() external onlyOwner { require( withdrawalAddress != address(0), "Set a valid withdrawal address" ); require(address(this).balance != 0, "Balance is zero"); require(payable(withdrawalAddress).send(address(this).balance)); } function setWithdrawalAddress(address _withdrawalAddress) external onlyOwner { require( _withdrawalAddress != address(0), "Set a valid withdrawal address" ); withdrawalAddress = _withdrawalAddress; } // Approved to burn function burn(uint256 tokenId) public { require( _isApprovedOrOwner(msg.sender, tokenId) || msg.sender == magicContractAddress, "Caller is not owner nor approved" ); _tokenMintedAt[tokenId] = 0; _tokenLastTransferredAt[tokenId] = 0; _burn(tokenId); } function setMagicContractAddress(address _approvedAddress) external onlyOwner { magicContractAddress = _approvedAddress; emit MagicContractAddress(_approvedAddress); } // Token Timings function tokenMintedAt(uint256 _tokenId) external view returns (uint256 timestamp) { require(_exists(_tokenId), "Minted time query for nonexistent token"); return _tokenMintedAt[_tokenId]; } function tokenLastTransferredAt(uint256 _tokenId) external view returns (uint256 timestamp) { require(_exists(_tokenId), "Transfer time query for nonexistent token"); return _tokenLastTransferredAt[_tokenId]; } // Magic Moment function setMagicId(uint256 _tokenId, uint256 _magicId) external { require(msg.sender == magicContractAddress, "Caller is not approved"); require(_exists(_tokenId), "Magic operation for nonexistent token"); _magic[_tokenId] = _magicId; } function getMagicId(uint256 _tokenId) external view returns (uint256 magicId) { require(_exists(_tokenId), "Magic query for nonexistent token"); return _magic[_tokenId]; } // Extra Operations function arrayContains(uint256[] memory array, uint256[] memory contains) private pure returns (bool) { if (array.length < contains.length) return false; uint32 containedCount; for (uint32 i; i < array.length; i++) { for (uint32 j; j < contains.length; j++) { if (array[i] == contains[j]) { containedCount++; } } } if (containedCount != contains.length) return false; return true; } // Storing the last token transfer timestamp function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal virtual override(ERC721, ERC721Enumerable) { _tokenLastTransferredAt[_tokenId] = block.timestamp; super._beforeTokenTransfer(_from, _to, _tokenId); } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, ITFKFreeMintable, Royalty) returns (bool) { return interfaceId == type(IITFKFreeMintable).interfaceId || interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT 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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // Contracts import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // Interfaces import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./IImpactTheoryFoundersKey.sol"; import "./IITFKPeer.sol"; import "./IITFKFreeMintable.sol"; abstract contract ITFKFreeMintable is ERC165, ERC721 { IImpactTheoryFoundersKey public itfk; IITFKPeer public itfkPeer; constructor(address _itfkContractAddress, address _itfkPeerContractAddress) { itfk = IImpactTheoryFoundersKey(_itfkContractAddress); itfkPeer = IITFKPeer(_itfkPeerContractAddress); } function fkMint( uint256[] memory _fkPresaleTokenIds, uint256[] memory _fkFreeMintTokenIds, uint32 _amount, string memory _nonce, bytes memory _signature ) external payable virtual; function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, ERC721) returns (bool) { return interfaceId == type(IITFKFreeMintable).interfaceId || interfaceId == type(IERC721).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC2981.sol"; abstract contract Royalty is Ownable, ERC165, IERC2981 { address public royaltyReceiver; uint32 public royaltyBasisPoints; // A integer representing 1/100th of 1% (fixed point with 100 = 1.00%) constructor(address _receiver, uint32 _basisPoints) { royaltyReceiver = _receiver; royaltyBasisPoints = _basisPoints; } function setRoyaltyReceiver(address _receiver) external virtual onlyOwner { royaltyReceiver = _receiver; } function setRoyaltyBasisPoints(uint32 _basisPoints) external virtual onlyOwner { royaltyBasisPoints = _basisPoints; } function royaltyInfo(uint256, uint256 _salePrice) public view virtual override returns (address receiver, uint256 amount) { // All tokens return the same royalty amount to the receiver uint256 _royaltyAmount = (_salePrice * royaltyBasisPoints) / 10000; // Normalises in basis points reference. (10000 = 100.00%) return (royaltyReceiver, _royaltyAmount); } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT 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 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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IImpactTheoryFoundersKey is IERC721Enumerable { struct Tier { uint256 id; string name; } function tokenTier(uint256) external view returns (uint256 tierId, string memory tierName); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // A simple interface interface IITFKPeer { function addFreeMintableContracts(address[] memory _contracts) external; function getFreeMintsRemaining(uint256 _tokenId) external view returns (uint8); function updateFreeMintAllocation(uint256 _tokenId) external; function getFoundersKeysByTierIds(address _wallet, uint8 _includeTier) external view returns (uint256[] memory fks); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface IITFKFreeMintable is IERC165 { function fkMint( uint256[] memory _fkPresaleTokenIds, uint256[] memory _fkFreeMintTokenIds, uint32 _amount, string memory _nonce, bytes memory _signature ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the NFT Royalty Standard /// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signerAddresss","type":"address"},{"internalType":"address","name":"_itfk","type":"address"},{"internalType":"address","name":"_itfkPeer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"approved","type":"address"}],"name":"MagicContractAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toId","type":"uint256"}],"name":"Minted","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":[],"name":"PresaleBegins","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleBegins","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleEnds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"provenance","type":"bytes32"}],"name":"SetProvenance","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":"MINT_LIMIT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalProvenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstProvenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_fkPresaleTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_fkFreeMintTokenIds","type":"uint256[]"},{"internalType":"uint32","name":"_amount","type":"uint32"},{"internalType":"string","name":"_nonce","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"fkMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fkUsage","outputs":[{"internalType":"bool","name":"freeMint","type":"bool"},{"internalType":"bool","name":"presale","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMagicId","outputs":[{"internalType":"uint256","name":"magicId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_toArray","type":"address[]"},{"internalType":"uint32","name":"_amount","type":"uint32"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","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":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itfk","outputs":[{"internalType":"contract IImpactTheoryFoundersKey","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itfkPeer","outputs":[{"internalType":"contract IITFKPeer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magicContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"},{"internalType":"string","name":"_nonce","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pausePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBasisPoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleHasEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"}],"name":"setFinalProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"}],"name":"setFirstProvenanceHash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedAddress","type":"address"}],"name":"setMagicContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_magicId","type":"uint256"}],"name":"setMagicId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_basisPoints","type":"uint32"}],"name":"setRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenLastTransferredAt","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenMintedAt","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052601960808190527f68747470733a2f2f6170692e6d657272796d6f647a2e696f2f0000000000000060a09081526200004091600f919062000214565b50601580546001600160a01b03191673dad835097e934a3b7d0b8528cc6a29d58ba1d308179055601b805464ffffffffff191690553480156200008257600080fd5b506040516200528038038062005280833981016040819052620000a591620002d7565b306101f483836040518060400160405280600a81526020016926b2b9393c9026b7b23d60b11b815250604051806040016040528060028152602001614d4d60f01b81525062000103620000fd620001c060201b60201c565b620001c4565b81516200011890600190602085019062000214565b5080516200012e90600290602084019062000214565b50506001600b5550600c80546001600160a01b039384166001600160a01b031991821617909155600d805492841692909116919091179055600e805463ffffffff909316600160a01b026001600160c01b03199093169382169390931791909117909155601080549490911664010000000002600160201b600160c01b031990941693909317909255506200035d9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002229062000320565b90600052602060002090601f01602090048101928262000246576000855562000291565b82601f106200026157805160ff191683800117855562000291565b8280016001018555821562000291579182015b828111156200029157825182559160200191906001019062000274565b506200029f929150620002a3565b5090565b5b808211156200029f5760008155600101620002a4565b80516001600160a01b0381168114620002d257600080fd5b919050565b600080600060608486031215620002ec578283fd5b620002f784620002ba565b92506200030760208501620002ba565b91506200031760408501620002ba565b90509250925092565b600181811c908216806200033557607f821691505b602082108114156200035757634e487b7160e01b600052602260045260246000fd5b50919050565b614f13806200036d6000396000f3fe6080604052600436106103a65760003560e01c80636352211e116101e75780639fbc87131161010d578063d7299ef7116100a0578063e8a3d4851161006f578063e8a3d48514610ad3578063e985e9c514610ae8578063f2bcd02214610b31578063f2fde38b14610b5157600080fd5b8063d7299ef714610a23578063db26b29b14610a43578063df5981df14610a93578063e590996014610ab357600080fd5b8063c87b56dd116100dc578063c87b56dd146109a3578063cb48fc8c146109c3578063d0912262146109e3578063d3ac2b9614610a0357600080fd5b80639fbc87131461092e578063a22cb4651461094e578063b66a0e5d1461096e578063b88d4fde1461098357600080fd5b806376772cf8116101855780638da5cb5b116101545780638da5cb5b146108c55780638dc251e3146108e3578063902d55a51461090357806395d89b411461091957600080fd5b806376772cf81461085f5780637b778d7b1461087f578063853828b6146108955780638d859f3e146108aa57600080fd5b806370a08231116101c157806370a08231146107e9578063715018a61461080957806372cf3c711461081e578063733e193c1461083e57600080fd5b80636352211e1461078f57806364a5cbe9146107af578063690cf0d1146107cf57600080fd5b80632a55205a116102cc5780634369f4e51161026a578063564566a811610239578063564566a81461071c57806356db4e151461073d5780635c474f9e1461075057806360d938dc1461077057600080fd5b80634369f4e51461069c5780634954723b146106bc5780634f6ccce7146106dc57806355f804b3146106fc57600080fd5b80633ac34bcc116102a65780633ac34bcc1461062257806342260b5d1461063857806342842e0e1461065c57806342966c681461067c57600080fd5b80632a55205a146105ae5780632f745c59146105ed578063380d831b1461060d57600080fd5b8063095ea7b3116103445780631cf015c6116103135780631cf015c61461052e57806321b8092e1461054e57806323b872dd1461056e57806328c7d7991461058e57600080fd5b8063095ea7b3146104b55780630b747d91146104d55780630cfed2a2146104f957806318160ddd1461051957600080fd5b806304c98b2b1161038057806304c98b2b1461043357806306fdde0314610448578063081812fc1461046a578063089ee40b146104a257600080fd5b806301ffc9a7146103b257806302775240146103e7578063046dc1661461041157600080fd5b366103ad57005b600080fd5b3480156103be57600080fd5b506103d26103cd3660046147c2565b610b71565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc600f81565b60405163ffffffff90911681526020016103de565b34801561041d57600080fd5b5061043161042c366004614452565b610bb7565b005b34801561043f57600080fd5b50610431610c17565b34801561045457600080fd5b5061045d610cf8565b6040516103de9190614aba565b34801561047657600080fd5b5061048a6104853660046147aa565b610d8a565b6040516001600160a01b0390911681526020016103de565b6104316104b0366004614884565b610e12565b3480156104c157600080fd5b506104316104d036600461456f565b61127b565b3480156104e157600080fd5b506104eb60195481565b6040519081526020016103de565b34801561050557600080fd5b50610431610514366004614790565b611391565b34801561052557600080fd5b506009546104eb565b34801561053a57600080fd5b5061043161054936600461484e565b61145d565b34801561055a57600080fd5b50610431610569366004614452565b6114ad565b34801561057a57600080fd5b506104316105893660046144a5565b61154f565b34801561059a57600080fd5b506104eb6105a93660046147aa565b611580565b3480156105ba57600080fd5b506105ce6105c936600461482d565b6115f4565b604080516001600160a01b0390931683526020830191909152016103de565b3480156105f957600080fd5b506104eb61060836600461456f565b61163c565b34801561061957600080fd5b506104316116d2565b34801561062e57600080fd5b506104eb60185481565b34801561064457600080fd5b50600e546103fc90600160a01b900463ffffffff1681565b34801561066857600080fd5b506104316106773660046144a5565b611765565b34801561068857600080fd5b506104316106973660046147aa565b611780565b3480156106a857600080fd5b506104eb6106b73660046147aa565b611813565b3480156106c857600080fd5b50600d5461048a906001600160a01b031681565b3480156106e857600080fd5b506104eb6106f73660046147aa565b61188f565b34801561070857600080fd5b506104316107173660046147fa565b611930565b34801561072857600080fd5b50601b546103d2906301000000900460ff1681565b61043161074b3660046146d7565b611a38565b34801561075c57600080fd5b50601b546103d29062010000900460ff1681565b34801561077c57600080fd5b50601b546103d290610100900460ff1681565b34801561079b57600080fd5b5061048a6107aa3660046147aa565b6120f5565b3480156107bb57600080fd5b506104316107ca366004614598565b61216c565b3480156107db57600080fd5b50601b546103d29060ff1681565b3480156107f557600080fd5b506104eb610804366004614452565b6123b4565b34801561081557600080fd5b5061043161243b565b34801561082a57600080fd5b50600c5461048a906001600160a01b031681565b34801561084a57600080fd5b50601b546103d290600160201b900460ff1681565b34801561086b57600080fd5b506104eb61087a3660046147aa565b612471565b34801561088b57600080fd5b506104eb601a5481565b3480156108a157600080fd5b506104316124eb565b3480156108b657600080fd5b506104eb66f8b0a10e47000081565b3480156108d157600080fd5b506000546001600160a01b031661048a565b3480156108ef57600080fd5b506104316108fe366004614452565b6125dd565b34801561090f57600080fd5b506103fc61271081565b34801561092557600080fd5b5061045d612629565b34801561093a57600080fd5b50600e5461048a906001600160a01b031681565b34801561095a57600080fd5b50610431610969366004614546565b612638565b34801561097a57600080fd5b506104316126fd565b34801561098f57600080fd5b5061043161099e3660046144e0565b612846565b3480156109af57600080fd5b5061045d6109be3660046147aa565b61287e565b3480156109cf57600080fd5b506104316109de3660046147aa565b612907565b3480156109ef57600080fd5b506104316109fe36600461482d565b6129c0565b348015610a0f57600080fd5b50610431610a1e366004614452565b612a88565b348015610a2f57600080fd5b50610431610a3e366004614790565b612b00565b348015610a4f57600080fd5b50610a7c610a5e3660046147aa565b60146020526000908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152016103de565b348015610a9f57600080fd5b506104eb610aae3660046147aa565b612c30565b348015610abf57600080fd5b5060165461048a906001600160a01b031681565b348015610adf57600080fd5b5061045d612cef565b348015610af457600080fd5b506103d2610b03366004614473565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b3d57600080fd5b5060155461048a906001600160a01b031681565b348015610b5d57600080fd5b50610431610b6c366004614452565b612d17565b60006001600160e01b031982166356db4e1560e01b1480610ba257506001600160e01b0319821663152a902d60e11b145b80610bb15750610bb182612daf565b92915050565b6000546001600160a01b03163314610bea5760405162461bcd60e51b8152600401610be190614b47565b60405180910390fd5b601080546001600160a01b03909216600160201b02640100000000600160c01b0319909216919091179055565b6000546001600160a01b03163314610c415760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff1615610c6b5760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff1615610cbe5760405162461bcd60e51b815260206004820181905260248201527f50726573616c652068617320616c7265616479206265656e20737461727465646044820152606401610be1565b601b805461ffff19166101011790556040517fe2b7f85584b95f5aa9dbdf18d967f423a23e675d9e1e1dc7314d4f71086ae25890600090a1565b606060018054610d0790614dc8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3390614dc8565b8015610d805780601f10610d5557610100808354040283529160200191610d80565b820191906000526020600020905b815481529060010190602001808311610d6357829003601f168201915b5050505050905090565b6000610d9582612dd4565b610df65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610be1565b506000908152600560205260409020546001600160a01b031690565b8260ff168282601182604051610e289190614a06565b9081526040519081900360200190205460ff1615610e7d5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b6044820152606401610be1565b601060049054906101000a90046001600160a01b03166001600160a01b0316610f1e82610f18338787604051602001610eb8939291906149bb565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90612df1565b6001600160a01b031614610f745760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e640000006044820152606401610be1565b6001601183604051610f869190614a06565b908152604051908190036020019020805491151560ff19909216919091179055600b5460021415610fc95760405162461bcd60e51b8152600401610be190614c61565b6002600b55601b546301000000900460ff166110195760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610be1565b60105461102e9063ffffffff16612710614d77565b63ffffffff168660ff16111561107a5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b6044820152606401610be1565b60008660ff16116110c85760405162461bcd60e51b8152602060048201526018602482015277596f75206d757374206d696e74206174206c65617374203160401b6044820152606401610be1565b600f60ff871611156111355760405162461bcd60e51b815260206004820152603060248201527f43616e6e6f74206d696e74206d6f7265207468616e204d494e545f4c494d495460448201526f103832b9103a3930b739b0b1ba34b7b760811b6064820152608401610be1565b600f60ff8716611144336123b4565b61114e9190614ced565b111561116c5760405162461bcd60e51b8152600401610be190614b7c565b61118060ff871666f8b0a10e470000614d41565b34101561119f5760405162461bcd60e51b8152600401610be190614bcb565b6111b360ff871666f8b0a10e470000614d41565b34111561120657336108fc6111d260ff891666f8b0a10e470000614d41565b6111dc9034614d60565b6040518115909202916000818181858888f19350505050158015611204573d6000803e3d6000fd5b505b60105460009061121d9063ffffffff166001614d05565b60105463ffffffff918216925060009161123c9160ff8b169116614d05565b63ffffffff169050611251338960ff16612e15565b60405181908390600080516020614ebe83398151915290600090a350506001600b55505050505050565b6000611286826120f5565b9050806001600160a01b0316836001600160a01b031614156112f45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610be1565b336001600160a01b038216148061131057506113108133610b03565b6113825760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610be1565b61138c8383612e8f565b505050565b6000546001600160a01b031633146113bb5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156113e55760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff1680156113ff5750601b5462010000900460ff165b6114425760405162461bcd60e51b815260206004820152601460248201527314d85b19481b5d5cdd081899481cdd185c9d195960621b6044820152606401610be1565b601b805463ff00000019169115630100000002919091179055565b6000546001600160a01b031633146114875760405162461bcd60e51b8152600401610be190614b47565b600e805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6000546001600160a01b031633146114d75760405162461bcd60e51b8152600401610be190614b47565b6001600160a01b03811661152d5760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610be1565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6115593382612efd565b6115755760405162461bcd60e51b8152600401610be190614c10565b61138c838383612fe7565b600061158b82612dd4565b6115e15760405162461bcd60e51b815260206004820152602160248201527f4d6167696320717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610be1565b5060009081526017602052604090205490565b600e54600090819081906127109061161990600160a01b900463ffffffff1686614d41565b6116239190614d2d565b600e546001600160a01b031693509150505b9250929050565b6000611647836123b4565b82106116a95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610be1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146116fc5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156117265760405162461bcd60e51b8152600401610be190614b1f565b601b805464ffff00ff001916600160201b1790556040517fdcec425145dddcc9da423c0875cf787d092cc8b58dc6e649ff5c063503f6e8d590600090a1565b61138c83838360405180602001604052806000815250612846565b61178a3382612efd565b8061179f57506016546001600160a01b031633145b6117eb5760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610be1565b6000818152601260209081526040808320839055601390915281205561181081613192565b50565b600061181e82612dd4565b61187c5760405162461bcd60e51b815260206004820152602960248201527f5472616e736665722074696d6520717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610be1565b5060009081526013602052604090205490565b600061189a60095490565b82106118fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610be1565b6009828154811061191e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b0316331461195a5760405162461bcd60e51b8152600401610be190614b47565b8051602f60f81b90829061197090600190614d60565b8151811061198e57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916146119ea5760405162461bcd60e51b815260206004820152601760248201527f4d7573742073657420747261696c696e6720736c6173680000000000000000006044820152606401610be1565b80516119fd90600f9060208401906142a4565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051611a2d9190614aba565b60405180910390a150565b828282601182604051611a4b9190614a06565b9081526040519081900360200190205460ff1615611aa05760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b6044820152606401610be1565b601060049054906101000a90046001600160a01b03166001600160a01b0316611adb82610f18338787604051602001610eb8939291906149bb565b6001600160a01b031614611b315760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e640000006044820152606401610be1565b6001601183604051611b439190614a06565b908152604051908190036020019020805491151560ff19909216919091179055600b5460021415611b865760405162461bcd60e51b8152600401610be190614c61565b6002600b55601b54610100900460ff1680611baa5750601b546301000000900460ff165b611be75760405162461bcd60e51b815260206004820152600e60248201526d4e6f2073616c652061637469766560901b6044820152606401610be1565b600d54604051632b8b93f960e11b8152336004820152600360248201526000916001600160a01b03169063571727f29060440160006040518083038186803b158015611c3257600080fd5b505afa158015611c46573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c6e9190810190614644565b9050611c7a8189613239565b8015611c8b5750611c8b818a613239565b611cee5760405162461bcd60e51b815260206004820152602e60248201527f4e6f74206f776e6572206f66204865726f6963206f72204c6567656e6461727960448201526d20466f756e6465722773204b657960901b6064820152608401610be1565b601b54610100900460ff1615611e9b57611d088989613239565b611d675760405162461bcd60e51b815260206004820152602a60248201527f46726565206d696e74696e6720746f6b656e73206d7573742062652070726573604482015269616c6520746f6b656e7360b01b6064820152608401610be1565b88518763ffffffff1614611dcd5760405162461bcd60e51b815260206004820152602760248201527f31206d696e742070657220466f756e6465722773204b657920647572696e672060448201526670726573616c6560c81b6064820152608401610be1565b60005b8951811015611e9557601460008b8381518110611dfd57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160019054906101000a900460ff1615611e835760405162461bcd60e51b815260206004820152602960248201527f466f756e6465722773204b657920616c7265616479207573656420647572696e604482015268672070726573616c6560b81b6064820152608401610be1565b80611e8d81614e03565b915050611dd0565b50611eec565b60008763ffffffff1611611eec5760405162461bcd60e51b8152602060048201526018602482015277596f75206d757374206d696e74206174206c65617374203160401b6044820152606401610be1565b601054611f019063ffffffff16612710614d77565b63ffffffff168763ffffffff161115611f505760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b6044820152606401610be1565b600f63ffffffff8816611f62336123b4565b611f6c9190614ced565b111580611f93575080518763ffffffff16611f86336123b4565b611f909190614ced565b11155b611faf5760405162461bcd60e51b8152600401610be190614b7c565b87518763ffffffff16101561203a5760405162461bcd60e51b815260206004820152604560248201527f596f75206d75737420617474656d707420746f206d696e74206174206c65617360448201527f742074686520616d6f756e74206f662066726565206d696e7473206265696e67606482015264081d5cd95960da1b608482015260a401610be1565b600088518863ffffffff1661204f9190614d60565b905061206863ffffffff821666f8b0a10e470000614d41565b3411156120be57336108fc61208a63ffffffff841666f8b0a10e470000614d41565b6120949034614d60565b6040518115909202916000818181858888f193505050501580156120bc573d6000803e3d6000fd5b505b8851156120ce576120ce8961332a565b63ffffffff8116156120e4576120e48a82613685565b50506001600b555050505050505050565b6000818152600360205260408120546001600160a01b031680610bb15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610be1565b6000546001600160a01b031633146121965760405162461bcd60e51b8152600401610be190614b47565b6002600b5414156121b95760405162461bcd60e51b8152600401610be190614c61565b6002600b5563ffffffff81166122085760405162461bcd60e51b81526020600482015260146024820152734d757374206d696e74206174206c65617374203160601b6044820152606401610be1565b60648163ffffffff16835161221d9190614d41565b111561227c5760405162461bcd60e51b815260206004820152602860248201527f4c696d6974656420746f203130302067697665617761797320706572207472616044820152673739b0b1ba34b7b760c11b6064820152608401610be1565b6010546122919063ffffffff16612710614d77565b63ffffffff168163ffffffff1683516122aa9190614d41565b11156122ef5760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f6b656e20737570706c7960601b6044820152606401610be1565b6010546000906123069063ffffffff166001614d05565b63ffffffff16905060008263ffffffff1684516123239190614d41565b601054612336919063ffffffff16614ced565b905060005b845181101561238d5761237b85828151811061236757634e487b7160e01b600052603260045260246000fd5b60200260200101518563ffffffff16612e15565b8061238581614e03565b91505061233b565b5060405181908390600080516020614ebe83398151915290600090a350506001600b555050565b60006001600160a01b03821661241f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610be1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146124655760405162461bcd60e51b8152600401610be190614b47565b61246f600061379d565b565b600061247c82612dd4565b6124d85760405162461bcd60e51b815260206004820152602760248201527f4d696e7465642074696d6520717565727920666f72206e6f6e6578697374656e6044820152663a103a37b5b2b760c91b6064820152608401610be1565b5060009081526012602052604090205490565b6000546001600160a01b031633146125155760405162461bcd60e51b8152600401610be190614b47565b6015546001600160a01b031661256d5760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610be1565b476125ac5760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610be1565b6015546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061246f57600080fd5b6000546001600160a01b031633146126075760405162461bcd60e51b8152600401610be190614b47565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060028054610d0790614dc8565b6001600160a01b0382163314156126915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610be1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146127275760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156127515760405162461bcd60e51b8152600401610be190614b1f565b601b5462010000900460ff16156127aa5760405162461bcd60e51b815260206004820152601d60248201527f53616c652068617320616c7265616479206265656e20737461727465640000006044820152606401610be1565b601b5460ff166128085760405162461bcd60e51b815260206004820152602360248201527f50726573616c65206d7573742062652073746172746564206265666f72652073604482015262616c6560e81b6064820152608401610be1565b601b805463ffffff00191663010100001790556040517f771cfe172460b7d64cc46cca57a1e1f40f52b47cf1d16fe30c78a2935b3dd58090600090a1565b6128503383612efd565b61286c5760405162461bcd60e51b8152600401610be190614c10565b612878848484846137ed565b50505050565b606061288982612dd4565b6128d55760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610be1565b600f6128e083613820565b6040516020016128f1929190614a22565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146129315760405162461bcd60e51b8152600401610be190614b47565b601a541561298b5760405162461bcd60e51b815260206004820152602160248201527f46696e616c2050726f76656e616e6365206861736820616c72656164792073656044820152601d60fa1b6064820152608401610be1565b601a8190556040518181527f7646ddbc743a774a32f9db8d63fbce5dcf94215c1fb45100a750b1245894736490602001611a2d565b6016546001600160a01b03163314612a135760405162461bcd60e51b815260206004820152601660248201527510d85b1b195c881a5cc81b9bdd08185c1c1c9bdd995960521b6044820152606401610be1565b612a1c82612dd4565b612a765760405162461bcd60e51b815260206004820152602560248201527f4d61676963206f7065726174696f6e20666f72206e6f6e6578697374656e74206044820152643a37b5b2b760d91b6064820152608401610be1565b60009182526017602052604090912055565b6000546001600160a01b03163314612ab25760405162461bcd60e51b8152600401610be190614b47565b601680546001600160a01b0319166001600160a01b0383169081179091556040519081527f117f6aee1723f8883c7770294d72902da49eee2a31780acdafc49f75b637ee5290602001611a2d565b6000546001600160a01b03163314612b2a5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff1615612b545760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff16612ba65760405162461bcd60e51b815260206004820152601760248201527f50726573616c65206d75737420626520737461727465640000000000000000006044820152606401610be1565b601b5462010000900460ff1615612c195760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f74206368616e67652070726573616c65207374617465207768656e604482015270081cd85b19481a185cc81cdd185c9d1959607a1b6064820152608401610be1565b601b805461ff001916911561010002919091179055565b600080546001600160a01b03163314612c5b5760405162461bcd60e51b8152600401610be190614b47565b60185415612cb55760405162461bcd60e51b815260206004820152602160248201527f46697273742050726f76656e616e6365206861736820616c72656164792073656044820152601d60fa1b6064820152608401610be1565b506018819055604080514260208083019190915244828401528251808303840181526060909201909252805191012060198190555b919050565b6060600f604051602001612d039190614a59565b604051602081830303815290604052905090565b6000546001600160a01b03163314612d415760405162461bcd60e51b8152600401610be190614b47565b6001600160a01b038116612da65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be1565b6118108161379d565b60006001600160e01b0319821663152a902d60e11b1480610bb15750610bb18261393a565b6000908152600360205260409020546001600160a01b0316151590565b6000806000612e00858561397a565b91509150612e0d816139e7565b509392505050565b60005b8181101561138c576010805463ffffffff16906000612e3683614e1e565b82546101009290920a63ffffffff818102199093169183160217909155601054612e639250859116613be8565b60105463ffffffff16600090815260126020526040902042905580612e8781614e03565b915050612e18565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ec4826120f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612f0882612dd4565b612f695760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610be1565b6000612f74836120f5565b9050806001600160a01b0316846001600160a01b03161480612faf5750836001600160a01b0316612fa484610d8a565b6001600160a01b0316145b80612fdf57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ffa826120f5565b6001600160a01b0316146130625760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610be1565b6001600160a01b0382166130c45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610be1565b6130cf838383613c06565b6130da600082612e8f565b6001600160a01b0383166000908152600460205260408120805460019290613103908490614d60565b90915550506001600160a01b0382166000908152600460205260408120805460019290613131908490614ced565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061319d826120f5565b90506131ab81600084613c06565b6131b6600083612e8f565b6001600160a01b03811660009081526004602052604081208054600192906131df908490614d60565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081518351101561324d57506000610bb1565b6000805b84518163ffffffff1610156133075760005b84518163ffffffff1610156132f457848163ffffffff168151811061329857634e487b7160e01b600052603260045260246000fd5b6020026020010151868363ffffffff16815181106132c657634e487b7160e01b600052603260045260246000fd5b602002602001015114156132e257826132de81614e1e565b9350505b806132ec81614e1e565b915050613263565b50806132ff81614e1e565b915050613251565b5082518163ffffffff1614613320576000915050610bb1565b5060019392505050565b60005b8151811015613623576014600083838151811061335a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff16156133de5760405162461bcd60e51b815260206004820152603060248201527f312066726565206d696e74206f6e207468697320636f6c6c656374696f6e207060448201526f657220466f756e6465722773204b657960801b6064820152608401610be1565b600d5482516000916001600160a01b03169063230a696c9085908590811061341657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161343c91815260200190565b60206040518083038186803b15801561345457600080fd5b505afa158015613468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348c9190614868565b60ff16116134dc5760405162461bcd60e51b815260206004820152601760248201527f4e6f2066726565206d696e747320617661696c61626c650000000000000000006044820152606401610be1565b60016014600084848151811061350257634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060016014600084848151811061355857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020805460ff1916911515919091179055600d5482516001600160a01b039091169063134c4b1c908490849081106135b857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016135de91815260200190565b600060405180830381600087803b1580156135f857600080fd5b505af115801561360c573d6000803e3d6000fd5b50505050808061361b90614e03565b91505061332d565b5060105460009061363b9063ffffffff166001614d05565b825160105463ffffffff9283169350600092613658929116614ced565b9050613665338451612e15565b60405181908390600080516020614ebe83398151915290600090a3505050565b61369c63ffffffff821666f8b0a10e470000614d41565b3410156136bb5760405162461bcd60e51b8152600401610be190614bcb565b60005b8251811015613730576001601460008584815181106136ed57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160016101000a81548160ff021916908315150217905550808061372890614e03565b9150506136be565b506010546000906137489063ffffffff166001614d05565b60105463ffffffff918216925060009161376491859116614d05565b63ffffffff16905061377c338463ffffffff16612e15565b60405181908390600080516020614ebe83398151915290600090a350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6137f8848484612fe7565b61380484848484613c22565b6128785760405162461bcd60e51b8152600401610be190614acd565b6060816138445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561386e578061385881614e03565b91506138679050600a83614d2d565b9150613848565b60008167ffffffffffffffff81111561389757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156138c1576020820181803683370190505b5090505b8415612fdf576138d6600183614d60565b91506138e3600a86614e42565b6138ee906030614ced565b60f81b81838151811061391157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613933600a86614d2d565b94506138c5565b60006001600160e01b031982166356db4e1560e01b148061396b57506001600160e01b031982166380ac58cd60e01b145b80610bb15750610bb182613d2f565b6000808251604114156139b15760208301516040840151606085015160001a6139a587828585613d54565b94509450505050611635565b8251604014156139db57602083015160408401516139d0868383613e41565b935093505050611635565b50600090506002611635565b6000816004811115613a0957634e487b7160e01b600052602160045260246000fd5b1415613a125750565b6001816004811115613a3457634e487b7160e01b600052602160045260246000fd5b1415613a825760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610be1565b6002816004811115613aa457634e487b7160e01b600052602160045260246000fd5b1415613af25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610be1565b6003816004811115613b1457634e487b7160e01b600052602160045260246000fd5b1415613b6d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610be1565b6004816004811115613b8f57634e487b7160e01b600052602160045260246000fd5b14156118105760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610be1565b613c02828260405180602001604052806000815250613e70565b5050565b600081815260136020526040902042905561138c838383613ea3565b60006001600160a01b0384163b15613d2457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c66903390899088908890600401614a7d565b602060405180830381600087803b158015613c8057600080fd5b505af1925050508015613cb0575060408051601f3d908101601f19168201909252613cad918101906147de565b60015b613d0a573d808015613cde576040519150601f19603f3d011682016040523d82523d6000602084013e613ce3565b606091505b508051613d025760405162461bcd60e51b8152600401610be190614acd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fdf565b506001949350505050565b60006001600160e01b0319821663780e9d6360e01b1480610bb15750610bb182613f5b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613d8b5750600090506003613e38565b8460ff16601b14158015613da357508460ff16601c14155b15613db45750600090506004613e38565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e08573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e3157600060019250925050613e38565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01613e6287828885613d54565b935093505050935093915050565b613e7a8383613fab565b613e876000848484613c22565b61138c5760405162461bcd60e51b8152600401610be190614acd565b6001600160a01b038316613efe57613ef981600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f21565b816001600160a01b0316836001600160a01b031614613f2157613f2183826140ea565b6001600160a01b038216613f385761138c81614187565b826001600160a01b0316826001600160a01b03161461138c5761138c8282614260565b60006001600160e01b031982166380ac58cd60e01b1480613f8c57506001600160e01b03198216635b5e139f60e01b145b80610bb157506301ffc9a760e01b6001600160e01b0319831614610bb1565b6001600160a01b0382166140015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610be1565b61400a81612dd4565b156140575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be1565b61406360008383613c06565b6001600160a01b038216600090815260046020526040812080546001929061408c908490614ced565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016140f7846123b4565b6141019190614d60565b600083815260086020526040902054909150808214614154576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061419990600190614d60565b6000838152600a6020526040812054600980549394509092849081106141cf57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600983815481106141fe57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061424457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061426b836123b4565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546142b090614dc8565b90600052602060002090601f0160209004810192826142d25760008555614318565b82601f106142eb57805160ff1916838001178555614318565b82800160010185558215614318579182015b828111156143185782518255916020019190600101906142fd565b50614324929150614328565b5090565b5b808211156143245760008155600101614329565b80356001600160a01b0381168114612cea57600080fd5b600082601f830112614364578081fd5b8135602061437961437483614cc9565b614c98565b80838252828201915082860187848660051b8901011115614398578586fd5b855b858110156143b65781358452928401929084019060010161439a565b5090979650505050505050565b80358015158114612cea57600080fd5b600082601f8301126143e3578081fd5b813567ffffffffffffffff8111156143fd576143fd614e82565b614410601f8201601f1916602001614c98565b818152846020838601011115614424578283fd5b816020850160208301379081016020019190915292915050565b803563ffffffff81168114612cea57600080fd5b600060208284031215614463578081fd5b61446c8261433d565b9392505050565b60008060408385031215614485578081fd5b61448e8361433d565b915061449c6020840161433d565b90509250929050565b6000806000606084860312156144b9578081fd5b6144c28461433d565b92506144d06020850161433d565b9150604084013590509250925092565b600080600080608085870312156144f5578081fd5b6144fe8561433d565b935061450c6020860161433d565b925060408501359150606085013567ffffffffffffffff81111561452e578182fd5b61453a878288016143d3565b91505092959194509250565b60008060408385031215614558578182fd5b6145618361433d565b915061449c602084016143c3565b60008060408385031215614581578182fd5b61458a8361433d565b946020939093013593505050565b600080604083850312156145aa578182fd5b823567ffffffffffffffff8111156145c0578283fd5b8301601f810185136145d0578283fd5b803560206145e061437483614cc9565b80838252828201915082850189848660051b88010111156145ff578788fd5b8795505b84861015614628576146148161433d565b835260019590950194918301918301614603565b509550614638905086820161443e565b93505050509250929050565b60006020808385031215614656578182fd5b825167ffffffffffffffff81111561466c578283fd5b8301601f8101851361467c578283fd5b805161468a61437482614cc9565b80828252848201915084840188868560051b87010111156146a9578687fd5b8694505b838510156146cb5780518352600194909401939185019185016146ad565b50979650505050505050565b600080600080600060a086880312156146ee578283fd5b853567ffffffffffffffff80821115614705578485fd5b61471189838a01614354565b96506020880135915080821115614726578485fd5b61473289838a01614354565b95506147406040890161443e565b94506060880135915080821115614755578283fd5b61476189838a016143d3565b93506080880135915080821115614776578283fd5b50614783888289016143d3565b9150509295509295909350565b6000602082840312156147a1578081fd5b61446c826143c3565b6000602082840312156147bb578081fd5b5035919050565b6000602082840312156147d3578081fd5b813561446c81614e98565b6000602082840312156147ef578081fd5b815161446c81614e98565b60006020828403121561480b578081fd5b813567ffffffffffffffff811115614821578182fd5b612fdf848285016143d3565b6000806040838503121561483f578182fd5b50508035926020909101359150565b60006020828403121561485f578081fd5b61446c8261443e565b600060208284031215614879578081fd5b815161446c81614eae565b600080600060608486031215614898578081fd5b83356148a381614eae565b9250602084013567ffffffffffffffff808211156148bf578283fd5b6148cb878388016143d3565b935060408601359150808211156148e0578283fd5b506148ed868287016143d3565b9150509250925092565b6000815180845261490f816020860160208601614d9c565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061493d57607f831692505b602080841082141561495d57634e487b7160e01b86526022600452602486fd5b8180156149715760018114614982576149af565b60ff198616895284890196506149af565b60008881526020902060005b868110156149a75781548b82015290850190830161498e565b505084890196505b50505050505092915050565b6bffffffffffffffffffffffff198460601b16815263ffffffff60e01b8360e01b166014820152600082516149f7816018850160208701614d9c565b91909101601801949350505050565b60008251614a18818460208701614d9c565b9190910192915050565b6000614a2e8285614923565b65746f6b656e2f60d01b81528351614a4d816006840160208801614d9c565b01600601949350505050565b6000614a658284614923565b6718dbdb9d1c9858dd60c21b81526008019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ab0908301846148f7565b9695505050505050565b60208152600061446c60208301846148f7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d14d85b19481a185cc8195b99195960921b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f416e79206f6e652077616c6c65742063616e6e6f7420686f6c64206d6f72652060408201526e1d1a185b881352539517d312535255608a1b606082015260800190565b60208082526025908201527f496e73756666696369656e742065746820746f2070726f63657373207468652060408201526437b93232b960d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715614cc157614cc1614e82565b604052919050565b600067ffffffffffffffff821115614ce357614ce3614e82565b5060051b60200190565b60008219821115614d0057614d00614e56565b500190565b600063ffffffff808316818516808303821115614d2457614d24614e56565b01949350505050565b600082614d3c57614d3c614e6c565b500490565b6000816000190483118215151615614d5b57614d5b614e56565b500290565b600082821015614d7257614d72614e56565b500390565b600063ffffffff83811690831681811015614d9457614d94614e56565b039392505050565b60005b83811015614db7578181015183820152602001614d9f565b838111156128785750506000910152565b600181811c90821680614ddc57607f821691505b60208210811415614dfd57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e1757614e17614e56565b5060010190565b600063ffffffff80831681811415614e3857614e38614e56565b6001019392505050565b600082614e5157614e51614e6c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461181057600080fd5b60ff8116811461181057600080fdfe8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dda26469706673582212206c77b1708f251991727759cec92623a290186db81fd8d215249bf3bca3e5b19164736f6c6343000804003300000000000000000000000076c32cbafd65bc2dc205754e40aa69788e5b04e0000000000000000000000000e6ef513f7429d92cb54ebd4c14026aeb90849a78000000000000000000000000b340dd62e15ba76434b51b6208ba5e97241d118e
Deployed Bytecode
0x6080604052600436106103a65760003560e01c80636352211e116101e75780639fbc87131161010d578063d7299ef7116100a0578063e8a3d4851161006f578063e8a3d48514610ad3578063e985e9c514610ae8578063f2bcd02214610b31578063f2fde38b14610b5157600080fd5b8063d7299ef714610a23578063db26b29b14610a43578063df5981df14610a93578063e590996014610ab357600080fd5b8063c87b56dd116100dc578063c87b56dd146109a3578063cb48fc8c146109c3578063d0912262146109e3578063d3ac2b9614610a0357600080fd5b80639fbc87131461092e578063a22cb4651461094e578063b66a0e5d1461096e578063b88d4fde1461098357600080fd5b806376772cf8116101855780638da5cb5b116101545780638da5cb5b146108c55780638dc251e3146108e3578063902d55a51461090357806395d89b411461091957600080fd5b806376772cf81461085f5780637b778d7b1461087f578063853828b6146108955780638d859f3e146108aa57600080fd5b806370a08231116101c157806370a08231146107e9578063715018a61461080957806372cf3c711461081e578063733e193c1461083e57600080fd5b80636352211e1461078f57806364a5cbe9146107af578063690cf0d1146107cf57600080fd5b80632a55205a116102cc5780634369f4e51161026a578063564566a811610239578063564566a81461071c57806356db4e151461073d5780635c474f9e1461075057806360d938dc1461077057600080fd5b80634369f4e51461069c5780634954723b146106bc5780634f6ccce7146106dc57806355f804b3146106fc57600080fd5b80633ac34bcc116102a65780633ac34bcc1461062257806342260b5d1461063857806342842e0e1461065c57806342966c681461067c57600080fd5b80632a55205a146105ae5780632f745c59146105ed578063380d831b1461060d57600080fd5b8063095ea7b3116103445780631cf015c6116103135780631cf015c61461052e57806321b8092e1461054e57806323b872dd1461056e57806328c7d7991461058e57600080fd5b8063095ea7b3146104b55780630b747d91146104d55780630cfed2a2146104f957806318160ddd1461051957600080fd5b806304c98b2b1161038057806304c98b2b1461043357806306fdde0314610448578063081812fc1461046a578063089ee40b146104a257600080fd5b806301ffc9a7146103b257806302775240146103e7578063046dc1661461041157600080fd5b366103ad57005b600080fd5b3480156103be57600080fd5b506103d26103cd3660046147c2565b610b71565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc600f81565b60405163ffffffff90911681526020016103de565b34801561041d57600080fd5b5061043161042c366004614452565b610bb7565b005b34801561043f57600080fd5b50610431610c17565b34801561045457600080fd5b5061045d610cf8565b6040516103de9190614aba565b34801561047657600080fd5b5061048a6104853660046147aa565b610d8a565b6040516001600160a01b0390911681526020016103de565b6104316104b0366004614884565b610e12565b3480156104c157600080fd5b506104316104d036600461456f565b61127b565b3480156104e157600080fd5b506104eb60195481565b6040519081526020016103de565b34801561050557600080fd5b50610431610514366004614790565b611391565b34801561052557600080fd5b506009546104eb565b34801561053a57600080fd5b5061043161054936600461484e565b61145d565b34801561055a57600080fd5b50610431610569366004614452565b6114ad565b34801561057a57600080fd5b506104316105893660046144a5565b61154f565b34801561059a57600080fd5b506104eb6105a93660046147aa565b611580565b3480156105ba57600080fd5b506105ce6105c936600461482d565b6115f4565b604080516001600160a01b0390931683526020830191909152016103de565b3480156105f957600080fd5b506104eb61060836600461456f565b61163c565b34801561061957600080fd5b506104316116d2565b34801561062e57600080fd5b506104eb60185481565b34801561064457600080fd5b50600e546103fc90600160a01b900463ffffffff1681565b34801561066857600080fd5b506104316106773660046144a5565b611765565b34801561068857600080fd5b506104316106973660046147aa565b611780565b3480156106a857600080fd5b506104eb6106b73660046147aa565b611813565b3480156106c857600080fd5b50600d5461048a906001600160a01b031681565b3480156106e857600080fd5b506104eb6106f73660046147aa565b61188f565b34801561070857600080fd5b506104316107173660046147fa565b611930565b34801561072857600080fd5b50601b546103d2906301000000900460ff1681565b61043161074b3660046146d7565b611a38565b34801561075c57600080fd5b50601b546103d29062010000900460ff1681565b34801561077c57600080fd5b50601b546103d290610100900460ff1681565b34801561079b57600080fd5b5061048a6107aa3660046147aa565b6120f5565b3480156107bb57600080fd5b506104316107ca366004614598565b61216c565b3480156107db57600080fd5b50601b546103d29060ff1681565b3480156107f557600080fd5b506104eb610804366004614452565b6123b4565b34801561081557600080fd5b5061043161243b565b34801561082a57600080fd5b50600c5461048a906001600160a01b031681565b34801561084a57600080fd5b50601b546103d290600160201b900460ff1681565b34801561086b57600080fd5b506104eb61087a3660046147aa565b612471565b34801561088b57600080fd5b506104eb601a5481565b3480156108a157600080fd5b506104316124eb565b3480156108b657600080fd5b506104eb66f8b0a10e47000081565b3480156108d157600080fd5b506000546001600160a01b031661048a565b3480156108ef57600080fd5b506104316108fe366004614452565b6125dd565b34801561090f57600080fd5b506103fc61271081565b34801561092557600080fd5b5061045d612629565b34801561093a57600080fd5b50600e5461048a906001600160a01b031681565b34801561095a57600080fd5b50610431610969366004614546565b612638565b34801561097a57600080fd5b506104316126fd565b34801561098f57600080fd5b5061043161099e3660046144e0565b612846565b3480156109af57600080fd5b5061045d6109be3660046147aa565b61287e565b3480156109cf57600080fd5b506104316109de3660046147aa565b612907565b3480156109ef57600080fd5b506104316109fe36600461482d565b6129c0565b348015610a0f57600080fd5b50610431610a1e366004614452565b612a88565b348015610a2f57600080fd5b50610431610a3e366004614790565b612b00565b348015610a4f57600080fd5b50610a7c610a5e3660046147aa565b60146020526000908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152016103de565b348015610a9f57600080fd5b506104eb610aae3660046147aa565b612c30565b348015610abf57600080fd5b5060165461048a906001600160a01b031681565b348015610adf57600080fd5b5061045d612cef565b348015610af457600080fd5b506103d2610b03366004614473565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b3d57600080fd5b5060155461048a906001600160a01b031681565b348015610b5d57600080fd5b50610431610b6c366004614452565b612d17565b60006001600160e01b031982166356db4e1560e01b1480610ba257506001600160e01b0319821663152a902d60e11b145b80610bb15750610bb182612daf565b92915050565b6000546001600160a01b03163314610bea5760405162461bcd60e51b8152600401610be190614b47565b60405180910390fd5b601080546001600160a01b03909216600160201b02640100000000600160c01b0319909216919091179055565b6000546001600160a01b03163314610c415760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff1615610c6b5760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff1615610cbe5760405162461bcd60e51b815260206004820181905260248201527f50726573616c652068617320616c7265616479206265656e20737461727465646044820152606401610be1565b601b805461ffff19166101011790556040517fe2b7f85584b95f5aa9dbdf18d967f423a23e675d9e1e1dc7314d4f71086ae25890600090a1565b606060018054610d0790614dc8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3390614dc8565b8015610d805780601f10610d5557610100808354040283529160200191610d80565b820191906000526020600020905b815481529060010190602001808311610d6357829003601f168201915b5050505050905090565b6000610d9582612dd4565b610df65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610be1565b506000908152600560205260409020546001600160a01b031690565b8260ff168282601182604051610e289190614a06565b9081526040519081900360200190205460ff1615610e7d5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b6044820152606401610be1565b601060049054906101000a90046001600160a01b03166001600160a01b0316610f1e82610f18338787604051602001610eb8939291906149bb565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90612df1565b6001600160a01b031614610f745760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e640000006044820152606401610be1565b6001601183604051610f869190614a06565b908152604051908190036020019020805491151560ff19909216919091179055600b5460021415610fc95760405162461bcd60e51b8152600401610be190614c61565b6002600b55601b546301000000900460ff166110195760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610be1565b60105461102e9063ffffffff16612710614d77565b63ffffffff168660ff16111561107a5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b6044820152606401610be1565b60008660ff16116110c85760405162461bcd60e51b8152602060048201526018602482015277596f75206d757374206d696e74206174206c65617374203160401b6044820152606401610be1565b600f60ff871611156111355760405162461bcd60e51b815260206004820152603060248201527f43616e6e6f74206d696e74206d6f7265207468616e204d494e545f4c494d495460448201526f103832b9103a3930b739b0b1ba34b7b760811b6064820152608401610be1565b600f60ff8716611144336123b4565b61114e9190614ced565b111561116c5760405162461bcd60e51b8152600401610be190614b7c565b61118060ff871666f8b0a10e470000614d41565b34101561119f5760405162461bcd60e51b8152600401610be190614bcb565b6111b360ff871666f8b0a10e470000614d41565b34111561120657336108fc6111d260ff891666f8b0a10e470000614d41565b6111dc9034614d60565b6040518115909202916000818181858888f19350505050158015611204573d6000803e3d6000fd5b505b60105460009061121d9063ffffffff166001614d05565b60105463ffffffff918216925060009161123c9160ff8b169116614d05565b63ffffffff169050611251338960ff16612e15565b60405181908390600080516020614ebe83398151915290600090a350506001600b55505050505050565b6000611286826120f5565b9050806001600160a01b0316836001600160a01b031614156112f45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610be1565b336001600160a01b038216148061131057506113108133610b03565b6113825760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610be1565b61138c8383612e8f565b505050565b6000546001600160a01b031633146113bb5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156113e55760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff1680156113ff5750601b5462010000900460ff165b6114425760405162461bcd60e51b815260206004820152601460248201527314d85b19481b5d5cdd081899481cdd185c9d195960621b6044820152606401610be1565b601b805463ff00000019169115630100000002919091179055565b6000546001600160a01b031633146114875760405162461bcd60e51b8152600401610be190614b47565b600e805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6000546001600160a01b031633146114d75760405162461bcd60e51b8152600401610be190614b47565b6001600160a01b03811661152d5760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610be1565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6115593382612efd565b6115755760405162461bcd60e51b8152600401610be190614c10565b61138c838383612fe7565b600061158b82612dd4565b6115e15760405162461bcd60e51b815260206004820152602160248201527f4d6167696320717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610be1565b5060009081526017602052604090205490565b600e54600090819081906127109061161990600160a01b900463ffffffff1686614d41565b6116239190614d2d565b600e546001600160a01b031693509150505b9250929050565b6000611647836123b4565b82106116a95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610be1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146116fc5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156117265760405162461bcd60e51b8152600401610be190614b1f565b601b805464ffff00ff001916600160201b1790556040517fdcec425145dddcc9da423c0875cf787d092cc8b58dc6e649ff5c063503f6e8d590600090a1565b61138c83838360405180602001604052806000815250612846565b61178a3382612efd565b8061179f57506016546001600160a01b031633145b6117eb5760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610be1565b6000818152601260209081526040808320839055601390915281205561181081613192565b50565b600061181e82612dd4565b61187c5760405162461bcd60e51b815260206004820152602960248201527f5472616e736665722074696d6520717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610be1565b5060009081526013602052604090205490565b600061189a60095490565b82106118fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610be1565b6009828154811061191e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b0316331461195a5760405162461bcd60e51b8152600401610be190614b47565b8051602f60f81b90829061197090600190614d60565b8151811061198e57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916146119ea5760405162461bcd60e51b815260206004820152601760248201527f4d7573742073657420747261696c696e6720736c6173680000000000000000006044820152606401610be1565b80516119fd90600f9060208401906142a4565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051611a2d9190614aba565b60405180910390a150565b828282601182604051611a4b9190614a06565b9081526040519081900360200190205460ff1615611aa05760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b6044820152606401610be1565b601060049054906101000a90046001600160a01b03166001600160a01b0316611adb82610f18338787604051602001610eb8939291906149bb565b6001600160a01b031614611b315760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e640000006044820152606401610be1565b6001601183604051611b439190614a06565b908152604051908190036020019020805491151560ff19909216919091179055600b5460021415611b865760405162461bcd60e51b8152600401610be190614c61565b6002600b55601b54610100900460ff1680611baa5750601b546301000000900460ff165b611be75760405162461bcd60e51b815260206004820152600e60248201526d4e6f2073616c652061637469766560901b6044820152606401610be1565b600d54604051632b8b93f960e11b8152336004820152600360248201526000916001600160a01b03169063571727f29060440160006040518083038186803b158015611c3257600080fd5b505afa158015611c46573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c6e9190810190614644565b9050611c7a8189613239565b8015611c8b5750611c8b818a613239565b611cee5760405162461bcd60e51b815260206004820152602e60248201527f4e6f74206f776e6572206f66204865726f6963206f72204c6567656e6461727960448201526d20466f756e6465722773204b657960901b6064820152608401610be1565b601b54610100900460ff1615611e9b57611d088989613239565b611d675760405162461bcd60e51b815260206004820152602a60248201527f46726565206d696e74696e6720746f6b656e73206d7573742062652070726573604482015269616c6520746f6b656e7360b01b6064820152608401610be1565b88518763ffffffff1614611dcd5760405162461bcd60e51b815260206004820152602760248201527f31206d696e742070657220466f756e6465722773204b657920647572696e672060448201526670726573616c6560c81b6064820152608401610be1565b60005b8951811015611e9557601460008b8381518110611dfd57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160019054906101000a900460ff1615611e835760405162461bcd60e51b815260206004820152602960248201527f466f756e6465722773204b657920616c7265616479207573656420647572696e604482015268672070726573616c6560b81b6064820152608401610be1565b80611e8d81614e03565b915050611dd0565b50611eec565b60008763ffffffff1611611eec5760405162461bcd60e51b8152602060048201526018602482015277596f75206d757374206d696e74206174206c65617374203160401b6044820152606401610be1565b601054611f019063ffffffff16612710614d77565b63ffffffff168763ffffffff161115611f505760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b6044820152606401610be1565b600f63ffffffff8816611f62336123b4565b611f6c9190614ced565b111580611f93575080518763ffffffff16611f86336123b4565b611f909190614ced565b11155b611faf5760405162461bcd60e51b8152600401610be190614b7c565b87518763ffffffff16101561203a5760405162461bcd60e51b815260206004820152604560248201527f596f75206d75737420617474656d707420746f206d696e74206174206c65617360448201527f742074686520616d6f756e74206f662066726565206d696e7473206265696e67606482015264081d5cd95960da1b608482015260a401610be1565b600088518863ffffffff1661204f9190614d60565b905061206863ffffffff821666f8b0a10e470000614d41565b3411156120be57336108fc61208a63ffffffff841666f8b0a10e470000614d41565b6120949034614d60565b6040518115909202916000818181858888f193505050501580156120bc573d6000803e3d6000fd5b505b8851156120ce576120ce8961332a565b63ffffffff8116156120e4576120e48a82613685565b50506001600b555050505050505050565b6000818152600360205260408120546001600160a01b031680610bb15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610be1565b6000546001600160a01b031633146121965760405162461bcd60e51b8152600401610be190614b47565b6002600b5414156121b95760405162461bcd60e51b8152600401610be190614c61565b6002600b5563ffffffff81166122085760405162461bcd60e51b81526020600482015260146024820152734d757374206d696e74206174206c65617374203160601b6044820152606401610be1565b60648163ffffffff16835161221d9190614d41565b111561227c5760405162461bcd60e51b815260206004820152602860248201527f4c696d6974656420746f203130302067697665617761797320706572207472616044820152673739b0b1ba34b7b760c11b6064820152608401610be1565b6010546122919063ffffffff16612710614d77565b63ffffffff168163ffffffff1683516122aa9190614d41565b11156122ef5760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f6b656e20737570706c7960601b6044820152606401610be1565b6010546000906123069063ffffffff166001614d05565b63ffffffff16905060008263ffffffff1684516123239190614d41565b601054612336919063ffffffff16614ced565b905060005b845181101561238d5761237b85828151811061236757634e487b7160e01b600052603260045260246000fd5b60200260200101518563ffffffff16612e15565b8061238581614e03565b91505061233b565b5060405181908390600080516020614ebe83398151915290600090a350506001600b555050565b60006001600160a01b03821661241f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610be1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146124655760405162461bcd60e51b8152600401610be190614b47565b61246f600061379d565b565b600061247c82612dd4565b6124d85760405162461bcd60e51b815260206004820152602760248201527f4d696e7465642074696d6520717565727920666f72206e6f6e6578697374656e6044820152663a103a37b5b2b760c91b6064820152608401610be1565b5060009081526012602052604090205490565b6000546001600160a01b031633146125155760405162461bcd60e51b8152600401610be190614b47565b6015546001600160a01b031661256d5760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610be1565b476125ac5760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610be1565b6015546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061246f57600080fd5b6000546001600160a01b031633146126075760405162461bcd60e51b8152600401610be190614b47565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060028054610d0790614dc8565b6001600160a01b0382163314156126915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610be1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146127275760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff16156127515760405162461bcd60e51b8152600401610be190614b1f565b601b5462010000900460ff16156127aa5760405162461bcd60e51b815260206004820152601d60248201527f53616c652068617320616c7265616479206265656e20737461727465640000006044820152606401610be1565b601b5460ff166128085760405162461bcd60e51b815260206004820152602360248201527f50726573616c65206d7573742062652073746172746564206265666f72652073604482015262616c6560e81b6064820152608401610be1565b601b805463ffffff00191663010100001790556040517f771cfe172460b7d64cc46cca57a1e1f40f52b47cf1d16fe30c78a2935b3dd58090600090a1565b6128503383612efd565b61286c5760405162461bcd60e51b8152600401610be190614c10565b612878848484846137ed565b50505050565b606061288982612dd4565b6128d55760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610be1565b600f6128e083613820565b6040516020016128f1929190614a22565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146129315760405162461bcd60e51b8152600401610be190614b47565b601a541561298b5760405162461bcd60e51b815260206004820152602160248201527f46696e616c2050726f76656e616e6365206861736820616c72656164792073656044820152601d60fa1b6064820152608401610be1565b601a8190556040518181527f7646ddbc743a774a32f9db8d63fbce5dcf94215c1fb45100a750b1245894736490602001611a2d565b6016546001600160a01b03163314612a135760405162461bcd60e51b815260206004820152601660248201527510d85b1b195c881a5cc81b9bdd08185c1c1c9bdd995960521b6044820152606401610be1565b612a1c82612dd4565b612a765760405162461bcd60e51b815260206004820152602560248201527f4d61676963206f7065726174696f6e20666f72206e6f6e6578697374656e74206044820152643a37b5b2b760d91b6064820152608401610be1565b60009182526017602052604090912055565b6000546001600160a01b03163314612ab25760405162461bcd60e51b8152600401610be190614b47565b601680546001600160a01b0319166001600160a01b0383169081179091556040519081527f117f6aee1723f8883c7770294d72902da49eee2a31780acdafc49f75b637ee5290602001611a2d565b6000546001600160a01b03163314612b2a5760405162461bcd60e51b8152600401610be190614b47565b601b54600160201b900460ff1615612b545760405162461bcd60e51b8152600401610be190614b1f565b601b5460ff16612ba65760405162461bcd60e51b815260206004820152601760248201527f50726573616c65206d75737420626520737461727465640000000000000000006044820152606401610be1565b601b5462010000900460ff1615612c195760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f74206368616e67652070726573616c65207374617465207768656e604482015270081cd85b19481a185cc81cdd185c9d1959607a1b6064820152608401610be1565b601b805461ff001916911561010002919091179055565b600080546001600160a01b03163314612c5b5760405162461bcd60e51b8152600401610be190614b47565b60185415612cb55760405162461bcd60e51b815260206004820152602160248201527f46697273742050726f76656e616e6365206861736820616c72656164792073656044820152601d60fa1b6064820152608401610be1565b506018819055604080514260208083019190915244828401528251808303840181526060909201909252805191012060198190555b919050565b6060600f604051602001612d039190614a59565b604051602081830303815290604052905090565b6000546001600160a01b03163314612d415760405162461bcd60e51b8152600401610be190614b47565b6001600160a01b038116612da65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be1565b6118108161379d565b60006001600160e01b0319821663152a902d60e11b1480610bb15750610bb18261393a565b6000908152600360205260409020546001600160a01b0316151590565b6000806000612e00858561397a565b91509150612e0d816139e7565b509392505050565b60005b8181101561138c576010805463ffffffff16906000612e3683614e1e565b82546101009290920a63ffffffff818102199093169183160217909155601054612e639250859116613be8565b60105463ffffffff16600090815260126020526040902042905580612e8781614e03565b915050612e18565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ec4826120f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612f0882612dd4565b612f695760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610be1565b6000612f74836120f5565b9050806001600160a01b0316846001600160a01b03161480612faf5750836001600160a01b0316612fa484610d8a565b6001600160a01b0316145b80612fdf57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ffa826120f5565b6001600160a01b0316146130625760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610be1565b6001600160a01b0382166130c45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610be1565b6130cf838383613c06565b6130da600082612e8f565b6001600160a01b0383166000908152600460205260408120805460019290613103908490614d60565b90915550506001600160a01b0382166000908152600460205260408120805460019290613131908490614ced565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061319d826120f5565b90506131ab81600084613c06565b6131b6600083612e8f565b6001600160a01b03811660009081526004602052604081208054600192906131df908490614d60565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081518351101561324d57506000610bb1565b6000805b84518163ffffffff1610156133075760005b84518163ffffffff1610156132f457848163ffffffff168151811061329857634e487b7160e01b600052603260045260246000fd5b6020026020010151868363ffffffff16815181106132c657634e487b7160e01b600052603260045260246000fd5b602002602001015114156132e257826132de81614e1e565b9350505b806132ec81614e1e565b915050613263565b50806132ff81614e1e565b915050613251565b5082518163ffffffff1614613320576000915050610bb1565b5060019392505050565b60005b8151811015613623576014600083838151811061335a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff16156133de5760405162461bcd60e51b815260206004820152603060248201527f312066726565206d696e74206f6e207468697320636f6c6c656374696f6e207060448201526f657220466f756e6465722773204b657960801b6064820152608401610be1565b600d5482516000916001600160a01b03169063230a696c9085908590811061341657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161343c91815260200190565b60206040518083038186803b15801561345457600080fd5b505afa158015613468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348c9190614868565b60ff16116134dc5760405162461bcd60e51b815260206004820152601760248201527f4e6f2066726565206d696e747320617661696c61626c650000000000000000006044820152606401610be1565b60016014600084848151811061350257634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060016014600084848151811061355857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020805460ff1916911515919091179055600d5482516001600160a01b039091169063134c4b1c908490849081106135b857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016135de91815260200190565b600060405180830381600087803b1580156135f857600080fd5b505af115801561360c573d6000803e3d6000fd5b50505050808061361b90614e03565b91505061332d565b5060105460009061363b9063ffffffff166001614d05565b825160105463ffffffff9283169350600092613658929116614ced565b9050613665338451612e15565b60405181908390600080516020614ebe83398151915290600090a3505050565b61369c63ffffffff821666f8b0a10e470000614d41565b3410156136bb5760405162461bcd60e51b8152600401610be190614bcb565b60005b8251811015613730576001601460008584815181106136ed57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160016101000a81548160ff021916908315150217905550808061372890614e03565b9150506136be565b506010546000906137489063ffffffff166001614d05565b60105463ffffffff918216925060009161376491859116614d05565b63ffffffff16905061377c338463ffffffff16612e15565b60405181908390600080516020614ebe83398151915290600090a350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6137f8848484612fe7565b61380484848484613c22565b6128785760405162461bcd60e51b8152600401610be190614acd565b6060816138445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561386e578061385881614e03565b91506138679050600a83614d2d565b9150613848565b60008167ffffffffffffffff81111561389757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156138c1576020820181803683370190505b5090505b8415612fdf576138d6600183614d60565b91506138e3600a86614e42565b6138ee906030614ced565b60f81b81838151811061391157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613933600a86614d2d565b94506138c5565b60006001600160e01b031982166356db4e1560e01b148061396b57506001600160e01b031982166380ac58cd60e01b145b80610bb15750610bb182613d2f565b6000808251604114156139b15760208301516040840151606085015160001a6139a587828585613d54565b94509450505050611635565b8251604014156139db57602083015160408401516139d0868383613e41565b935093505050611635565b50600090506002611635565b6000816004811115613a0957634e487b7160e01b600052602160045260246000fd5b1415613a125750565b6001816004811115613a3457634e487b7160e01b600052602160045260246000fd5b1415613a825760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610be1565b6002816004811115613aa457634e487b7160e01b600052602160045260246000fd5b1415613af25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610be1565b6003816004811115613b1457634e487b7160e01b600052602160045260246000fd5b1415613b6d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610be1565b6004816004811115613b8f57634e487b7160e01b600052602160045260246000fd5b14156118105760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610be1565b613c02828260405180602001604052806000815250613e70565b5050565b600081815260136020526040902042905561138c838383613ea3565b60006001600160a01b0384163b15613d2457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c66903390899088908890600401614a7d565b602060405180830381600087803b158015613c8057600080fd5b505af1925050508015613cb0575060408051601f3d908101601f19168201909252613cad918101906147de565b60015b613d0a573d808015613cde576040519150601f19603f3d011682016040523d82523d6000602084013e613ce3565b606091505b508051613d025760405162461bcd60e51b8152600401610be190614acd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fdf565b506001949350505050565b60006001600160e01b0319821663780e9d6360e01b1480610bb15750610bb182613f5b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613d8b5750600090506003613e38565b8460ff16601b14158015613da357508460ff16601c14155b15613db45750600090506004613e38565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e08573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e3157600060019250925050613e38565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01613e6287828885613d54565b935093505050935093915050565b613e7a8383613fab565b613e876000848484613c22565b61138c5760405162461bcd60e51b8152600401610be190614acd565b6001600160a01b038316613efe57613ef981600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f21565b816001600160a01b0316836001600160a01b031614613f2157613f2183826140ea565b6001600160a01b038216613f385761138c81614187565b826001600160a01b0316826001600160a01b03161461138c5761138c8282614260565b60006001600160e01b031982166380ac58cd60e01b1480613f8c57506001600160e01b03198216635b5e139f60e01b145b80610bb157506301ffc9a760e01b6001600160e01b0319831614610bb1565b6001600160a01b0382166140015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610be1565b61400a81612dd4565b156140575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be1565b61406360008383613c06565b6001600160a01b038216600090815260046020526040812080546001929061408c908490614ced565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016140f7846123b4565b6141019190614d60565b600083815260086020526040902054909150808214614154576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061419990600190614d60565b6000838152600a6020526040812054600980549394509092849081106141cf57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600983815481106141fe57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061424457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061426b836123b4565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546142b090614dc8565b90600052602060002090601f0160209004810192826142d25760008555614318565b82601f106142eb57805160ff1916838001178555614318565b82800160010185558215614318579182015b828111156143185782518255916020019190600101906142fd565b50614324929150614328565b5090565b5b808211156143245760008155600101614329565b80356001600160a01b0381168114612cea57600080fd5b600082601f830112614364578081fd5b8135602061437961437483614cc9565b614c98565b80838252828201915082860187848660051b8901011115614398578586fd5b855b858110156143b65781358452928401929084019060010161439a565b5090979650505050505050565b80358015158114612cea57600080fd5b600082601f8301126143e3578081fd5b813567ffffffffffffffff8111156143fd576143fd614e82565b614410601f8201601f1916602001614c98565b818152846020838601011115614424578283fd5b816020850160208301379081016020019190915292915050565b803563ffffffff81168114612cea57600080fd5b600060208284031215614463578081fd5b61446c8261433d565b9392505050565b60008060408385031215614485578081fd5b61448e8361433d565b915061449c6020840161433d565b90509250929050565b6000806000606084860312156144b9578081fd5b6144c28461433d565b92506144d06020850161433d565b9150604084013590509250925092565b600080600080608085870312156144f5578081fd5b6144fe8561433d565b935061450c6020860161433d565b925060408501359150606085013567ffffffffffffffff81111561452e578182fd5b61453a878288016143d3565b91505092959194509250565b60008060408385031215614558578182fd5b6145618361433d565b915061449c602084016143c3565b60008060408385031215614581578182fd5b61458a8361433d565b946020939093013593505050565b600080604083850312156145aa578182fd5b823567ffffffffffffffff8111156145c0578283fd5b8301601f810185136145d0578283fd5b803560206145e061437483614cc9565b80838252828201915082850189848660051b88010111156145ff578788fd5b8795505b84861015614628576146148161433d565b835260019590950194918301918301614603565b509550614638905086820161443e565b93505050509250929050565b60006020808385031215614656578182fd5b825167ffffffffffffffff81111561466c578283fd5b8301601f8101851361467c578283fd5b805161468a61437482614cc9565b80828252848201915084840188868560051b87010111156146a9578687fd5b8694505b838510156146cb5780518352600194909401939185019185016146ad565b50979650505050505050565b600080600080600060a086880312156146ee578283fd5b853567ffffffffffffffff80821115614705578485fd5b61471189838a01614354565b96506020880135915080821115614726578485fd5b61473289838a01614354565b95506147406040890161443e565b94506060880135915080821115614755578283fd5b61476189838a016143d3565b93506080880135915080821115614776578283fd5b50614783888289016143d3565b9150509295509295909350565b6000602082840312156147a1578081fd5b61446c826143c3565b6000602082840312156147bb578081fd5b5035919050565b6000602082840312156147d3578081fd5b813561446c81614e98565b6000602082840312156147ef578081fd5b815161446c81614e98565b60006020828403121561480b578081fd5b813567ffffffffffffffff811115614821578182fd5b612fdf848285016143d3565b6000806040838503121561483f578182fd5b50508035926020909101359150565b60006020828403121561485f578081fd5b61446c8261443e565b600060208284031215614879578081fd5b815161446c81614eae565b600080600060608486031215614898578081fd5b83356148a381614eae565b9250602084013567ffffffffffffffff808211156148bf578283fd5b6148cb878388016143d3565b935060408601359150808211156148e0578283fd5b506148ed868287016143d3565b9150509250925092565b6000815180845261490f816020860160208601614d9c565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061493d57607f831692505b602080841082141561495d57634e487b7160e01b86526022600452602486fd5b8180156149715760018114614982576149af565b60ff198616895284890196506149af565b60008881526020902060005b868110156149a75781548b82015290850190830161498e565b505084890196505b50505050505092915050565b6bffffffffffffffffffffffff198460601b16815263ffffffff60e01b8360e01b166014820152600082516149f7816018850160208701614d9c565b91909101601801949350505050565b60008251614a18818460208701614d9c565b9190910192915050565b6000614a2e8285614923565b65746f6b656e2f60d01b81528351614a4d816006840160208801614d9c565b01600601949350505050565b6000614a658284614923565b6718dbdb9d1c9858dd60c21b81526008019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ab0908301846148f7565b9695505050505050565b60208152600061446c60208301846148f7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d14d85b19481a185cc8195b99195960921b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f416e79206f6e652077616c6c65742063616e6e6f7420686f6c64206d6f72652060408201526e1d1a185b881352539517d312535255608a1b606082015260800190565b60208082526025908201527f496e73756666696369656e742065746820746f2070726f63657373207468652060408201526437b93232b960d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715614cc157614cc1614e82565b604052919050565b600067ffffffffffffffff821115614ce357614ce3614e82565b5060051b60200190565b60008219821115614d0057614d00614e56565b500190565b600063ffffffff808316818516808303821115614d2457614d24614e56565b01949350505050565b600082614d3c57614d3c614e6c565b500490565b6000816000190483118215151615614d5b57614d5b614e56565b500290565b600082821015614d7257614d72614e56565b500390565b600063ffffffff83811690831681811015614d9457614d94614e56565b039392505050565b60005b83811015614db7578181015183820152602001614d9f565b838111156128785750506000910152565b600181811c90821680614ddc57607f821691505b60208210811415614dfd57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e1757614e17614e56565b5060010190565b600063ffffffff80831681811415614e3857614e38614e56565b6001019392505050565b600082614e5157614e51614e6c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461181057600080fd5b60ff8116811461181057600080fdfe8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dda26469706673582212206c77b1708f251991727759cec92623a290186db81fd8d215249bf3bca3e5b19164736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000076c32cbafd65bc2dc205754e40aa69788e5b04e0000000000000000000000000e6ef513f7429d92cb54ebd4c14026aeb90849a78000000000000000000000000b340dd62e15ba76434b51b6208ba5e97241d118e
-----Decoded View---------------
Arg [0] : _signerAddresss (address): 0x76C32cbafD65bC2dc205754E40AA69788E5b04e0
Arg [1] : _itfk (address): 0xE6eF513F7429D92cb54eBD4C14026aEb90849A78
Arg [2] : _itfkPeer (address): 0xB340dd62e15BA76434b51B6208ba5E97241d118e
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000076c32cbafd65bc2dc205754e40aa69788e5b04e0
Arg [1] : 000000000000000000000000e6ef513f7429d92cb54ebd4c14026aeb90849a78
Arg [2] : 000000000000000000000000b340dd62e15ba76434b51b6208ba5e97241d118e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.