Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
3,333 RR
Holders
1,057
Market
Volume (24H)
0.25 ETH
Min Price (24H)
$632.17 @ 0.250000 ETH
Max Price (24H)
$632.17 @ 0.250000 ETH
Other Info
Token Contract
Balance
0 RRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HyperMintERC721
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/interfaces/IERC20.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import './Ownable.sol'; contract HyperMintERC721 is ERC721, Ownable, Pausable, ERC721Burnable, ReentrancyGuard { using Strings for uint256; using SafeERC20 for IERC20; /* ================= STATE VARIABLES ================= */ // ============== Structs ============== struct Addresses { address customerAddress; address collectionOwnerAddress; address authorisationAddress; address purchaseTokenAddress; address managerPrimaryRoyaltyAddress; address customerPrimaryRoyaltyAddress; address secondaryRoyaltyAddress; } struct TokenInfo { uint256 price; uint256 supply; uint256 totalSupply; uint256 maxPerAddress; } // ========= Immutable Storage ========= uint16 internal constant BASIS_POINTS = 10000; // ========== Mutable Storage ========== string public version = '2.0.0'; /// @dev token info string _name; string _symbol; uint256 public price; uint256 public supply; uint256 public totalSupply; uint256 public maxPerAddress; mapping(address => uint256) public totalMinted; /// @dev metadata info string public contractURI; string public tokenMetadataURI; bool public allowBuy; /// @dev sale dates uint256 public publicSaleDate; uint256 public saleCloseDate; /// @dev royalty fees uint96 public primaryRoyaltyFee; uint96 public secondaryRoyaltyFee; Addresses public addresses; /* =================== CONSTRUCTOR =================== */ /// @notice Creates a new NFT contract /// @param __name token name /// @param __symbol token symbol /// @param _price token price /// @param _totalSupply token total supply /// @param _allowBuy toggle to enable/disable buying /// @param _maxPerAddress max amount an address can buy /// @param _addresses a collection of addresses constructor( string memory __name, string memory __symbol, uint256 _price, uint256 _totalSupply, string memory _contractMetadataURI, string memory _tokenMetadataURI, bool _allowBuy, uint256 _maxPerAddress, Addresses memory _addresses ) ERC721('', '') { /** * @dev Initializes the contract setting the hypermint * support staff as the initial Collection Owner */ _transferCollectionOwnership(_addresses.collectionOwnerAddress); _name = __name; _symbol = __symbol; price = _price; totalSupply = _totalSupply; allowBuy = _allowBuy; tokenMetadataURI = _tokenMetadataURI; contractURI = _contractMetadataURI; maxPerAddress = _maxPerAddress; addresses = _addresses; } /* ====================== Views ====================== */ function name() public view override returns (string memory) { return _name; } function symbol() public view override returns (string memory) { return _symbol; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(tokenMetadataURI, _tokenId.toString())); } function getTokenInfo() public view returns (TokenInfo memory) { return TokenInfo(price, supply, totalSupply, maxPerAddress); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address, uint256) { uint256 royaltyAmount = (_salePrice * secondaryRoyaltyFee) / BASIS_POINTS; /// @dev secondary royalty to be paid out by the marketplace /// to the splitter contract return (addresses.secondaryRoyaltyAddress, royaltyAmount); } function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721) returns (bool) { return (_interfaceId == type(IERC2981).interfaceId || super.supportsInterface(_interfaceId)); } /* ================ MUTATIVE FUNCTIONS ================ */ // ============ Restricted ============= function setNameAndSymbol(string memory _newName, string memory _newSymbol) public onlyContractManager { _name = _newName; _symbol = _newSymbol; } function setMetadataURIs( string memory _contractURI, string memory _tokenURI ) public onlyContractManager { contractURI = _contractURI; tokenMetadataURI = _tokenURI; } function setDates(uint256 _publicSale, uint256 _saleClosed) public onlyContractManager { publicSaleDate = _publicSale; saleCloseDate = _saleClosed; } function setTokenData( uint256 _price, uint256 _supply, uint256 _maxPerAddress ) public onlyContractManager { require(supply < _supply + 1, 'Supply too low'); price = _price; totalSupply = _supply; maxPerAddress = _maxPerAddress; } function setAddresses(Addresses memory _addresses) public onlyContractManager { if ( addresses.collectionOwnerAddress != _addresses.collectionOwnerAddress ) { _transferCollectionOwnership(_addresses.collectionOwnerAddress); } addresses = _addresses; } function setAllowBuy(bool _allowBuy) public onlyContractManager { allowBuy = _allowBuy; } function setRoyalty(uint96 _primaryFee, uint96 _secondaryFee) public onlyContractManager { primaryRoyaltyFee = _primaryFee; secondaryRoyaltyFee = _secondaryFee; } // ============== Minting ============== function mintBatch(address[] memory _accounts, uint256[] memory _amounts) public whenNotPaused onlyContractManager nonContract nonReentrant { uint256 _supply = supply; /// @dev operate on _supply instead of supply to save on reads (5,000 gas per read) for (uint256 i = 0; i < _accounts.length; i++) { require( _supply + _amounts[i] < totalSupply + 1, 'Not enough supply' ); for (uint256 j = 1; j < _amounts[i] + 1; j++) { _safeMint(_accounts[i], _supply + j); } totalMinted[_accounts[i]] = totalMinted[_accounts[i]] + _amounts[i]; /// @dev remove overflow protection enabled by default /// as supply is already capped by totalSupply unchecked { _supply += _amounts[i]; } } /// @dev write back to storage supply = _supply; } // ================ Buy ================ function buyAuthorised( uint256 _amount, uint256 _totalPrice, uint256 _maxPerAddress, uint256 _expires, bytes memory _signature ) external payable buyAllowed nonContract nonReentrant { require(block.timestamp < _expires, 'Signature expired'); bytes32 hash = keccak256( abi.encodePacked( address(this), msg.sender, _amount, _totalPrice, _maxPerAddress, _expires ) ); bytes32 message = ECDSA.toEthSignedMessageHash(hash); require( ECDSA.recover(message, _signature) == addresses.authorisationAddress, 'Not authorised' ); _buy(_amount, _totalPrice, _maxPerAddress); } function buy(uint256 _amount) external payable buyAllowed nonContract nonReentrant { require(allowBuy, 'Buy disabled'); require(block.timestamp + 1 > publicSaleDate, 'Public sale closed'); uint256 totalPrice = price * _amount; _buy(_amount, totalPrice, maxPerAddress); } function _buy( uint256 _amount, uint256 _totalPrice, uint256 _maxPerAddress ) internal { uint256 _supply = supply; /// @dev sanity checks if (saleCloseDate != 0) { require(block.timestamp < saleCloseDate, 'Sale closed'); } require(_supply + _amount < totalSupply + 1, 'Not enough supply'); uint256 mintedCount = totalMinted[msg.sender]; if (_maxPerAddress != 0) { require( mintedCount + _amount <= _maxPerAddress, 'Max per address limit' ); } totalMinted[msg.sender] = mintedCount + _amount; /// @dev mint tokens for (uint256 i = 1; i < _amount + 1; i++) { _safeMint(msg.sender, _supply + i); } /// @dev remove overflow protection enabled by default /// as supply is already capped by totalSupply unchecked { _supply += _amount; } /// @dev write back to storage supply = _supply; uint256 royaltyAmount = (_totalPrice * primaryRoyaltyFee) / BASIS_POINTS; if (addresses.purchaseTokenAddress == address(0)) { require(msg.value >= _totalPrice, 'Insufficient value'); /// @dev primary royalty cut for Hypermint payable(addresses.managerPrimaryRoyaltyAddress).transfer( royaltyAmount ); /// @dev primary sale (i.e. minting revenue) for customer (or its payees) payable(addresses.customerPrimaryRoyaltyAddress).transfer( _totalPrice - royaltyAmount ); } else { IERC20 token = IERC20(addresses.purchaseTokenAddress); /// @dev primary royalty cut for Hypermint token.safeTransferFrom( msg.sender, addresses.managerPrimaryRoyaltyAddress, royaltyAmount ); /// @dev primary sale (i.e. minting revenue) for customer (or its payees) token.safeTransferFrom( msg.sender, addresses.customerPrimaryRoyaltyAddress, _totalPrice - royaltyAmount ); } } // ============= Onwership ============= function transferContractOwnership() public { require(msg.sender == addresses.customerAddress, 'Not authorised'); _transferContractOwnership(addresses.customerAddress); } // =============== Pause =============== function pause() public onlyContractManager { _pause(); } function unpause() public onlyContractManager { _unpause(); } /* ==================== MODIFIERS ===================== */ modifier buyAllowed() { require(allowBuy, 'Buy disabled'); _; } /// @dev this eliminates the possibility of being called /// from a contract modifier nonContract() { require(tx.origin == msg.sender, 'Cannot be called by a contract'); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @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 // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.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 _contractManager; // hypermint address internal _collectionOwner; // hypermint support staff event ContractOwnershipTransferred( address indexed previousContractManager, address indexed newContractManager ); event CollectiontOwnershipTransferred( address indexed previousCollectionOwner, address indexed newCollectionOwner ); /** * @dev Initializes the contract setting the deployer as * the initial Contract Manager */ constructor() { _transferContractOwnership(_msgSender()); } /** * @dev Returns the manager of the contract */ function contractManager() public view virtual returns (address) { return _contractManager; } /** * @dev Returns the Collection Owner (hypermint support staff), * to allow the ability to edit/refresh metadata on OpenSea */ function owner() public view virtual returns (address) { return _collectionOwner; } function collectionOwner() public view virtual returns (address) { return _collectionOwner; } /** * @dev Throws if called by any account other than the Contract Manager. */ modifier onlyContractManager() { require( _msgSender() == _contractManager, 'Ownable: caller is not the contract manager' ); _; } /** * @dev Throws if called by any account other than the Admin accounts. */ modifier onlyAdmin() { require( _msgSender() == _contractManager || _msgSender() == _collectionOwner, 'Ownable: caller is not an admin' ); _; } modifier onlyVerifiedWallets(bytes32[] memory proof, bytes32 root) { require( isValid(proof, root, keccak256(abi.encodePacked(msg.sender))), 'Not a verified wallet' ); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyContractManager` 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 renounceContractOwnership() public virtual onlyContractManager { _transferContractOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newContractManager`). * Can only be called by the current _contractManager. */ function transferContractManagerOwnership(address newContractManager) public virtual onlyContractManager { require( newContractManager != address(0), 'Ownable: new contract owner is the zero address' ); _transferContractOwnership(newContractManager); } /** * @dev Transfers ownership of the contract to a new account (`newContractManager`). * Internal function without access restriction. */ function _transferContractOwnership(address newContractManager) internal virtual { address oldContractManager = _contractManager; _contractManager = newContractManager; emit ContractOwnershipTransferred( oldContractManager, newContractManager ); } /** * @dev Transfers ownership of the collection to a new account (`newCollectionOwner`). * Can only be called by the current _contractManager. */ function transferCollectionOwnership(address newCollectionOwner) public virtual onlyContractManager { require( newCollectionOwner != address(0), 'Ownable: new collection owner is the zero address' ); _transferCollectionOwnership(newCollectionOwner); } /** * @dev Transfers ownership of the collection to a new account (`newCollectionOwner`). * Internal function without access restriction. */ function _transferCollectionOwnership(address newCollectionOwner) internal virtual { require( newCollectionOwner != address(0), 'Ownable: new collection owner is the zero address' ); address oldCollectionOwner = _collectionOwner; _collectionOwner = newCollectionOwner; emit CollectiontOwnershipTransferred( oldCollectionOwner, newCollectionOwner ); } /// @param proof hash of a specific leaf /// @param root root of the merkle tree /// @param leaf leaf node function isValid( bytes32[] memory proof, bytes32 root, bytes32 leaf ) public pure returns (bool) { return MerkleProof.verify(proof, root, leaf); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"string","name":"_contractMetadataURI","type":"string"},{"internalType":"string","name":"_tokenMetadataURI","type":"string"},{"internalType":"bool","name":"_allowBuy","type":"bool"},{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"},{"components":[{"internalType":"address","name":"customerAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"internalType":"struct HyperMintERC721.Addresses","name":"_addresses","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousCollectionOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newCollectionOwner","type":"address"}],"name":"CollectiontOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousContractManager","type":"address"},{"indexed":true,"internalType":"address","name":"newContractManager","type":"address"}],"name":"ContractOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"addresses","outputs":[{"internalType":"address","name":"customerAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowBuy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_totalPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"_expires","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"buyAuthorised","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"collectionOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"internalType":"struct HyperMintERC721.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"primaryRoyaltyFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceContractOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"saleCloseDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondaryRoyaltyFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"customerAddress","type":"address"},{"internalType":"address","name":"collectionOwnerAddress","type":"address"},{"internalType":"address","name":"authorisationAddress","type":"address"},{"internalType":"address","name":"purchaseTokenAddress","type":"address"},{"internalType":"address","name":"managerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"customerPrimaryRoyaltyAddress","type":"address"},{"internalType":"address","name":"secondaryRoyaltyAddress","type":"address"}],"internalType":"struct HyperMintERC721.Addresses","name":"_addresses","type":"tuple"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowBuy","type":"bool"}],"name":"setAllowBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSale","type":"uint256"},{"internalType":"uint256","name":"_saleClosed","type":"uint256"}],"name":"setDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setMetadataURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newName","type":"string"},{"internalType":"string","name":"_newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_primaryFee","type":"uint96"},{"internalType":"uint96","name":"_secondaryFee","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"}],"name":"setTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"tokenMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newCollectionOwner","type":"address"}],"name":"transferCollectionOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContractManager","type":"address"}],"name":"transferContractManagerOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferContractOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405260056080819052640322e302e360dc1b60a090815262000028916009919062000315565b503480156200003657600080fd5b506040516200488c3803806200488c83398101604081905262000059916200051f565b604080516020808201808452600080845284519283019094528382528251929391926200008892919062000315565b5080516200009e90600190602084019062000315565b505050620000bb620000b5620001f860201b60201c565b620001fc565b6007805460ff60a01b1916905560016008556020810151620000dd906200024e565b8851620000f290600a9060208c019062000315565b5087516200010890600b9060208b019062000315565b50600c879055600e8690556013805460ff191684151517905583516200013690601290602087019062000315565b5084516200014c90601190602088019062000315565b50600f919091558051601780546001600160a01b03199081166001600160a01b0393841617909155602083015160188054831691841691909117905560408301516019805483169184169190911790556060830151601a805483169184169190911790556080830151601b8054831691841691909117905560a0830151601c8054831691841691909117905560c090920151601d80549093169116179055506200069d95505050505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2260a4d0c00902d7996e8f7d669d22564414d41be4d278a40387ddf58179d39290600090a35050565b6001600160a01b038116620002c35760405162461bcd60e51b815260206004820152603160248201527f4f776e61626c653a206e657720636f6c6c656374696f6e206f776e657220697360448201527020746865207a65726f206164647265737360781b606482015260840160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7090ef46c0451552ce067b9ff2f9dac9d943ba57b58039acdd66ee060abd199c90600090a35050565b82805462000323906200064a565b90600052602060002090601f01602090048101928262000347576000855562000392565b82601f106200036257805160ff191683800117855562000392565b8280016001018555821562000392579182015b828111156200039257825182559160200191906001019062000375565b50620003a0929150620003a4565b5090565b5b80821115620003a05760008155600101620003a5565b80516001600160a01b0381168114620003d357600080fd5b919050565b80518015158114620003d357600080fd5b600082601f830112620003fa578081fd5b81516001600160401b0381111562000416576200041662000687565b60206200042c601f8301601f1916820162000617565b828152858284870101111562000440578384fd5b835b838110156200045f57858101830151828201840152820162000442565b838111156200047057848385840101525b5095945050505050565b600060e082840312156200048c578081fd5b6200049860e062000617565b9050620004a582620003bb565b8152620004b560208301620003bb565b6020820152620004c860408301620003bb565b6040820152620004db60608301620003bb565b6060820152620004ee60808301620003bb565b60808201526200050160a08301620003bb565b60a08201526200051460c08301620003bb565b60c082015292915050565b60008060008060008060008060006101e08a8c0312156200053e578485fd5b89516001600160401b038082111562000555578687fd5b620005638d838e01620003e9565b9a5060208c015191508082111562000579578687fd5b620005878d838e01620003e9565b995060408c0151985060608c0151975060808c0151915080821115620005ab578687fd5b620005b98d838e01620003e9565b965060a08c0151915080821115620005cf578586fd5b50620005de8c828d01620003e9565b945050620005ef60c08b01620003d8565b925060e08a01519150620006088b6101008c016200047a565b90509295985092959850929598565b604051601f8201601f191681016001600160401b038111828210171562000642576200064262000687565b604052919050565b6002810460018216806200065f57607f821691505b602082108114156200068157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6141df80620006ad6000396000f3fe6080604052600436106103335760003560e01c80638bc3bdec116101b0578063b88d4fde116100ec578063dedf141e11610095578063e8a3d4851161006f578063e8a3d48514610978578063e985e9c51461098d578063eced3873146109d6578063ff949b61146109ec57610333565b8063dedf141e14610938578063df727d3b146106a4578063e61b4ac51461095857610333565b8063d96a094a116100c6578063d96a094a14610877578063da0321cd1461088a578063db06c7e31461091857610333565b8063b88d4fde14610817578063c87b56dd14610837578063d60468361461085757610333565b8063a22cb46511610159578063abb1dc4411610133578063abb1dc4414610771578063aeb2de35146107b9578063b375d492146107d9578063b39e12cf146107f957610333565b8063a22cb46514610722578063a87723bd14610742578063ab7cb2111461075757610333565b806395d89b411161018a57806395d89b41146106e257806398011796146106f7578063a035b1fe1461070c57610333565b80638bc3bdec146106915780638da5cb5b146106a4578063903c6db6146106c257610333565b806342842e0e1161027f578063639814e0116102285780637c88e3d9116102025780637c88e3d914610604578063802924461461062457806381350da3146106665780638456cb591461067c57610333565b8063639814e0146105ae57806369777be2146105c457806370a08231146105e457610333565b80635a446215116102595780635a4462151461054e5780635c975abb1461056e5780636352211e1461058e57610333565b806342842e0e146104f957806342966c681461051957806354fd4d501461053957610333565b8063095ea7b3116102e157806323b872dd116102bb57806323b872dd146104855780632a55205a146104a55780633f4ba83a146104e457610333565b8063095ea7b31461043a57806313c698961461045a57806318160ddd1461046f57610333565b806304dad9351161031257806304dad935146103be57806306fdde03146103e0578063081812fc1461040257610333565b80623d47901461033857806301ffc9a714610378578063047fc9aa146103a8575b600080fd5b34801561034457600080fd5b5061036561035336600461398a565b60106020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561038457600080fd5b50610398610393366004613c6c565b610a21565b604051901515815260200161036f565b3480156103b457600080fd5b50610365600d5481565b3480156103ca57600080fd5b506103de6103d936600461398a565b610a67565b005b3480156103ec57600080fd5b506103f5610b59565b60405161036f9190613fc3565b34801561040e57600080fd5b5061042261041d366004613d8e565b610beb565b6040516001600160a01b03909116815260200161036f565b34801561044657600080fd5b506103de610455366004613aad565b610c80565b34801561046657600080fd5b506103de610db2565b34801561047b57600080fd5b50610365600e5481565b34801561049157600080fd5b506103de6104a03660046139d6565b610e23565b3480156104b157600080fd5b506104c56104c0366004613da6565b610eab565b604080516001600160a01b03909316835260208301919091520161036f565b3480156104f057600080fd5b506103de610f04565b34801561050557600080fd5b506103de6105143660046139d6565b610f71565b34801561052557600080fd5b506103de610534366004613d8e565b610f8c565b34801561054557600080fd5b506103f5611010565b34801561055a57600080fd5b506103de610569366004613ca4565b61109e565b34801561057a57600080fd5b50610398600754600160a01b900460ff1690565b34801561059a57600080fd5b506104226105a9366004613d8e565b61112a565b3480156105ba57600080fd5b50610365600f5481565b3480156105d057600080fd5b506103de6105df366004613e54565b6111b5565b3480156105f057600080fd5b506103656105ff36600461398a565b61127d565b34801561061057600080fd5b506103de61061f366004613ad6565b611317565b34801561063057600080fd5b50601654610649906bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff909116815260200161036f565b34801561067257600080fd5b5061036560155481565b34801561068857600080fd5b506103de6116c8565b6103de61069f366004613df2565b611735565b3480156106b057600080fd5b506007546001600160a01b0316610422565b3480156106ce57600080fd5b506103986106dd366004613b94565b611999565b3480156106ee57600080fd5b506103f56119b0565b34801561070357600080fd5b506103f56119bf565b34801561071857600080fd5b50610365600c5481565b34801561072e57600080fd5b506103de61073d366004613a77565b6119cc565b34801561074e57600080fd5b506103de6119db565b34801561076357600080fd5b506013546103989060ff1681565b34801561077d57600080fd5b50610786611a4a565b60405161036f91908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b3480156107c557600080fd5b506103de6107d4366004613ca4565b611aa3565b3480156107e557600080fd5b506103de6107f4366004613cfb565b611b2f565b34801561080557600080fd5b506006546001600160a01b0316610422565b34801561082357600080fd5b506103de610832366004613a11565b611c54565b34801561084357600080fd5b506103f5610852366004613d8e565b611ce2565b34801561086357600080fd5b506103de610872366004613c34565b611d16565b6103de610885366004613d8e565b611d8e565b34801561089657600080fd5b50601754601854601954601a54601b54601c54601d546108cf966001600160a01b03908116968116958116948116938116928116911687565b604080516001600160a01b039889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e00161036f565b34801561092457600080fd5b506103de610933366004613dc7565b611f3a565b34801561094457600080fd5b506103de610953366004613da6565b612008565b34801561096457600080fd5b506103de61097336600461398a565b612078565b34801561098457600080fd5b506103f5612162565b34801561099957600080fd5b506103986109a83660046139a4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e257600080fd5b5061036560145481565b3480156109f857600080fd5b50601654610649906c0100000000000000000000000090046bffffffffffffffffffffffff1681565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a5f5750610a5f8261216f565b90505b919050565b6006546001600160a01b0316336001600160a01b031614610ad15760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b60648201526084015b60405180910390fd5b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152603160248201527f4f776e61626c653a206e657720636f6c6c656374696f6e206f776e657220697360448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610ac8565b610b568161220a565b50565b6060600a8054610b68906140b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b94906140b9565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac8565b506000908152600460205260409020546001600160a01b031690565b6000610c8b8261112a565b9050806001600160a01b0316836001600160a01b03161415610d155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ac8565b336001600160a01b0382161480610d315750610d3181336109a8565b610da35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac8565b610dad83836122d8565b505050565b6006546001600160a01b0316336001600160a01b031614610e175760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e216000612346565b565b610e2e335b82612398565b610ea05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac8565b610dad83838361248f565b6016546000908190819061271090610ee1906c0100000000000000000000000090046bffffffffffffffffffffffff1686614057565b610eeb9190614043565b601d546001600160a01b031693509150505b9250929050565b6006546001600160a01b0316336001600160a01b031614610f695760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e2161265c565b610dad83838360405180602001604052806000815250611c54565b610f9533610e28565b6110075760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610ac8565b610b5681612708565b6009805461101d906140b9565b80601f0160208091040260200160405190810160405280929190818152602001828054611049906140b9565b80156110965780601f1061106b57610100808354040283529160200191611096565b820191906000526020600020905b81548152906001019060200180831161107957829003601f168201915b505050505081565b6006546001600160a01b0316336001600160a01b0316146111035760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b815161111690600a9060208501906137e7565b508051610dad90600b9060208401906137e7565b6000818152600260205260408120546001600160a01b031680610a5f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ac8565b6006546001600160a01b0316336001600160a01b03161461121a5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b601680546bffffffffffffffffffffffff9283166c01000000000000000000000000027fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff949093166bffffffffffffffffffffffff199091161792909216179055565b60006001600160a01b0382166112fb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ac8565b506001600160a01b031660009081526003602052604090205490565b61132a600754600160a01b900460ff1690565b156113775760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac8565b6006546001600160a01b0316336001600160a01b0316146113dc5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b32331461142b5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b6002600854141561147e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b6002600855600d5460005b83518110156116bb57600e546114a090600161402b565b8382815181106114c057634e487b7160e01b600052603260045260246000fd5b6020026020010151836114d3919061402b565b106115205760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c790000000000000000000000000000006044820152606401610ac8565b60015b83828151811061154357634e487b7160e01b600052603260045260246000fd5b60200260200101516001611557919061402b565b8110156115ac5761159a85838151811061158157634e487b7160e01b600052603260045260246000fd5b60200260200101518285611595919061402b565b6127a4565b806115a4816140f4565b915050611523565b508281815181106115cd57634e487b7160e01b600052603260045260246000fd5b6020026020010151601060008684815181106115f957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461162c919061402b565b6010600086848151811061165057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061169c57634e487b7160e01b600052603260045260246000fd5b60200260200101518201915080806116b3906140f4565b915050611489565b50600d5550506001600855565b6006546001600160a01b0316336001600160a01b03161461172d5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e216127be565b60135460ff166117765760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b3233146117c55760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b600260085414156118185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b600260085542821161186c5760405162461bcd60e51b815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610ac8565b6040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b16603483015260488201889052606882018790526088820186905260a88083018690528351808403909101815260c8830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060e88401526101048084018290528451808503909101815261012490930190935281519101206019546001600160a01b031661192a8285612859565b6001600160a01b0316146119805760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697365640000000000000000000000000000000000006044820152606401610ac8565b61198b87878761287d565b505060016008555050505050565b60006119a6848484612b72565b90505b9392505050565b6060600b8054610b68906140b9565b6012805461101d906140b9565b6119d7338383612b88565b5050565b6017546001600160a01b03163314611a355760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697365640000000000000000000000000000000000006044820152606401610ac8565b601754610e21906001600160a01b0316612346565b611a756040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060800160405280600c548152602001600d548152602001600e548152602001600f54815250905090565b6006546001600160a01b0316336001600160a01b031614611b085760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b8151611b1b9060119060208501906137e7565b508051610dad9060129060208401906137e7565b6006546001600160a01b0316336001600160a01b031614611b945760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b60208101516018546001600160a01b03908116911614611bbb57611bbb816020015161220a565b8051601780546001600160a01b03199081166001600160a01b0393841617909155602083015160188054831691841691909117905560408301516019805483169184169190911790556060830151601a805483169184169190911790556080830151601b8054831691841691909117905560a0830151601c8054831691841691909117905560c090920151601d80549093169116179055565b611c5e3383612398565b611cd05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac8565b611cdc84848484612c57565b50505050565b60606012611cef83612cd5565b604051602001611d00929190613ee1565b6040516020818303038152906040529050919050565b6006546001600160a01b0316336001600160a01b031614611d7b5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b6013805460ff1916911515919091179055565b60135460ff16611dcf5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b323314611e1e5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b60026008541415611e715760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b600260085560135460ff16611eb75760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b601454611ec542600161402b565b11611f125760405162461bcd60e51b815260206004820152601260248201527f5075626c69632073616c6520636c6f73656400000000000000000000000000006044820152606401610ac8565b600081600c54611f229190614057565b9050611f318282600f5461287d565b50506001600855565b6006546001600160a01b0316336001600160a01b031614611f9f5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b611faa82600161402b565b600d5410611ffa5760405162461bcd60e51b815260206004820152600e60248201527f537570706c7920746f6f206c6f770000000000000000000000000000000000006044820152606401610ac8565b600c92909255600e55600f55565b6006546001600160a01b0316336001600160a01b03161461206d5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b601491909155601555565b6006546001600160a01b0316336001600160a01b0316146120dd5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b6001600160a01b0381166121595760405162461bcd60e51b815260206004820152602f60248201527f4f776e61626c653a206e657720636f6e7472616374206f776e6572206973207460448201527f6865207a65726f206164647265737300000000000000000000000000000000006064820152608401610ac8565b610b5681612346565b6011805461101d906140b9565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806121d257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a5f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a5f565b6001600160a01b0381166122865760405162461bcd60e51b815260206004820152603160248201527f4f776e61626c653a206e657720636f6c6c656374696f6e206f776e657220697360448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610ac8565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7090ef46c0451552ce067b9ff2f9dac9d943ba57b58039acdd66ee060abd199c90600090a35050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061230d8261112a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2260a4d0c00902d7996e8f7d669d22564414d41be4d278a40387ddf58179d39290600090a35050565b6000818152600260205260408120546001600160a01b03166124115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac8565b600061241c8361112a565b9050806001600160a01b0316846001600160a01b0316148061246357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806124875750836001600160a01b031661247c84610beb565b6001600160a01b0316145b949350505050565b826001600160a01b03166124a28261112a565b6001600160a01b03161461251e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac8565b6001600160a01b0382166125995760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac8565b6125a46000826122d8565b6001600160a01b03831660009081526003602052604081208054600192906125cd908490614076565b90915550506001600160a01b03821660009081526003602052604081208054600192906125fb90849061402b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610dad565b61266f600754600160a01b900460ff1690565b6126bb5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ac8565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006127138261112a565b90506127206000836122d8565b6001600160a01b0381166000908152600360205260408120805460019290612749908490614076565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a46119d7565b6119d7828260405180602001604052806000815250612e24565b6127d1600754600160a01b900460ff1690565b1561281e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac8565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126eb3390565b60008060006128688585612ea2565b9150915061287581612f0f565b509392505050565b600d54601554156128d95760155442106128d95760405162461bcd60e51b815260206004820152600b60248201527f53616c6520636c6f7365640000000000000000000000000000000000000000006044820152606401610ac8565b600e546128e790600161402b565b6128f1858361402b565b1061293e5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c790000000000000000000000000000006044820152606401610ac8565b3360009081526010602052604090205482156129ad578261295f868361402b565b11156129ad5760405162461bcd60e51b815260206004820152601560248201527f4d6178207065722061646472657373206c696d697400000000000000000000006044820152606401610ac8565b6129b7858261402b565b3360009081526010602052604090205560015b6129d586600161402b565b8110156129fc576129ea33611595838661402b565b806129f4816140f4565b9150506129ca565b50908401600d81905560165490919060009061271090612a2a906bffffffffffffffffffffffff1687614057565b612a349190614043565b601a549091506001600160a01b0316612b195784341015612a975760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e742076616c756500000000000000000000000000006044820152606401610ac8565b601b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612ad1573d6000803e3d6000fd5b50601c546001600160a01b03166108fc612aeb8388614076565b6040518115909202916000818181858888f19350505050158015612b13573d6000803e3d6000fd5b50612b6a565b601a54601b546001600160a01b0391821691612b3a91839133911685613112565b601c54612b689033906001600160a01b0316612b56858a614076565b6001600160a01b038516929190613112565b505b505050505050565b600082612b7f858461319a565b14949350505050565b816001600160a01b0316836001600160a01b03161415612bea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c6284848461248f565b612c6e84848484613214565b611cdc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b606081612d16575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610a62565b8160005b8115612d405780612d2a816140f4565b9150612d399050600a83614043565b9150612d1a565b60008167ffffffffffffffff811115612d6957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d93576020820181803683370190505b5090505b841561248757612da8600183614076565b9150612db5600a8661410f565b612dc090603061402b565b60f81b818381518110612de357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612e1d600a86614043565b9450612d97565b612e2e838361336c565b612e3b6000848484613214565b610dad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b600080825160411415612ed95760208301516040840151606085015160001a612ecd878285856134af565b94509450505050610efd565b825160401415612f035760208301516040840151612ef886838361359c565b935093505050610efd565b50600090506002610efd565b6000816004811115612f3157634e487b7160e01b600052602160045260246000fd5b1415612f3c57610b56565b6001816004811115612f5e57634e487b7160e01b600052602160045260246000fd5b1415612fac5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ac8565b6002816004811115612fce57634e487b7160e01b600052602160045260246000fd5b141561301c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ac8565b600381600481111561303e57634e487b7160e01b600052602160045260246000fd5b14156130975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ac8565b60048160048111156130b957634e487b7160e01b600052602160045260246000fd5b1415610b565760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ac8565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611cdc9085906135ee565b600081815b84518110156128755760008582815181106131ca57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131f05760008381526020829052604090209250613201565b600081815260208490526040902092505b508061320c816140f4565b91505061319f565b60006001600160a01b0384163b1561336157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613258903390899088908890600401613f87565b602060405180830381600087803b15801561327257600080fd5b505af19250505080156132a2575060408051601f3d908101601f1916820190925261329f91810190613c88565b60015b613347573d8080156132d0576040519150601f19603f3d011682016040523d82523d6000602084013e6132d5565b606091505b50805161333f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612487565b506001949350505050565b6001600160a01b0382166133c25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac8565b6000818152600260205260409020546001600160a01b0316156134275760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac8565b6001600160a01b038216600090815260036020526040812080546001929061345090849061402b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119d7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156134e65750600090506003613593565b8460ff16601b141580156134fe57508460ff16601c14155b1561350f5750600090506004613593565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613563573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661358c57600060019250925050613593565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816135d260ff86901c601b61402b565b90506135e0878288856134af565b935093505050935093915050565b6000613643826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136d39092919063ffffffff16565b805190915015610dad57808060200190518101906136619190613c50565b610dad5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ac8565b60606119a68484600085856001600160a01b0385163b6137355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ac8565b600080866001600160a01b031685876040516137519190613ec5565b60006040518083038185875af1925050503d806000811461378e576040519150601f19603f3d011682016040523d82523d6000602084013e613793565b606091505b50915091506137a38282866137ae565b979650505050505050565b606083156137bd5750816119a9565b8251156137cd5782518084602001fd5b8160405162461bcd60e51b8152600401610ac89190613fc3565b8280546137f3906140b9565b90600052602060002090601f016020900481019282613815576000855561385b565b82601f1061382e57805160ff191683800117855561385b565b8280016001018555821561385b579182015b8281111561385b578251825591602001919060010190613840565b5061386792915061386b565b5090565b5b80821115613867576000815560010161386c565b80356001600160a01b0381168114610a6257600080fd5b600082601f8301126138a7578081fd5b813560206138bc6138b783614007565b613fd6565b82815281810190858301838502870184018810156138d8578586fd5b855b858110156138f6578135845292840192908401906001016138da565b5090979650505050505050565b600082601f830112613913578081fd5b813567ffffffffffffffff81111561392d5761392d61414f565b613940601f8201601f1916602001613fd6565b818152846020838601011115613954578283fd5b816020850160208301379081016020019190915292915050565b80356bffffffffffffffffffffffff81168114610a6257600080fd5b60006020828403121561399b578081fd5b6119a982613880565b600080604083850312156139b6578081fd5b6139bf83613880565b91506139cd60208401613880565b90509250929050565b6000806000606084860312156139ea578081fd5b6139f384613880565b9250613a0160208501613880565b9150604084013590509250925092565b60008060008060808587031215613a26578081fd5b613a2f85613880565b9350613a3d60208601613880565b925060408501359150606085013567ffffffffffffffff811115613a5f578182fd5b613a6b87828801613903565b91505092959194509250565b60008060408385031215613a89578182fd5b613a9283613880565b91506020830135613aa281614165565b809150509250929050565b60008060408385031215613abf578182fd5b613ac883613880565b946020939093013593505050565b60008060408385031215613ae8578182fd5b823567ffffffffffffffff80821115613aff578384fd5b818501915085601f830112613b12578384fd5b81356020613b226138b783614007565b82815281810190858301838502870184018b1015613b3e578889fd5b8896505b84871015613b6757613b5381613880565b835260019690960195918301918301613b42565b5096505086013592505080821115613b7d578283fd5b50613b8a85828601613897565b9150509250929050565b600080600060608486031215613ba8578081fd5b833567ffffffffffffffff811115613bbe578182fd5b8401601f81018613613bce578182fd5b80356020613bde6138b783614007565b82815281810190848301838502860184018b1015613bfa578687fd5b8695505b84861015613c1c578035835260019590950194918301918301613bfe565b50999188013598505060409096013595945050505050565b600060208284031215613c45578081fd5b81356119a981614165565b600060208284031215613c61578081fd5b81516119a981614165565b600060208284031215613c7d578081fd5b81356119a981614173565b600060208284031215613c99578081fd5b81516119a981614173565b60008060408385031215613cb6578182fd5b823567ffffffffffffffff80821115613ccd578384fd5b613cd986838701613903565b93506020850135915080821115613cee578283fd5b50613b8a85828601613903565b600060e08284031215613d0c578081fd5b613d1660e0613fd6565b613d1f83613880565b8152613d2d60208401613880565b6020820152613d3e60408401613880565b6040820152613d4f60608401613880565b6060820152613d6060808401613880565b6080820152613d7160a08401613880565b60a0820152613d8260c08401613880565b60c08201529392505050565b600060208284031215613d9f578081fd5b5035919050565b60008060408385031215613db8578182fd5b50508035926020909101359150565b600080600060608486031215613ddb578081fd5b505081359360208301359350604090920135919050565b600080600080600060a08688031215613e09578283fd5b85359450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115613e3b578182fd5b613e4788828901613903565b9150509295509295909350565b60008060408385031215613e66578182fd5b613e6f8361396e565b91506139cd6020840161396e565b60008151808452613e9581602086016020860161408d565b601f01601f19169290920160200192915050565b60008151613ebb81856020860161408d565b9290920192915050565b60008251613ed781846020870161408d565b9190910192915050565b8254600090819060028104600180831680613efd57607f831692505b6020808410821415613f1d57634e487b7160e01b87526022600452602487fd5b818015613f315760018114613f4257613f6e565b60ff19861689528489019650613f6e565b60008b815260209020885b86811015613f665781548b820152908501908301613f4d565b505084890196505b505050505050613f7e8185613ea9565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613fb96080830184613e7d565b9695505050505050565b6000602082526119a96020830184613e7d565b604051601f8201601f1916810167ffffffffffffffff81118282101715613fff57613fff61414f565b604052919050565b600067ffffffffffffffff8211156140215761402161414f565b5060209081020190565b6000821982111561403e5761403e614123565b500190565b60008261405257614052614139565b500490565b600081600019048311821515161561407157614071614123565b500290565b60008282101561408857614088614123565b500390565b60005b838110156140a8578181015183820152602001614090565b83811115611cdc5750506000910152565b6002810460018216806140cd57607f821691505b602082108114156140ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561410857614108614123565b5060010190565b60008261411e5761411e614139565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5657600080fd5b6001600160e01b031981168114610b5657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f742074686520636f6e7472a26469706673582212209df32acdff57a8194a8372d06961814dc8d2086067995149a79e7efd55a2888a64736f6c6343000802003300000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000000000000001964000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6000000000000000000000000d4a064dfc124ba714f3fdba73ebd5488e6105db4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b000000000000000000000000e35c19f796ec53d94e87507ae15d8310a35e501b000000000000000000000000e3b69c7010cd75fbbf84e2eae976102e182ce06d000000000000000000000000000000000000000000000000000000000000001f5261677320746f2052696368696520627920416c6563204d6f6e6f706f6c790000000000000000000000000000000000000000000000000000000000000000025252000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c6f75642f697066732f516d556251454e777a6b736f776e6f474e7a7378764e4e456e41334e725136633254386e59566f674862396f3874000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c6f75642f697066732f516d65624a7658417066676b577974613659555032595a4c45436b5665704474444a5636526d47795168667045682f0000000000000000
Deployed Bytecode
0x6080604052600436106103335760003560e01c80638bc3bdec116101b0578063b88d4fde116100ec578063dedf141e11610095578063e8a3d4851161006f578063e8a3d48514610978578063e985e9c51461098d578063eced3873146109d6578063ff949b61146109ec57610333565b8063dedf141e14610938578063df727d3b146106a4578063e61b4ac51461095857610333565b8063d96a094a116100c6578063d96a094a14610877578063da0321cd1461088a578063db06c7e31461091857610333565b8063b88d4fde14610817578063c87b56dd14610837578063d60468361461085757610333565b8063a22cb46511610159578063abb1dc4411610133578063abb1dc4414610771578063aeb2de35146107b9578063b375d492146107d9578063b39e12cf146107f957610333565b8063a22cb46514610722578063a87723bd14610742578063ab7cb2111461075757610333565b806395d89b411161018a57806395d89b41146106e257806398011796146106f7578063a035b1fe1461070c57610333565b80638bc3bdec146106915780638da5cb5b146106a4578063903c6db6146106c257610333565b806342842e0e1161027f578063639814e0116102285780637c88e3d9116102025780637c88e3d914610604578063802924461461062457806381350da3146106665780638456cb591461067c57610333565b8063639814e0146105ae57806369777be2146105c457806370a08231146105e457610333565b80635a446215116102595780635a4462151461054e5780635c975abb1461056e5780636352211e1461058e57610333565b806342842e0e146104f957806342966c681461051957806354fd4d501461053957610333565b8063095ea7b3116102e157806323b872dd116102bb57806323b872dd146104855780632a55205a146104a55780633f4ba83a146104e457610333565b8063095ea7b31461043a57806313c698961461045a57806318160ddd1461046f57610333565b806304dad9351161031257806304dad935146103be57806306fdde03146103e0578063081812fc1461040257610333565b80623d47901461033857806301ffc9a714610378578063047fc9aa146103a8575b600080fd5b34801561034457600080fd5b5061036561035336600461398a565b60106020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561038457600080fd5b50610398610393366004613c6c565b610a21565b604051901515815260200161036f565b3480156103b457600080fd5b50610365600d5481565b3480156103ca57600080fd5b506103de6103d936600461398a565b610a67565b005b3480156103ec57600080fd5b506103f5610b59565b60405161036f9190613fc3565b34801561040e57600080fd5b5061042261041d366004613d8e565b610beb565b6040516001600160a01b03909116815260200161036f565b34801561044657600080fd5b506103de610455366004613aad565b610c80565b34801561046657600080fd5b506103de610db2565b34801561047b57600080fd5b50610365600e5481565b34801561049157600080fd5b506103de6104a03660046139d6565b610e23565b3480156104b157600080fd5b506104c56104c0366004613da6565b610eab565b604080516001600160a01b03909316835260208301919091520161036f565b3480156104f057600080fd5b506103de610f04565b34801561050557600080fd5b506103de6105143660046139d6565b610f71565b34801561052557600080fd5b506103de610534366004613d8e565b610f8c565b34801561054557600080fd5b506103f5611010565b34801561055a57600080fd5b506103de610569366004613ca4565b61109e565b34801561057a57600080fd5b50610398600754600160a01b900460ff1690565b34801561059a57600080fd5b506104226105a9366004613d8e565b61112a565b3480156105ba57600080fd5b50610365600f5481565b3480156105d057600080fd5b506103de6105df366004613e54565b6111b5565b3480156105f057600080fd5b506103656105ff36600461398a565b61127d565b34801561061057600080fd5b506103de61061f366004613ad6565b611317565b34801561063057600080fd5b50601654610649906bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff909116815260200161036f565b34801561067257600080fd5b5061036560155481565b34801561068857600080fd5b506103de6116c8565b6103de61069f366004613df2565b611735565b3480156106b057600080fd5b506007546001600160a01b0316610422565b3480156106ce57600080fd5b506103986106dd366004613b94565b611999565b3480156106ee57600080fd5b506103f56119b0565b34801561070357600080fd5b506103f56119bf565b34801561071857600080fd5b50610365600c5481565b34801561072e57600080fd5b506103de61073d366004613a77565b6119cc565b34801561074e57600080fd5b506103de6119db565b34801561076357600080fd5b506013546103989060ff1681565b34801561077d57600080fd5b50610786611a4a565b60405161036f91908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b3480156107c557600080fd5b506103de6107d4366004613ca4565b611aa3565b3480156107e557600080fd5b506103de6107f4366004613cfb565b611b2f565b34801561080557600080fd5b506006546001600160a01b0316610422565b34801561082357600080fd5b506103de610832366004613a11565b611c54565b34801561084357600080fd5b506103f5610852366004613d8e565b611ce2565b34801561086357600080fd5b506103de610872366004613c34565b611d16565b6103de610885366004613d8e565b611d8e565b34801561089657600080fd5b50601754601854601954601a54601b54601c54601d546108cf966001600160a01b03908116968116958116948116938116928116911687565b604080516001600160a01b039889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e00161036f565b34801561092457600080fd5b506103de610933366004613dc7565b611f3a565b34801561094457600080fd5b506103de610953366004613da6565b612008565b34801561096457600080fd5b506103de61097336600461398a565b612078565b34801561098457600080fd5b506103f5612162565b34801561099957600080fd5b506103986109a83660046139a4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e257600080fd5b5061036560145481565b3480156109f857600080fd5b50601654610649906c0100000000000000000000000090046bffffffffffffffffffffffff1681565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a5f5750610a5f8261216f565b90505b919050565b6006546001600160a01b0316336001600160a01b031614610ad15760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b60648201526084015b60405180910390fd5b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152603160248201527f4f776e61626c653a206e657720636f6c6c656374696f6e206f776e657220697360448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610ac8565b610b568161220a565b50565b6060600a8054610b68906140b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b94906140b9565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac8565b506000908152600460205260409020546001600160a01b031690565b6000610c8b8261112a565b9050806001600160a01b0316836001600160a01b03161415610d155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ac8565b336001600160a01b0382161480610d315750610d3181336109a8565b610da35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac8565b610dad83836122d8565b505050565b6006546001600160a01b0316336001600160a01b031614610e175760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e216000612346565b565b610e2e335b82612398565b610ea05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac8565b610dad83838361248f565b6016546000908190819061271090610ee1906c0100000000000000000000000090046bffffffffffffffffffffffff1686614057565b610eeb9190614043565b601d546001600160a01b031693509150505b9250929050565b6006546001600160a01b0316336001600160a01b031614610f695760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e2161265c565b610dad83838360405180602001604052806000815250611c54565b610f9533610e28565b6110075760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610ac8565b610b5681612708565b6009805461101d906140b9565b80601f0160208091040260200160405190810160405280929190818152602001828054611049906140b9565b80156110965780601f1061106b57610100808354040283529160200191611096565b820191906000526020600020905b81548152906001019060200180831161107957829003601f168201915b505050505081565b6006546001600160a01b0316336001600160a01b0316146111035760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b815161111690600a9060208501906137e7565b508051610dad90600b9060208401906137e7565b6000818152600260205260408120546001600160a01b031680610a5f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ac8565b6006546001600160a01b0316336001600160a01b03161461121a5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b601680546bffffffffffffffffffffffff9283166c01000000000000000000000000027fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff949093166bffffffffffffffffffffffff199091161792909216179055565b60006001600160a01b0382166112fb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ac8565b506001600160a01b031660009081526003602052604090205490565b61132a600754600160a01b900460ff1690565b156113775760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac8565b6006546001600160a01b0316336001600160a01b0316146113dc5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b32331461142b5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b6002600854141561147e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b6002600855600d5460005b83518110156116bb57600e546114a090600161402b565b8382815181106114c057634e487b7160e01b600052603260045260246000fd5b6020026020010151836114d3919061402b565b106115205760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c790000000000000000000000000000006044820152606401610ac8565b60015b83828151811061154357634e487b7160e01b600052603260045260246000fd5b60200260200101516001611557919061402b565b8110156115ac5761159a85838151811061158157634e487b7160e01b600052603260045260246000fd5b60200260200101518285611595919061402b565b6127a4565b806115a4816140f4565b915050611523565b508281815181106115cd57634e487b7160e01b600052603260045260246000fd5b6020026020010151601060008684815181106115f957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461162c919061402b565b6010600086848151811061165057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061169c57634e487b7160e01b600052603260045260246000fd5b60200260200101518201915080806116b3906140f4565b915050611489565b50600d5550506001600855565b6006546001600160a01b0316336001600160a01b03161461172d5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b610e216127be565b60135460ff166117765760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b3233146117c55760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b600260085414156118185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b600260085542821161186c5760405162461bcd60e51b815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610ac8565b6040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b16603483015260488201889052606882018790526088820186905260a88083018690528351808403909101815260c8830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060e88401526101048084018290528451808503909101815261012490930190935281519101206019546001600160a01b031661192a8285612859565b6001600160a01b0316146119805760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697365640000000000000000000000000000000000006044820152606401610ac8565b61198b87878761287d565b505060016008555050505050565b60006119a6848484612b72565b90505b9392505050565b6060600b8054610b68906140b9565b6012805461101d906140b9565b6119d7338383612b88565b5050565b6017546001600160a01b03163314611a355760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697365640000000000000000000000000000000000006044820152606401610ac8565b601754610e21906001600160a01b0316612346565b611a756040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060800160405280600c548152602001600d548152602001600e548152602001600f54815250905090565b6006546001600160a01b0316336001600160a01b031614611b085760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b8151611b1b9060119060208501906137e7565b508051610dad9060129060208401906137e7565b6006546001600160a01b0316336001600160a01b031614611b945760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b60208101516018546001600160a01b03908116911614611bbb57611bbb816020015161220a565b8051601780546001600160a01b03199081166001600160a01b0393841617909155602083015160188054831691841691909117905560408301516019805483169184169190911790556060830151601a805483169184169190911790556080830151601b8054831691841691909117905560a0830151601c8054831691841691909117905560c090920151601d80549093169116179055565b611c5e3383612398565b611cd05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ac8565b611cdc84848484612c57565b50505050565b60606012611cef83612cd5565b604051602001611d00929190613ee1565b6040516020818303038152906040529050919050565b6006546001600160a01b0316336001600160a01b031614611d7b5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b6013805460ff1916911515919091179055565b60135460ff16611dcf5760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b323314611e1e5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610ac8565b60026008541415611e715760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac8565b600260085560135460ff16611eb75760405162461bcd60e51b815260206004820152600c60248201526b109d5e48191a5cd8589b195960a21b6044820152606401610ac8565b601454611ec542600161402b565b11611f125760405162461bcd60e51b815260206004820152601260248201527f5075626c69632073616c6520636c6f73656400000000000000000000000000006044820152606401610ac8565b600081600c54611f229190614057565b9050611f318282600f5461287d565b50506001600855565b6006546001600160a01b0316336001600160a01b031614611f9f5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b611faa82600161402b565b600d5410611ffa5760405162461bcd60e51b815260206004820152600e60248201527f537570706c7920746f6f206c6f770000000000000000000000000000000000006044820152606401610ac8565b600c92909255600e55600f55565b6006546001600160a01b0316336001600160a01b03161461206d5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b601491909155601555565b6006546001600160a01b0316336001600160a01b0316146120dd5760405162461bcd60e51b815260206004820152602b602482015260008051602061418a83398151915260448201526a30b1ba1036b0b730b3b2b960a91b6064820152608401610ac8565b6001600160a01b0381166121595760405162461bcd60e51b815260206004820152602f60248201527f4f776e61626c653a206e657720636f6e7472616374206f776e6572206973207460448201527f6865207a65726f206164647265737300000000000000000000000000000000006064820152608401610ac8565b610b5681612346565b6011805461101d906140b9565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806121d257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a5f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a5f565b6001600160a01b0381166122865760405162461bcd60e51b815260206004820152603160248201527f4f776e61626c653a206e657720636f6c6c656374696f6e206f776e657220697360448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610ac8565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f7090ef46c0451552ce067b9ff2f9dac9d943ba57b58039acdd66ee060abd199c90600090a35050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061230d8261112a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2260a4d0c00902d7996e8f7d669d22564414d41be4d278a40387ddf58179d39290600090a35050565b6000818152600260205260408120546001600160a01b03166124115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac8565b600061241c8361112a565b9050806001600160a01b0316846001600160a01b0316148061246357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806124875750836001600160a01b031661247c84610beb565b6001600160a01b0316145b949350505050565b826001600160a01b03166124a28261112a565b6001600160a01b03161461251e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac8565b6001600160a01b0382166125995760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac8565b6125a46000826122d8565b6001600160a01b03831660009081526003602052604081208054600192906125cd908490614076565b90915550506001600160a01b03821660009081526003602052604081208054600192906125fb90849061402b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610dad565b61266f600754600160a01b900460ff1690565b6126bb5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ac8565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006127138261112a565b90506127206000836122d8565b6001600160a01b0381166000908152600360205260408120805460019290612749908490614076565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a46119d7565b6119d7828260405180602001604052806000815250612e24565b6127d1600754600160a01b900460ff1690565b1561281e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ac8565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126eb3390565b60008060006128688585612ea2565b9150915061287581612f0f565b509392505050565b600d54601554156128d95760155442106128d95760405162461bcd60e51b815260206004820152600b60248201527f53616c6520636c6f7365640000000000000000000000000000000000000000006044820152606401610ac8565b600e546128e790600161402b565b6128f1858361402b565b1061293e5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f75676820737570706c790000000000000000000000000000006044820152606401610ac8565b3360009081526010602052604090205482156129ad578261295f868361402b565b11156129ad5760405162461bcd60e51b815260206004820152601560248201527f4d6178207065722061646472657373206c696d697400000000000000000000006044820152606401610ac8565b6129b7858261402b565b3360009081526010602052604090205560015b6129d586600161402b565b8110156129fc576129ea33611595838661402b565b806129f4816140f4565b9150506129ca565b50908401600d81905560165490919060009061271090612a2a906bffffffffffffffffffffffff1687614057565b612a349190614043565b601a549091506001600160a01b0316612b195784341015612a975760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e742076616c756500000000000000000000000000006044820152606401610ac8565b601b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612ad1573d6000803e3d6000fd5b50601c546001600160a01b03166108fc612aeb8388614076565b6040518115909202916000818181858888f19350505050158015612b13573d6000803e3d6000fd5b50612b6a565b601a54601b546001600160a01b0391821691612b3a91839133911685613112565b601c54612b689033906001600160a01b0316612b56858a614076565b6001600160a01b038516929190613112565b505b505050505050565b600082612b7f858461319a565b14949350505050565b816001600160a01b0316836001600160a01b03161415612bea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c6284848461248f565b612c6e84848484613214565b611cdc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b606081612d16575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610a62565b8160005b8115612d405780612d2a816140f4565b9150612d399050600a83614043565b9150612d1a565b60008167ffffffffffffffff811115612d6957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d93576020820181803683370190505b5090505b841561248757612da8600183614076565b9150612db5600a8661410f565b612dc090603061402b565b60f81b818381518110612de357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612e1d600a86614043565b9450612d97565b612e2e838361336c565b612e3b6000848484613214565b610dad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b600080825160411415612ed95760208301516040840151606085015160001a612ecd878285856134af565b94509450505050610efd565b825160401415612f035760208301516040840151612ef886838361359c565b935093505050610efd565b50600090506002610efd565b6000816004811115612f3157634e487b7160e01b600052602160045260246000fd5b1415612f3c57610b56565b6001816004811115612f5e57634e487b7160e01b600052602160045260246000fd5b1415612fac5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ac8565b6002816004811115612fce57634e487b7160e01b600052602160045260246000fd5b141561301c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ac8565b600381600481111561303e57634e487b7160e01b600052602160045260246000fd5b14156130975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ac8565b60048160048111156130b957634e487b7160e01b600052602160045260246000fd5b1415610b565760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ac8565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611cdc9085906135ee565b600081815b84518110156128755760008582815181106131ca57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116131f05760008381526020829052604090209250613201565b600081815260208490526040902092505b508061320c816140f4565b91505061319f565b60006001600160a01b0384163b1561336157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613258903390899088908890600401613f87565b602060405180830381600087803b15801561327257600080fd5b505af19250505080156132a2575060408051601f3d908101601f1916820190925261329f91810190613c88565b60015b613347573d8080156132d0576040519150601f19603f3d011682016040523d82523d6000602084013e6132d5565b606091505b50805161333f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610ac8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612487565b506001949350505050565b6001600160a01b0382166133c25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac8565b6000818152600260205260409020546001600160a01b0316156134275760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac8565b6001600160a01b038216600090815260036020526040812080546001929061345090849061402b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119d7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156134e65750600090506003613593565b8460ff16601b141580156134fe57508460ff16601c14155b1561350f5750600090506004613593565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613563573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661358c57600060019250925050613593565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816135d260ff86901c601b61402b565b90506135e0878288856134af565b935093505050935093915050565b6000613643826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136d39092919063ffffffff16565b805190915015610dad57808060200190518101906136619190613c50565b610dad5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ac8565b60606119a68484600085856001600160a01b0385163b6137355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ac8565b600080866001600160a01b031685876040516137519190613ec5565b60006040518083038185875af1925050503d806000811461378e576040519150601f19603f3d011682016040523d82523d6000602084013e613793565b606091505b50915091506137a38282866137ae565b979650505050505050565b606083156137bd5750816119a9565b8251156137cd5782518084602001fd5b8160405162461bcd60e51b8152600401610ac89190613fc3565b8280546137f3906140b9565b90600052602060002090601f016020900481019282613815576000855561385b565b82601f1061382e57805160ff191683800117855561385b565b8280016001018555821561385b579182015b8281111561385b578251825591602001919060010190613840565b5061386792915061386b565b5090565b5b80821115613867576000815560010161386c565b80356001600160a01b0381168114610a6257600080fd5b600082601f8301126138a7578081fd5b813560206138bc6138b783614007565b613fd6565b82815281810190858301838502870184018810156138d8578586fd5b855b858110156138f6578135845292840192908401906001016138da565b5090979650505050505050565b600082601f830112613913578081fd5b813567ffffffffffffffff81111561392d5761392d61414f565b613940601f8201601f1916602001613fd6565b818152846020838601011115613954578283fd5b816020850160208301379081016020019190915292915050565b80356bffffffffffffffffffffffff81168114610a6257600080fd5b60006020828403121561399b578081fd5b6119a982613880565b600080604083850312156139b6578081fd5b6139bf83613880565b91506139cd60208401613880565b90509250929050565b6000806000606084860312156139ea578081fd5b6139f384613880565b9250613a0160208501613880565b9150604084013590509250925092565b60008060008060808587031215613a26578081fd5b613a2f85613880565b9350613a3d60208601613880565b925060408501359150606085013567ffffffffffffffff811115613a5f578182fd5b613a6b87828801613903565b91505092959194509250565b60008060408385031215613a89578182fd5b613a9283613880565b91506020830135613aa281614165565b809150509250929050565b60008060408385031215613abf578182fd5b613ac883613880565b946020939093013593505050565b60008060408385031215613ae8578182fd5b823567ffffffffffffffff80821115613aff578384fd5b818501915085601f830112613b12578384fd5b81356020613b226138b783614007565b82815281810190858301838502870184018b1015613b3e578889fd5b8896505b84871015613b6757613b5381613880565b835260019690960195918301918301613b42565b5096505086013592505080821115613b7d578283fd5b50613b8a85828601613897565b9150509250929050565b600080600060608486031215613ba8578081fd5b833567ffffffffffffffff811115613bbe578182fd5b8401601f81018613613bce578182fd5b80356020613bde6138b783614007565b82815281810190848301838502860184018b1015613bfa578687fd5b8695505b84861015613c1c578035835260019590950194918301918301613bfe565b50999188013598505060409096013595945050505050565b600060208284031215613c45578081fd5b81356119a981614165565b600060208284031215613c61578081fd5b81516119a981614165565b600060208284031215613c7d578081fd5b81356119a981614173565b600060208284031215613c99578081fd5b81516119a981614173565b60008060408385031215613cb6578182fd5b823567ffffffffffffffff80821115613ccd578384fd5b613cd986838701613903565b93506020850135915080821115613cee578283fd5b50613b8a85828601613903565b600060e08284031215613d0c578081fd5b613d1660e0613fd6565b613d1f83613880565b8152613d2d60208401613880565b6020820152613d3e60408401613880565b6040820152613d4f60608401613880565b6060820152613d6060808401613880565b6080820152613d7160a08401613880565b60a0820152613d8260c08401613880565b60c08201529392505050565b600060208284031215613d9f578081fd5b5035919050565b60008060408385031215613db8578182fd5b50508035926020909101359150565b600080600060608486031215613ddb578081fd5b505081359360208301359350604090920135919050565b600080600080600060a08688031215613e09578283fd5b85359450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115613e3b578182fd5b613e4788828901613903565b9150509295509295909350565b60008060408385031215613e66578182fd5b613e6f8361396e565b91506139cd6020840161396e565b60008151808452613e9581602086016020860161408d565b601f01601f19169290920160200192915050565b60008151613ebb81856020860161408d565b9290920192915050565b60008251613ed781846020870161408d565b9190910192915050565b8254600090819060028104600180831680613efd57607f831692505b6020808410821415613f1d57634e487b7160e01b87526022600452602487fd5b818015613f315760018114613f4257613f6e565b60ff19861689528489019650613f6e565b60008b815260209020885b86811015613f665781548b820152908501908301613f4d565b505084890196505b505050505050613f7e8185613ea9565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613fb96080830184613e7d565b9695505050505050565b6000602082526119a96020830184613e7d565b604051601f8201601f1916810167ffffffffffffffff81118282101715613fff57613fff61414f565b604052919050565b600067ffffffffffffffff8211156140215761402161414f565b5060209081020190565b6000821982111561403e5761403e614123565b500190565b60008261405257614052614139565b500490565b600081600019048311821515161561407157614071614123565b500290565b60008282101561408857614088614123565b500390565b60005b838110156140a8578181015183820152602001614090565b83811115611cdc5750506000910152565b6002810460018216806140cd57607f821691505b602082108114156140ee57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561410857614108614123565b5060010190565b60008261411e5761411e614139565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5657600080fd5b6001600160e01b031981168114610b5657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f742074686520636f6e7472a26469706673582212209df32acdff57a8194a8372d06961814dc8d2086067995149a79e7efd55a2888a64736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000000000000001964000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6000000000000000000000000d4a064dfc124ba714f3fdba73ebd5488e6105db4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b000000000000000000000000e35c19f796ec53d94e87507ae15d8310a35e501b000000000000000000000000e3b69c7010cd75fbbf84e2eae976102e182ce06d000000000000000000000000000000000000000000000000000000000000001f5261677320746f2052696368696520627920416c6563204d6f6e6f706f6c790000000000000000000000000000000000000000000000000000000000000000025252000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c6f75642f697066732f516d556251454e777a6b736f776e6f474e7a7378764e4e456e41334e725136633254386e59566f674862396f3874000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c6f75642f697066732f516d65624a7658417066676b577974613659555032595a4c45436b5665704474444a5636526d47795168667045682f0000000000000000
-----Decoded View---------------
Arg [0] : __name (string): Rags to Richie by Alec Monopoly
Arg [1] : __symbol (string): RR
Arg [2] : _price (uint256): 500000000000000000
Arg [3] : _totalSupply (uint256): 6500
Arg [4] : _contractMetadataURI (string): https://ragstorichie.mypinata.cloud/ipfs/QmUbQENwzksownoGNzsxvNNEnA3NrQ6c2T8nYVogHb9o8t
Arg [5] : _tokenMetadataURI (string): https://ragstorichie.mypinata.cloud/ipfs/QmebJvXApfgkWyta6YUP2YZLECkVepDtDJV6RmGyQhfpEh/
Arg [6] : _allowBuy (bool): True
Arg [7] : _maxPerAddress (uint256): 0
Arg [8] : _addresses (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [2] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001964
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6
Arg [9] : 000000000000000000000000c346f7ae96f0a1455b90dcb95232f11b9060f4c6
Arg [10] : 000000000000000000000000d4a064dfc124ba714f3fdba73ebd5488e6105db4
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 00000000000000000000000062d516276381042016b38b65c89c05ea59ccb13b
Arg [13] : 000000000000000000000000e35c19f796ec53d94e87507ae15d8310a35e501b
Arg [14] : 000000000000000000000000e3b69c7010cd75fbbf84e2eae976102e182ce06d
Arg [15] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [16] : 5261677320746f2052696368696520627920416c6563204d6f6e6f706f6c7900
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [18] : 5252000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [20] : 68747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c
Arg [21] : 6f75642f697066732f516d556251454e777a6b736f776e6f474e7a7378764e4e
Arg [22] : 456e41334e725136633254386e59566f674862396f3874000000000000000000
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000058
Arg [24] : 68747470733a2f2f72616773746f7269636869652e6d7970696e6174612e636c
Arg [25] : 6f75642f697066732f516d65624a7658417066676b577974613659555032595a
Arg [26] : 4c45436b5665704474444a5636526d47795168667045682f0000000000000000
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.