Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
3,000 AE
Holders
892
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 AELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AlphaElementary
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "ERC721.sol"; import "IERC2981.sol"; import "Pausable.sol"; import "ReentrancyGuard.sol"; import "Ownable.sol"; import "MerkleProof.sol"; import "Counters.sol"; import "ContentMixin.sol"; import "NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } // _ _____ _______ ____ ____ _ // / \ |_ _| |_ __ \|_ || _| / \ // / _ \ | | | |__) | | |__| | / _ \ // / ___ \ | | _ | ___/ | __ | / ___ \ Artist: SaJo // _/ / \ \_ _| |__/ | _| |_ _| | | |_ _/ / \ \_ Dev: HogChop // |____|_|____||________||_____| _|____||____||____|_|____|__ _____ _________ _ _______ ____ ____ // |_ __ ||_ _| |_ __ ||_ \ / _||_ __ ||_ \|_ _|| _ _ | / \ |_ __ \ |_ _||_ _| // | |_ \_| | | | |_ \_| | \/ | | |_ \_| | \ | | |_/ | | \_| / _ \ | |__) | \ \ / / // | _| _ | | _ | _| _ | |\ /| | | _| _ | |\ \| | | | / ___ \ | __ / \ \/ / // _| |__/ | _| |__/ | _| |__/ | _| |_\/_| |_ _| |__/ | _| |_\ |_ _| |_ _/ / \ \_ _| | \ \_ _| |_ // |________||________||________||_____||_____||________||_____|\____| |_____||____| |____||____| |___||______| contract AlphaElementary is ERC721, IERC2981, Pausable, Ownable, ReentrancyGuard, ContextMixin, NativeMetaTransaction { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; bool public preLiveToggle; bool public saleLiveToggle; bool public freezeURI; bool public contractRoyalties; bytes32 private wlisteRoot; bytes32 private xileMkRoot; uint32 public constant MAX_NFT = 3000; uint32 private constant MAX_MINT = 4; uint32 private constant MAX_GIFT = 35; uint32 public GIFT_COUNT = 0; uint256 public PRICE = 0.07 ether; uint256 public XILE_PRICE = 0.05 ether; // for Xile and Xalt holders address private _creators; address public proxyRegistryAddress; string private _contractURI; string private _metadataBaseURI; mapping(address => uint256) private presalePurchased; // ** MODIFIERS ** // // *************** // modifier saleLive() { require(saleLiveToggle == true, "Sale is closed"); _; } modifier preSaleLive() { require(preLiveToggle == true, "Presale is closed"); _; } modifier allocTokens(uint32 numToMint) { require( totalSupply() + numToMint <= (MAX_NFT - (MAX_GIFT - GIFT_COUNT)), "Sorry, there are not enough artworks remaining." ); _; } modifier maxOwned(uint32 numToMint) { require( presalePurchased[_msgSender()] + numToMint <= MAX_MINT, "Max 4 mints for presale" ); _; } modifier correctPayment(uint256 mintPrice, uint32 numToMint) { require( msg.value == mintPrice * numToMint, "Payment failed, please ensure you are paying the correct amount." ); _; } constructor( string memory _cURI, string memory _mURI, address _creatorAdd, address _proxyRegistryAddress ) ERC721("Alpha Elementary", "AE") { _contractURI = _cURI; _metadataBaseURI = _mURI; _creators = _creatorAdd; proxyRegistryAddress = _proxyRegistryAddress; _tokenIdCounter.increment(); } // ** MINTING FUNCS ** // // ******************* // function aeMint(uint32 mintNum) external payable nonReentrant saleLive allocTokens(mintNum) correctPayment(PRICE, mintNum) { require( balanceOf(_msgSender()) + mintNum <= MAX_MINT, "Limit of 4 per wallet" ); for (uint32 i = 0; i < mintNum; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(_msgSender(), tokenId); } } function preMint(uint32 mintNum, bytes32[] calldata merkleProof) external payable nonReentrant preSaleLive maxOwned(mintNum) correctPayment(PRICE, mintNum) { require( MerkleProof.verify( merkleProof, wlisteRoot, keccak256(abi.encodePacked(_msgSender())) ), "Not on whitelist" ); presalePurchased[_msgSender()] += mintNum; for (uint32 i = 0; i < mintNum; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(_msgSender(), tokenId); } } function xileMint(uint32 mintNum, bytes32[] calldata merkleProof) external payable nonReentrant preSaleLive maxOwned(mintNum) correctPayment(XILE_PRICE, mintNum) { require( MerkleProof.verify( merkleProof, xileMkRoot, keccak256(abi.encodePacked(_msgSender())) ), "Not on Xile whitelist" ); presalePurchased[_msgSender()] += mintNum; for (uint32 i = 0; i < mintNum; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(_msgSender(), tokenId); } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } // ** ADMIN ** // // *********** // function giftMint(address[] calldata receivers) public onlyOwner { require( totalSupply() + receivers.length <= MAX_NFT, "Sorry, there are not enough artworks remaining." ); require( GIFT_COUNT + receivers.length <= MAX_GIFT, "no gifts remaining" ); for (uint32 i = 0; i < receivers.length; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); GIFT_COUNT++; _safeMint(receivers[i], tokenId); } } function getOwnersTokens(address _owner) public view returns (uint256[] memory) { require(balanceOf(_owner) > 0, "You don't currently hold any tokens"); uint256 tokenCount = balanceOf(_owner); uint256 foundTokens = 0; uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i = 1; i < _tokenIdCounter.current(); i++) { if (ownerOf(i) == _owner) { tokenIds[foundTokens] = i; foundTokens++; } } return tokenIds; } function _baseURI() internal view override returns (string memory) { return _metadataBaseURI; } function withdrawFunds(uint256 _amt) public onlyOwner { uint256 pay_amt; if (_amt == 0) { pay_amt = address(this).balance; } else { pay_amt = _amt; } (bool success, ) = payable(_creators).call{value: pay_amt}(""); require(success, "Failed to send payment, let the artists starve!"); } // ** SETTINGS ** // // ************** // function metaURI(string calldata _URI) external onlyOwner { require(freezeURI == false, "Metadata has been frozen"); _metadataBaseURI = _URI; } function cntURI(string calldata _URI) external onlyOwner { _contractURI = _URI; } function tglLive() external onlyOwner { saleLiveToggle = !saleLiveToggle; } function tglPresale() external onlyOwner { preLiveToggle = !preLiveToggle; } function freezeAll() external onlyOwner { require(freezeURI == false, "Metadata is already frozen"); freezeURI = true; } /** * @dev Reserve ability to make use of {IERC165-royaltyInfo} standard to implement royalties. */ function tglRoyalties() external onlyOwner { contractRoyalties = !contractRoyalties; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function updatePrice(uint256 _price, uint32 _list) external onlyOwner { if (_list == 0) { // sale price PRICE = _price; } else { // xile price XILE_PRICE = _price; } } function setMerkleRoot(bytes32 _root, uint32 _list) external onlyOwner { if (_list == 0) { // update main whitelist wlisteRoot = _root; } else { // update xile whitelist xileMkRoot = _root; } } function contractURI() external view returns (string memory) { return _contractURI; } function totalSupply() public view returns (uint256) { return _tokenIdCounter.current() - 1; } function setCreator(address to) external onlyOwner returns (address) { _creators = to; return _creators; } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } /** * @dev See {IERC165-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Nonexistent token"); require(contractRoyalties == true, "Royalties dissabled"); return (address(this), (salePrice * 7) / 100); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function _msgSender() internal view override returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _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 || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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 v4.4.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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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 v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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.0 (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) pragma solidity ^0.8.0; import "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 (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.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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. */ 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 Merklee 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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "SafeMath.sol"; import {EIP712Base} from "EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 1000 }, "libraries": { "Alpha_Elementary_Contract.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_cURI","type":"string"},{"internalType":"string","name":"_mURI","type":"string"},{"internalType":"address","name":"_creatorAdd","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GIFT_COUNT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XILE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"mintNum","type":"uint32"}],"name":"aeMint","outputs":[],"stateMutability":"payable","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":"string","name":"_URI","type":"string"}],"name":"cntURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractRoyalties","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freezeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnersTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"giftMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"metaURI","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":"preLiveToggle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"mintNum","type":"uint32"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLiveToggle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"setCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"uint32","name":"_list","type":"uint32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tglLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tglPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tglRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint32","name":"_list","type":"uint32"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"mintNum","type":"uint32"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"xileMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526008805460ff19169055600f805463ffffffff1916905566f8b0a10e47000060105566b1a2bc2ec500006011553480156200003e57600080fd5b506040516200458b3803806200458b8339810160408190526200006191620003dd565b604080518082018252601081526f416c70686120456c656d656e7461727960801b602080830191825283518085019094526002845261414560f01b908401528151919291620000b3916000916200024d565b508051620000c99060019060208401906200024d565b50506006805460ff1916905550620000ea620000e46200016f565b6200018b565b60016007558351620001049060149060208701906200024d565b5082516200011a9060159060208601906200024d565b50601280546001600160a01b03199081166001600160a01b03858116919091179092556013805490911691831691909117905562000165600b620001e5602090811b620029d117901c565b50505050620004a9565b600062000186620001ee60201b620029da1760201c565b905090565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b6000333014156200024757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200024a9050565b50335b90565b8280546200025b906200046c565b90600052602060002090601f0160209004810192826200027f5760008555620002ca565b82601f106200029a57805160ff1916838001178555620002ca565b82800160010185558215620002ca579182015b82811115620002ca578251825591602001919060010190620002ad565b50620002d8929150620002dc565b5090565b5b80821115620002d85760008155600101620002dd565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031b57600080fd5b81516001600160401b0380821115620003385762000338620002f3565b604051601f8301601f19908116603f01168101908282118183101715620003635762000363620002f3565b816040528381526020925086838588010111156200038057600080fd5b600091505b83821015620003a4578582018301518183018401529082019062000385565b83821115620003b65760008385830101525b9695505050505050565b80516001600160a01b0381168114620003d857600080fd5b919050565b60008060008060808587031215620003f457600080fd5b84516001600160401b03808211156200040c57600080fd5b6200041a8883890162000309565b955060208701519150808211156200043157600080fd5b50620004408782880162000309565b9350506200045160408601620003c0565b91506200046160608601620003c0565b905092959194509250565b600181811c908216806200048157607f821691505b60208210811415620004a357634e487b7160e01b600052602260045260246000fd5b50919050565b6140d280620004b96000396000f3fe60806040526004361061033f5760003560e01c80637cf0f69b116101b0578063c87b56dd116100ec578063e0d8a4a711610095578063ebce32c91161006f578063ebce32c91461092b578063f2fde38b1461093e578063f95fe25b1461095e578063ffd31af61461097e57600080fd5b8063e0d8a4a7146108d6578063e8a3d485146108f6578063e985e9c51461090b57600080fd5b8063da77580c116100c6578063da77580c14610881578063daa9855c14610894578063dd0b0080146108c157600080fd5b8063c87b56dd14610821578063cd7c032614610841578063d26ea6c01461086157600080fd5b8063a22cb46511610159578063af39a8e211610133578063af39a8e2146107ab578063b7f00efe146107cb578063b88d4fde146107e1578063c793803c1461080157600080fd5b8063a22cb46514610758578063a5fd7bec14610778578063ab3587df1461079857600080fd5b80638da5cb5b1161018a5780638da5cb5b1461070b57806395d89b411461072e57806399464c891461074357600080fd5b80637cf0f69b146106cb5780638456cb59146106e05780638d859f3e146106f557600080fd5b80633408e4701161027f5780635c975abb116102285780636352211e116102025780636352211e146106605780636fdaddf11461068057806370a0823114610696578063715018a6146106b657600080fd5b80635c975abb146105f657806361595d121461060e57806362861d0b1461062e57600080fd5b80633f516018116102595780633f5160181461059c57806342842e0e146105bc5780634da95e19146105dc57600080fd5b80633408e4701461055f5780633a92b81a146105725780633f4ba83a1461058757600080fd5b80630f7e5970116102ec57806320379ee5116102c657806320379ee5146104b557806323b872dd146104ca5780632a55205a146104ea5780632d0335ab1461052957600080fd5b80630f7e597014610429578063155dd5ee1461047257806318160ddd1461049257600080fd5b8063095ea7b31161031d578063095ea7b3146103d35780630982790e146103f55780630c53c51c1461041657600080fd5b806301ffc9a71461034457806306fdde0314610379578063081812fc1461039b575b600080fd5b34801561035057600080fd5b5061036461035f36600461386f565b61099d565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061038e610a3a565b60405161037091906138e4565b3480156103a757600080fd5b506103bb6103b63660046138f7565b610acc565b6040516001600160a01b039091168152602001610370565b3480156103df57600080fd5b506103f36103ee366004613925565b610b66565b005b34801561040157600080fd5b50600c54610364906301000000900460ff1681565b61038e6104243660046139f4565b610caa565b34801561043557600080fd5b5061038e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561047e57600080fd5b506103f361048d3660046138f7565b610eb0565b34801561049e57600080fd5b506104a7610ff7565b604051908152602001610370565b3480156104c157600080fd5b506009546104a7565b3480156104d657600080fd5b506103f36104e5366004613a72565b611013565b3480156104f657600080fd5b5061050a610505366004613ab3565b6110a1565b604080516001600160a01b039093168352602083019190915201610370565b34801561053557600080fd5b506104a7610544366004613ad5565b6001600160a01b03166000908152600a602052604090205490565b34801561056b57600080fd5b50466104a7565b34801561057e57600080fd5b506103f3611189565b34801561059357600080fd5b506103f361120a565b3480156105a857600080fd5b506103bb6105b7366004613ad5565b611281565b3480156105c857600080fd5b506103f36105d7366004613a72565b611315565b3480156105e857600080fd5b50600c546103649060ff1681565b34801561060257600080fd5b5060065460ff16610364565b34801561061a57600080fd5b506103f3610629366004613b06565b611330565b34801561063a57600080fd5b50600f5461064b9063ffffffff1681565b60405163ffffffff9091168152602001610370565b34801561066c57600080fd5b506103bb61067b3660046138f7565b6113b8565b34801561068c57600080fd5b5061064b610bb881565b3480156106a257600080fd5b506104a76106b1366004613ad5565b611443565b3480156106c257600080fd5b506103f36114dd565b3480156106d757600080fd5b506103f3611554565b3480156106ec57600080fd5b506103f36115de565b34801561070157600080fd5b506104a760105481565b34801561071757600080fd5b5060065461010090046001600160a01b03166103bb565b34801561073a57600080fd5b5061038e611653565b34801561074f57600080fd5b506103f3611662565b34801561076457600080fd5b506103f3610773366004613b32565b61173b565b34801561078457600080fd5b506103f3610793366004613bb5565b61174d565b6103f36107a6366004613bf7565b611953565b3480156107b757600080fd5b506103f36107c6366004613c4a565b611c93565b3480156107d757600080fd5b506104a760115481565b3480156107ed57600080fd5b506103f36107fc366004613cbc565b611d0c565b34801561080d57600080fd5b50600c546103649062010000900460ff1681565b34801561082d57600080fd5b5061038e61083c3660046138f7565b611da1565b34801561084d57600080fd5b506013546103bb906001600160a01b031681565b34801561086d57600080fd5b506103f361087c366004613ad5565b611e8a565b6103f361088f366004613bf7565b611f19565b3480156108a057600080fd5b506108b46108af366004613ad5565b612208565b6040516103709190613d28565b3480156108cd57600080fd5b506103f3612353565b3480156108e257600080fd5b506103f36108f1366004613c4a565b6123e1565b34801561090257600080fd5b5061038e6124b3565b34801561091757600080fd5b50610364610926366004613d6c565b6124c2565b6103f3610939366004613d9a565b61259c565b34801561094a57600080fd5b506103f3610959366004613ad5565b612858565b34801561096a57600080fd5b506103f3610979366004613b06565b61294d565b34801561098a57600080fd5b50600c5461036490610100900460ff1681565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a0057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a3457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610a4990613db5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7590613db5565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b71826113b8565b9050806001600160a01b0316836001600160a01b03161415610bfb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b41565b806001600160a01b0316610c0d612a37565b6001600160a01b03161480610c295750610c2981610926612a37565b610c9b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b41565b610ca58383612a41565b505050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610ce88782878787612aaf565b610d5a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610b41565b6001600160a01b0387166000908152600a6020526040902054610d7e906001612bb7565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610dce90899033908a90613df0565b60405180910390a1600080306001600160a01b0316888a604051602001610df6929190613e25565b60408051601f1981840301815290829052610e1091613e5c565b6000604051808303816000865af19150503d8060008114610e4d576040519150601f19603f3d011682016040523d82523d6000602084013e610e52565b606091505b509150915081610ea45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b41565b98975050505050505050565b610eb8612a37565b6001600160a01b0316610ed96006546001600160a01b036101009091041690565b6001600160a01b031614610f1d5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600081610f2b575047610f2e565b50805b6012546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610f7b576040519150601f19603f3d011682016040523d82523d6000602084013e610f80565b606091505b5050905080610ca55760405162461bcd60e51b815260206004820152602f60248201527f4661696c656420746f2073656e64207061796d656e742c206c6574207468652060448201527f61727469737473207374617276652100000000000000000000000000000000006064820152608401610b41565b60006001611004600b5490565b61100e9190613e8e565b905090565b61102461101e612a37565b82612bc3565b6110965760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b41565b610ca5838383612c92565b60008281526002602052604081205481906001600160a01b03166111075760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b41565b600c546301000000900460ff1615156001146111655760405162461bcd60e51b815260206004820152601360248201527f526f79616c74696573206469737361626c6564000000000000000000000000006044820152606401610b41565b306064611173856007613ea5565b61117d9190613eda565b915091505b9250929050565b611191612a37565b6001600160a01b03166111b26006546001600160a01b036101009091041690565b6001600160a01b0316146111f65760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805460ff19811660ff90911615179055565b611212612a37565b6001600160a01b03166112336006546001600160a01b036101009091041690565b6001600160a01b0316146112775760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f612e6a565b565b600061128b612a37565b6001600160a01b03166112ac6006546001600160a01b036101009091041690565b6001600160a01b0316146112f05760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b50601280546001600160a01b0319166001600160a01b0383169081179091555b919050565b610ca583838360405180602001604052806000815250611d0c565b611338612a37565b6001600160a01b03166113596006546001600160a01b036101009091041690565b6001600160a01b03161461139d5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b63ffffffff81166113ae5750600d55565b600e8290555b5050565b6000818152600260205260408120546001600160a01b031680610a345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b41565b60006001600160a01b0382166114c15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b41565b506001600160a01b031660009081526003602052604090205490565b6114e5612a37565b6001600160a01b03166115066006546001600160a01b036101009091041690565b6001600160a01b03161461154a5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f6000612f0c565b61155c612a37565b6001600160a01b031661157d6006546001600160a01b036101009091041690565b6001600160a01b0316146115c15760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805461ff001981166101009182900460ff1615909102179055565b6115e6612a37565b6001600160a01b03166116076006546001600160a01b036101009091041690565b6001600160a01b03161461164b5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f612f7d565b606060018054610a4990613db5565b61166a612a37565b6001600160a01b031661168b6006546001600160a01b036101009091041690565b6001600160a01b0316146116cf5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c5462010000900460ff16156117285760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120697320616c72656164792066726f7a656e0000000000006044820152606401610b41565b600c805462ff0000191662010000179055565b6113b4611746612a37565b8383613006565b611755612a37565b6001600160a01b03166117766006546001600160a01b036101009091041690565b6001600160a01b0316146117ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b610bb8816117c6610ff7565b6117d09190613eee565b11156118445760405162461bcd60e51b815260206004820152602f60248201527f536f7272792c20746865726520617265206e6f7420656e6f756768206172747760448201527f6f726b732072656d61696e696e672e00000000000000000000000000000000006064820152608401610b41565b600f5460239061185b90839063ffffffff16613eee565b11156118a95760405162461bcd60e51b815260206004820152601260248201527f6e6f2067696674732072656d61696e696e6700000000000000000000000000006044820152606401610b41565b60005b63ffffffff8116821115610ca55760006118c5600b5490565b90506118d5600b80546001019055565b600f805463ffffffff169060006118eb83613f06565b91906101000a81548163ffffffff021916908363ffffffff1602179055505061194084848463ffffffff1681811061192557611925613f2a565b905060200201602081019061193a9190613ad5565b826130d5565b508061194b81613f06565b9150506118ac565b600260075414156119a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff161515600114611a025760405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f7365640000000000000000000000000000006044820152606401610b41565b82600463ffffffff821660166000611a18612a37565b6001600160a01b03166001600160a01b0316815260200190815260200160002054611a439190613eee565b1115611a915760405162461bcd60e51b815260206004820152601760248201527f4d61782034206d696e747320666f722070726573616c650000000000000000006044820152606401610b41565b60105484611aa563ffffffff821683613ea5565b3414611b1b576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b611ba185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150611b5e9050612a37565b604051602001611b86919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001206130ef565b611bed5760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f6e2077686974656c697374000000000000000000000000000000006044820152606401610b41565b8563ffffffff1660166000611c00612a37565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611c2f9190613eee565b90915550600090505b8663ffffffff168163ffffffff161015611c85576000611c57600b5490565b9050611c67600b80546001019055565b611c7261193a612a37565b5080611c7d81613f06565b915050611c38565b505060016007555050505050565b611c9b612a37565b6001600160a01b0316611cbc6006546001600160a01b036101009091041690565b6001600160a01b031614611d005760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b610ca5601483836137c0565b611d1d611d17612a37565b83612bc3565b611d8f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b41565b611d9b84848484613105565b50505050565b6000818152600260205260409020546060906001600160a01b0316611e2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b41565b6000611e38613183565b90506000815111611e585760405180602001604052806000815250611e83565b80611e6284613192565b604051602001611e73929190613f40565b6040516020818303038152906040525b9392505050565b611e92612a37565b6001600160a01b0316611eb36006546001600160a01b036101009091041690565b6001600160a01b031614611ef75760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60026007541415611f6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff161515600114611fc85760405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f7365640000000000000000000000000000006044820152606401610b41565b82600463ffffffff821660166000611fde612a37565b6001600160a01b03166001600160a01b03168152602001908152602001600020546120099190613eee565b11156120575760405162461bcd60e51b815260206004820152601760248201527f4d61782034206d696e747320666f722070726573616c650000000000000000006044820152606401610b41565b6011548461206b63ffffffff821683613ea5565b34146120e1576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b61212485858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150611b5e9050612a37565b6121705760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f6e2058696c652077686974656c69737400000000000000000000006044820152606401610b41565b8563ffffffff1660166000612183612a37565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121b29190613eee565b90915550600090505b8663ffffffff168163ffffffff161015611c855760006121da600b5490565b90506121ea600b80546001019055565b6121f561193a612a37565b508061220081613f06565b9150506121bb565b6060600061221583611443565b116122885760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742063757272656e746c7920686f6c6420616e7920746f6b60448201527f656e7300000000000000000000000000000000000000000000000000000000006064820152608401610b41565b600061229383611443565b90506000808267ffffffffffffffff8111156122b1576122b1613951565b6040519080825280602002602001820160405280156122da578160200160208202803683370190505b50905060015b600b5481101561234a57856001600160a01b03166122fd826113b8565b6001600160a01b03161415612338578082848151811061231f5761231f613f2a565b60209081029190910101528261233481613f6f565b9350505b8061234281613f6f565b9150506122e0565b50949350505050565b61235b612a37565b6001600160a01b031661237c6006546001600160a01b036101009091041690565b6001600160a01b0316146123c05760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805463ff00000019811663010000009182900460ff1615909102179055565b6123e9612a37565b6001600160a01b031661240a6006546001600160a01b036101009091041690565b6001600160a01b03161461244e5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c5462010000900460ff16156124a75760405162461bcd60e51b815260206004820152601860248201527f4d6574616461746120686173206265656e2066726f7a656e00000000000000006044820152606401610b41565b610ca5601583836137c0565b606060148054610a4990613db5565b6013546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa15801561252d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125519190613f8a565b6001600160a01b0316141561256a576001915050610a34565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600260075414156125ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff6101009091041615156001146126515760405162461bcd60e51b815260206004820152600e60248201527f53616c6520697320636c6f7365640000000000000000000000000000000000006044820152606401610b41565b600f5481906126679063ffffffff166023613fa7565b61267390610bb8613fa7565b63ffffffff168163ffffffff16612688610ff7565b6126929190613eee565b11156127065760405162461bcd60e51b815260206004820152602f60248201527f536f7272792c20746865726520617265206e6f7420656e6f756768206172747760448201527f6f726b732072656d61696e696e672e00000000000000000000000000000000006064820152608401610b41565b6010548261271a63ffffffff821683613ea5565b3414612790576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b600463ffffffff85166127a46106b1612a37565b6127ae9190613eee565b11156127fc5760405162461bcd60e51b815260206004820152601560248201527f4c696d6974206f662034207065722077616c6c657400000000000000000000006044820152606401610b41565b60005b8463ffffffff168163ffffffff16101561284c57600061281e600b5490565b905061282e600b80546001019055565b61283961193a612a37565b508061284481613f06565b9150506127ff565b50506001600755505050565b612860612a37565b6001600160a01b03166128816006546001600160a01b036101009091041690565b6001600160a01b0316146128c55760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b6001600160a01b0381166129415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b41565b61294a81612f0c565b50565b612955612a37565b6001600160a01b03166129766006546001600160a01b036101009091041690565b6001600160a01b0316146129ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b63ffffffff81166129cb5750601055565b50601155565b80546001019055565b600033301415612a3157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612a349050565b50335b90565b600061100e6129da565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a76826113b8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612b2d5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610b41565b6001612b40612b3b876132c4565b613341565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612b8e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611e838284613eee565b6000818152600260205260408120546001600160a01b0316612c3c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b41565b6000612c47836113b8565b9050806001600160a01b0316846001600160a01b03161480612c825750836001600160a01b0316612c7784610acc565b6001600160a01b0316145b80612594575061259481856124c2565b826001600160a01b0316612ca5826113b8565b6001600160a01b031614612d215760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b41565b6001600160a01b038216612d9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b41565b612da783838361338c565b612db2600082612a41565b6001600160a01b0383166000908152600360205260408120805460019290612ddb908490613e8e565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e09908490613eee565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff16612ebc5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b41565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eef612a37565b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615612fd05760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b41565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612eef612a37565b816001600160a01b0316836001600160a01b031614156130685760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b41565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113b48282604051806020016040528060008152506133df565b6000826130fc858461345d565b14949350505050565b613110848484612c92565b61311c84848484613509565b611d9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b606060158054610a4990613db5565b6060816131d257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156131fc57806131e681613f6f565b91506131f59050600a83613eda565b91506131d6565b60008167ffffffffffffffff81111561321757613217613951565b6040519080825280601f01601f191660200182016040528015613241576020820181803683370190505b5090505b841561259457613256600183613e8e565b9150613263600a86613fcc565b61326e906030613eee565b60f81b81838151811061328357613283613f2a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506132bd600a86613eda565b9450613245565b600060405180608001604052806043815260200161403a6043913980516020918201208351848301516040808701518051908601209051613324950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061334c60095490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613324565b60065460ff1615610ca55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b41565b6133e98383613672565b6133f66000848484613509565b610ca55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b600081815b845181101561350157600085828151811061347f5761347f613f2a565b602002602001015190508083116134c15760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134ee565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806134f981613f6f565b915050613462565b509392505050565b60006001600160a01b0384163b1561366757836001600160a01b031663150b7a02613532612a37565b8786866040518563ffffffff1660e01b81526004016135549493929190613fe0565b6020604051808303816000875af192505050801561358f575060408051601f3d908101601f1916820190925261358c9181019061401c565b60015b613634573d8080156135bd576040519150601f19603f3d011682016040523d82523d6000602084013e6135c2565b606091505b50805161362c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612594565b506001949350505050565b6001600160a01b0382166136c85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b41565b6000818152600260205260409020546001600160a01b03161561372d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b41565b6137396000838361338c565b6001600160a01b0382166000908152600360205260408120805460019290613762908490613eee565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546137cc90613db5565b90600052602060002090601f0160209004810192826137ee5760008555613834565b82601f106138075782800160ff19823516178555613834565b82800160010185558215613834579182015b82811115613834578235825591602001919060010190613819565b50613840929150613844565b5090565b5b808211156138405760008155600101613845565b6001600160e01b03198116811461294a57600080fd5b60006020828403121561388157600080fd5b8135611e8381613859565b60005b838110156138a757818101518382015260200161388f565b83811115611d9b5750506000910152565b600081518084526138d081602086016020860161388c565b601f01601f19169290920160200192915050565b602081526000611e8360208301846138b8565b60006020828403121561390957600080fd5b5035919050565b6001600160a01b038116811461294a57600080fd5b6000806040838503121561393857600080fd5b823561394381613910565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261397857600080fd5b813567ffffffffffffffff8082111561399357613993613951565b604051601f8301601f19908116603f011681019082821181831017156139bb576139bb613951565b816040528381528660208588010111156139d457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215613a0c57600080fd5b8535613a1781613910565b9450602086013567ffffffffffffffff811115613a3357600080fd5b613a3f88828901613967565b9450506040860135925060608601359150608086013560ff81168114613a6457600080fd5b809150509295509295909350565b600080600060608486031215613a8757600080fd5b8335613a9281613910565b92506020840135613aa281613910565b929592945050506040919091013590565b60008060408385031215613ac657600080fd5b50508035926020909101359150565b600060208284031215613ae757600080fd5b8135611e8381613910565b803563ffffffff8116811461131057600080fd5b60008060408385031215613b1957600080fd5b82359150613b2960208401613af2565b90509250929050565b60008060408385031215613b4557600080fd5b8235613b5081613910565b915060208301358015158114613b6557600080fd5b809150509250929050565b60008083601f840112613b8257600080fd5b50813567ffffffffffffffff811115613b9a57600080fd5b6020830191508360208260051b850101111561118257600080fd5b60008060208385031215613bc857600080fd5b823567ffffffffffffffff811115613bdf57600080fd5b613beb85828601613b70565b90969095509350505050565b600080600060408486031215613c0c57600080fd5b613c1584613af2565b9250602084013567ffffffffffffffff811115613c3157600080fd5b613c3d86828701613b70565b9497909650939450505050565b60008060208385031215613c5d57600080fd5b823567ffffffffffffffff80821115613c7557600080fd5b818501915085601f830112613c8957600080fd5b813581811115613c9857600080fd5b866020828501011115613caa57600080fd5b60209290920196919550909350505050565b60008060008060808587031215613cd257600080fd5b8435613cdd81613910565b93506020850135613ced81613910565b925060408501359150606085013567ffffffffffffffff811115613d1057600080fd5b613d1c87828801613967565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015613d6057835183529284019291840191600101613d44565b50909695505050505050565b60008060408385031215613d7f57600080fd5b8235613d8a81613910565b91506020830135613b6581613910565b600060208284031215613dac57600080fd5b611e8382613af2565b600181811c90821680613dc957607f821691505b60208210811415613dea57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160a01b03808616835280851660208401525060606040830152613e1c60608301846138b8565b95945050505050565b60008351613e3781846020880161388c565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251613e6e81846020870161388c565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b600082821015613ea057613ea0613e78565b500390565b6000816000190483118215151615613ebf57613ebf613e78565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613ee957613ee9613ec4565b500490565b60008219821115613f0157613f01613e78565b500190565b600063ffffffff80831681811415613f2057613f20613e78565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b60008351613f5281846020880161388c565b835190830190613f6681836020880161388c565b01949350505050565b6000600019821415613f8357613f83613e78565b5060010190565b600060208284031215613f9c57600080fd5b8151611e8381613910565b600063ffffffff83811690831681811015613fc457613fc4613e78565b039392505050565b600082613fdb57613fdb613ec4565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261401260808301846138b8565b9695505050505050565b60006020828403121561402e57600080fd5b8151611e838161385956fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220daaa3d5da1e8622fad92ebca1a7202638fc228661339c49f1c45c6e6f6375f7264736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000100000000000000000000000000ad04907941f84d7f63bd51e8066ac08847895a2e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656965616a356476353662743569376c687268796d6176716972686f786d377a776f626c7671616b366c3479347574776572716532750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656963756e6f676667336a687468713674327a69726d6b3261347a6e373262373479797a6e6d6b65636e667133326177753576376d342f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061033f5760003560e01c80637cf0f69b116101b0578063c87b56dd116100ec578063e0d8a4a711610095578063ebce32c91161006f578063ebce32c91461092b578063f2fde38b1461093e578063f95fe25b1461095e578063ffd31af61461097e57600080fd5b8063e0d8a4a7146108d6578063e8a3d485146108f6578063e985e9c51461090b57600080fd5b8063da77580c116100c6578063da77580c14610881578063daa9855c14610894578063dd0b0080146108c157600080fd5b8063c87b56dd14610821578063cd7c032614610841578063d26ea6c01461086157600080fd5b8063a22cb46511610159578063af39a8e211610133578063af39a8e2146107ab578063b7f00efe146107cb578063b88d4fde146107e1578063c793803c1461080157600080fd5b8063a22cb46514610758578063a5fd7bec14610778578063ab3587df1461079857600080fd5b80638da5cb5b1161018a5780638da5cb5b1461070b57806395d89b411461072e57806399464c891461074357600080fd5b80637cf0f69b146106cb5780638456cb59146106e05780638d859f3e146106f557600080fd5b80633408e4701161027f5780635c975abb116102285780636352211e116102025780636352211e146106605780636fdaddf11461068057806370a0823114610696578063715018a6146106b657600080fd5b80635c975abb146105f657806361595d121461060e57806362861d0b1461062e57600080fd5b80633f516018116102595780633f5160181461059c57806342842e0e146105bc5780634da95e19146105dc57600080fd5b80633408e4701461055f5780633a92b81a146105725780633f4ba83a1461058757600080fd5b80630f7e5970116102ec57806320379ee5116102c657806320379ee5146104b557806323b872dd146104ca5780632a55205a146104ea5780632d0335ab1461052957600080fd5b80630f7e597014610429578063155dd5ee1461047257806318160ddd1461049257600080fd5b8063095ea7b31161031d578063095ea7b3146103d35780630982790e146103f55780630c53c51c1461041657600080fd5b806301ffc9a71461034457806306fdde0314610379578063081812fc1461039b575b600080fd5b34801561035057600080fd5b5061036461035f36600461386f565b61099d565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061038e610a3a565b60405161037091906138e4565b3480156103a757600080fd5b506103bb6103b63660046138f7565b610acc565b6040516001600160a01b039091168152602001610370565b3480156103df57600080fd5b506103f36103ee366004613925565b610b66565b005b34801561040157600080fd5b50600c54610364906301000000900460ff1681565b61038e6104243660046139f4565b610caa565b34801561043557600080fd5b5061038e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561047e57600080fd5b506103f361048d3660046138f7565b610eb0565b34801561049e57600080fd5b506104a7610ff7565b604051908152602001610370565b3480156104c157600080fd5b506009546104a7565b3480156104d657600080fd5b506103f36104e5366004613a72565b611013565b3480156104f657600080fd5b5061050a610505366004613ab3565b6110a1565b604080516001600160a01b039093168352602083019190915201610370565b34801561053557600080fd5b506104a7610544366004613ad5565b6001600160a01b03166000908152600a602052604090205490565b34801561056b57600080fd5b50466104a7565b34801561057e57600080fd5b506103f3611189565b34801561059357600080fd5b506103f361120a565b3480156105a857600080fd5b506103bb6105b7366004613ad5565b611281565b3480156105c857600080fd5b506103f36105d7366004613a72565b611315565b3480156105e857600080fd5b50600c546103649060ff1681565b34801561060257600080fd5b5060065460ff16610364565b34801561061a57600080fd5b506103f3610629366004613b06565b611330565b34801561063a57600080fd5b50600f5461064b9063ffffffff1681565b60405163ffffffff9091168152602001610370565b34801561066c57600080fd5b506103bb61067b3660046138f7565b6113b8565b34801561068c57600080fd5b5061064b610bb881565b3480156106a257600080fd5b506104a76106b1366004613ad5565b611443565b3480156106c257600080fd5b506103f36114dd565b3480156106d757600080fd5b506103f3611554565b3480156106ec57600080fd5b506103f36115de565b34801561070157600080fd5b506104a760105481565b34801561071757600080fd5b5060065461010090046001600160a01b03166103bb565b34801561073a57600080fd5b5061038e611653565b34801561074f57600080fd5b506103f3611662565b34801561076457600080fd5b506103f3610773366004613b32565b61173b565b34801561078457600080fd5b506103f3610793366004613bb5565b61174d565b6103f36107a6366004613bf7565b611953565b3480156107b757600080fd5b506103f36107c6366004613c4a565b611c93565b3480156107d757600080fd5b506104a760115481565b3480156107ed57600080fd5b506103f36107fc366004613cbc565b611d0c565b34801561080d57600080fd5b50600c546103649062010000900460ff1681565b34801561082d57600080fd5b5061038e61083c3660046138f7565b611da1565b34801561084d57600080fd5b506013546103bb906001600160a01b031681565b34801561086d57600080fd5b506103f361087c366004613ad5565b611e8a565b6103f361088f366004613bf7565b611f19565b3480156108a057600080fd5b506108b46108af366004613ad5565b612208565b6040516103709190613d28565b3480156108cd57600080fd5b506103f3612353565b3480156108e257600080fd5b506103f36108f1366004613c4a565b6123e1565b34801561090257600080fd5b5061038e6124b3565b34801561091757600080fd5b50610364610926366004613d6c565b6124c2565b6103f3610939366004613d9a565b61259c565b34801561094a57600080fd5b506103f3610959366004613ad5565b612858565b34801561096a57600080fd5b506103f3610979366004613b06565b61294d565b34801561098a57600080fd5b50600c5461036490610100900460ff1681565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a0057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a3457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610a4990613db5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7590613db5565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b71826113b8565b9050806001600160a01b0316836001600160a01b03161415610bfb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b41565b806001600160a01b0316610c0d612a37565b6001600160a01b03161480610c295750610c2981610926612a37565b610c9b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b41565b610ca58383612a41565b505050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610ce88782878787612aaf565b610d5a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610b41565b6001600160a01b0387166000908152600a6020526040902054610d7e906001612bb7565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610dce90899033908a90613df0565b60405180910390a1600080306001600160a01b0316888a604051602001610df6929190613e25565b60408051601f1981840301815290829052610e1091613e5c565b6000604051808303816000865af19150503d8060008114610e4d576040519150601f19603f3d011682016040523d82523d6000602084013e610e52565b606091505b509150915081610ea45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b41565b98975050505050505050565b610eb8612a37565b6001600160a01b0316610ed96006546001600160a01b036101009091041690565b6001600160a01b031614610f1d5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600081610f2b575047610f2e565b50805b6012546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610f7b576040519150601f19603f3d011682016040523d82523d6000602084013e610f80565b606091505b5050905080610ca55760405162461bcd60e51b815260206004820152602f60248201527f4661696c656420746f2073656e64207061796d656e742c206c6574207468652060448201527f61727469737473207374617276652100000000000000000000000000000000006064820152608401610b41565b60006001611004600b5490565b61100e9190613e8e565b905090565b61102461101e612a37565b82612bc3565b6110965760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b41565b610ca5838383612c92565b60008281526002602052604081205481906001600160a01b03166111075760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b41565b600c546301000000900460ff1615156001146111655760405162461bcd60e51b815260206004820152601360248201527f526f79616c74696573206469737361626c6564000000000000000000000000006044820152606401610b41565b306064611173856007613ea5565b61117d9190613eda565b915091505b9250929050565b611191612a37565b6001600160a01b03166111b26006546001600160a01b036101009091041690565b6001600160a01b0316146111f65760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805460ff19811660ff90911615179055565b611212612a37565b6001600160a01b03166112336006546001600160a01b036101009091041690565b6001600160a01b0316146112775760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f612e6a565b565b600061128b612a37565b6001600160a01b03166112ac6006546001600160a01b036101009091041690565b6001600160a01b0316146112f05760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b50601280546001600160a01b0319166001600160a01b0383169081179091555b919050565b610ca583838360405180602001604052806000815250611d0c565b611338612a37565b6001600160a01b03166113596006546001600160a01b036101009091041690565b6001600160a01b03161461139d5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b63ffffffff81166113ae5750600d55565b600e8290555b5050565b6000818152600260205260408120546001600160a01b031680610a345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b41565b60006001600160a01b0382166114c15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b41565b506001600160a01b031660009081526003602052604090205490565b6114e5612a37565b6001600160a01b03166115066006546001600160a01b036101009091041690565b6001600160a01b03161461154a5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f6000612f0c565b61155c612a37565b6001600160a01b031661157d6006546001600160a01b036101009091041690565b6001600160a01b0316146115c15760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805461ff001981166101009182900460ff1615909102179055565b6115e6612a37565b6001600160a01b03166116076006546001600160a01b036101009091041690565b6001600160a01b03161461164b5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b61127f612f7d565b606060018054610a4990613db5565b61166a612a37565b6001600160a01b031661168b6006546001600160a01b036101009091041690565b6001600160a01b0316146116cf5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c5462010000900460ff16156117285760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120697320616c72656164792066726f7a656e0000000000006044820152606401610b41565b600c805462ff0000191662010000179055565b6113b4611746612a37565b8383613006565b611755612a37565b6001600160a01b03166117766006546001600160a01b036101009091041690565b6001600160a01b0316146117ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b610bb8816117c6610ff7565b6117d09190613eee565b11156118445760405162461bcd60e51b815260206004820152602f60248201527f536f7272792c20746865726520617265206e6f7420656e6f756768206172747760448201527f6f726b732072656d61696e696e672e00000000000000000000000000000000006064820152608401610b41565b600f5460239061185b90839063ffffffff16613eee565b11156118a95760405162461bcd60e51b815260206004820152601260248201527f6e6f2067696674732072656d61696e696e6700000000000000000000000000006044820152606401610b41565b60005b63ffffffff8116821115610ca55760006118c5600b5490565b90506118d5600b80546001019055565b600f805463ffffffff169060006118eb83613f06565b91906101000a81548163ffffffff021916908363ffffffff1602179055505061194084848463ffffffff1681811061192557611925613f2a565b905060200201602081019061193a9190613ad5565b826130d5565b508061194b81613f06565b9150506118ac565b600260075414156119a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff161515600114611a025760405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f7365640000000000000000000000000000006044820152606401610b41565b82600463ffffffff821660166000611a18612a37565b6001600160a01b03166001600160a01b0316815260200190815260200160002054611a439190613eee565b1115611a915760405162461bcd60e51b815260206004820152601760248201527f4d61782034206d696e747320666f722070726573616c650000000000000000006044820152606401610b41565b60105484611aa563ffffffff821683613ea5565b3414611b1b576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b611ba185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150611b5e9050612a37565b604051602001611b86919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001206130ef565b611bed5760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f6e2077686974656c697374000000000000000000000000000000006044820152606401610b41565b8563ffffffff1660166000611c00612a37565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611c2f9190613eee565b90915550600090505b8663ffffffff168163ffffffff161015611c85576000611c57600b5490565b9050611c67600b80546001019055565b611c7261193a612a37565b5080611c7d81613f06565b915050611c38565b505060016007555050505050565b611c9b612a37565b6001600160a01b0316611cbc6006546001600160a01b036101009091041690565b6001600160a01b031614611d005760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b610ca5601483836137c0565b611d1d611d17612a37565b83612bc3565b611d8f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b41565b611d9b84848484613105565b50505050565b6000818152600260205260409020546060906001600160a01b0316611e2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b41565b6000611e38613183565b90506000815111611e585760405180602001604052806000815250611e83565b80611e6284613192565b604051602001611e73929190613f40565b6040516020818303038152906040525b9392505050565b611e92612a37565b6001600160a01b0316611eb36006546001600160a01b036101009091041690565b6001600160a01b031614611ef75760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60026007541415611f6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff161515600114611fc85760405162461bcd60e51b815260206004820152601160248201527f50726573616c6520697320636c6f7365640000000000000000000000000000006044820152606401610b41565b82600463ffffffff821660166000611fde612a37565b6001600160a01b03166001600160a01b03168152602001908152602001600020546120099190613eee565b11156120575760405162461bcd60e51b815260206004820152601760248201527f4d61782034206d696e747320666f722070726573616c650000000000000000006044820152606401610b41565b6011548461206b63ffffffff821683613ea5565b34146120e1576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b61212485858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e549150611b5e9050612a37565b6121705760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f6e2058696c652077686974656c69737400000000000000000000006044820152606401610b41565b8563ffffffff1660166000612183612a37565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121b29190613eee565b90915550600090505b8663ffffffff168163ffffffff161015611c855760006121da600b5490565b90506121ea600b80546001019055565b6121f561193a612a37565b508061220081613f06565b9150506121bb565b6060600061221583611443565b116122885760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742063757272656e746c7920686f6c6420616e7920746f6b60448201527f656e7300000000000000000000000000000000000000000000000000000000006064820152608401610b41565b600061229383611443565b90506000808267ffffffffffffffff8111156122b1576122b1613951565b6040519080825280602002602001820160405280156122da578160200160208202803683370190505b50905060015b600b5481101561234a57856001600160a01b03166122fd826113b8565b6001600160a01b03161415612338578082848151811061231f5761231f613f2a565b60209081029190910101528261233481613f6f565b9350505b8061234281613f6f565b9150506122e0565b50949350505050565b61235b612a37565b6001600160a01b031661237c6006546001600160a01b036101009091041690565b6001600160a01b0316146123c05760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c805463ff00000019811663010000009182900460ff1615909102179055565b6123e9612a37565b6001600160a01b031661240a6006546001600160a01b036101009091041690565b6001600160a01b03161461244e5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b600c5462010000900460ff16156124a75760405162461bcd60e51b815260206004820152601860248201527f4d6574616461746120686173206265656e2066726f7a656e00000000000000006044820152606401610b41565b610ca5601583836137c0565b606060148054610a4990613db5565b6013546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa15801561252d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125519190613f8a565b6001600160a01b0316141561256a576001915050610a34565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600260075414156125ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b41565b6002600755600c5460ff6101009091041615156001146126515760405162461bcd60e51b815260206004820152600e60248201527f53616c6520697320636c6f7365640000000000000000000000000000000000006044820152606401610b41565b600f5481906126679063ffffffff166023613fa7565b61267390610bb8613fa7565b63ffffffff168163ffffffff16612688610ff7565b6126929190613eee565b11156127065760405162461bcd60e51b815260206004820152602f60248201527f536f7272792c20746865726520617265206e6f7420656e6f756768206172747760448201527f6f726b732072656d61696e696e672e00000000000000000000000000000000006064820152608401610b41565b6010548261271a63ffffffff821683613ea5565b3414612790576040805162461bcd60e51b81526020600482015260248101919091527f5061796d656e74206661696c65642c20706c6561736520656e7375726520796f60448201527f752061726520706179696e672074686520636f727265637420616d6f756e742e6064820152608401610b41565b600463ffffffff85166127a46106b1612a37565b6127ae9190613eee565b11156127fc5760405162461bcd60e51b815260206004820152601560248201527f4c696d6974206f662034207065722077616c6c657400000000000000000000006044820152606401610b41565b60005b8463ffffffff168163ffffffff16101561284c57600061281e600b5490565b905061282e600b80546001019055565b61283961193a612a37565b508061284481613f06565b9150506127ff565b50506001600755505050565b612860612a37565b6001600160a01b03166128816006546001600160a01b036101009091041690565b6001600160a01b0316146128c55760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b6001600160a01b0381166129415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b41565b61294a81612f0c565b50565b612955612a37565b6001600160a01b03166129766006546001600160a01b036101009091041690565b6001600160a01b0316146129ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061407d8339815191526044820152606401610b41565b63ffffffff81166129cb5750601055565b50601155565b80546001019055565b600033301415612a3157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612a349050565b50335b90565b600061100e6129da565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a76826113b8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612b2d5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610b41565b6001612b40612b3b876132c4565b613341565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612b8e573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611e838284613eee565b6000818152600260205260408120546001600160a01b0316612c3c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b41565b6000612c47836113b8565b9050806001600160a01b0316846001600160a01b03161480612c825750836001600160a01b0316612c7784610acc565b6001600160a01b0316145b80612594575061259481856124c2565b826001600160a01b0316612ca5826113b8565b6001600160a01b031614612d215760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b41565b6001600160a01b038216612d9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b41565b612da783838361338c565b612db2600082612a41565b6001600160a01b0383166000908152600360205260408120805460019290612ddb908490613e8e565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e09908490613eee565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff16612ebc5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b41565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eef612a37565b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615612fd05760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b41565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612eef612a37565b816001600160a01b0316836001600160a01b031614156130685760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b41565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113b48282604051806020016040528060008152506133df565b6000826130fc858461345d565b14949350505050565b613110848484612c92565b61311c84848484613509565b611d9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b606060158054610a4990613db5565b6060816131d257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156131fc57806131e681613f6f565b91506131f59050600a83613eda565b91506131d6565b60008167ffffffffffffffff81111561321757613217613951565b6040519080825280601f01601f191660200182016040528015613241576020820181803683370190505b5090505b841561259457613256600183613e8e565b9150613263600a86613fcc565b61326e906030613eee565b60f81b81838151811061328357613283613f2a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506132bd600a86613eda565b9450613245565b600060405180608001604052806043815260200161403a6043913980516020918201208351848301516040808701518051908601209051613324950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061334c60095490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613324565b60065460ff1615610ca55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b41565b6133e98383613672565b6133f66000848484613509565b610ca55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b600081815b845181101561350157600085828151811061347f5761347f613f2a565b602002602001015190508083116134c15760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506134ee565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806134f981613f6f565b915050613462565b509392505050565b60006001600160a01b0384163b1561366757836001600160a01b031663150b7a02613532612a37565b8786866040518563ffffffff1660e01b81526004016135549493929190613fe0565b6020604051808303816000875af192505050801561358f575060408051601f3d908101601f1916820190925261358c9181019061401c565b60015b613634573d8080156135bd576040519150601f19603f3d011682016040523d82523d6000602084013e6135c2565b606091505b50805161362c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b41565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612594565b506001949350505050565b6001600160a01b0382166136c85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b41565b6000818152600260205260409020546001600160a01b03161561372d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b41565b6137396000838361338c565b6001600160a01b0382166000908152600360205260408120805460019290613762908490613eee565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546137cc90613db5565b90600052602060002090601f0160209004810192826137ee5760008555613834565b82601f106138075782800160ff19823516178555613834565b82800160010185558215613834579182015b82811115613834578235825591602001919060010190613819565b50613840929150613844565b5090565b5b808211156138405760008155600101613845565b6001600160e01b03198116811461294a57600080fd5b60006020828403121561388157600080fd5b8135611e8381613859565b60005b838110156138a757818101518382015260200161388f565b83811115611d9b5750506000910152565b600081518084526138d081602086016020860161388c565b601f01601f19169290920160200192915050565b602081526000611e8360208301846138b8565b60006020828403121561390957600080fd5b5035919050565b6001600160a01b038116811461294a57600080fd5b6000806040838503121561393857600080fd5b823561394381613910565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261397857600080fd5b813567ffffffffffffffff8082111561399357613993613951565b604051601f8301601f19908116603f011681019082821181831017156139bb576139bb613951565b816040528381528660208588010111156139d457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215613a0c57600080fd5b8535613a1781613910565b9450602086013567ffffffffffffffff811115613a3357600080fd5b613a3f88828901613967565b9450506040860135925060608601359150608086013560ff81168114613a6457600080fd5b809150509295509295909350565b600080600060608486031215613a8757600080fd5b8335613a9281613910565b92506020840135613aa281613910565b929592945050506040919091013590565b60008060408385031215613ac657600080fd5b50508035926020909101359150565b600060208284031215613ae757600080fd5b8135611e8381613910565b803563ffffffff8116811461131057600080fd5b60008060408385031215613b1957600080fd5b82359150613b2960208401613af2565b90509250929050565b60008060408385031215613b4557600080fd5b8235613b5081613910565b915060208301358015158114613b6557600080fd5b809150509250929050565b60008083601f840112613b8257600080fd5b50813567ffffffffffffffff811115613b9a57600080fd5b6020830191508360208260051b850101111561118257600080fd5b60008060208385031215613bc857600080fd5b823567ffffffffffffffff811115613bdf57600080fd5b613beb85828601613b70565b90969095509350505050565b600080600060408486031215613c0c57600080fd5b613c1584613af2565b9250602084013567ffffffffffffffff811115613c3157600080fd5b613c3d86828701613b70565b9497909650939450505050565b60008060208385031215613c5d57600080fd5b823567ffffffffffffffff80821115613c7557600080fd5b818501915085601f830112613c8957600080fd5b813581811115613c9857600080fd5b866020828501011115613caa57600080fd5b60209290920196919550909350505050565b60008060008060808587031215613cd257600080fd5b8435613cdd81613910565b93506020850135613ced81613910565b925060408501359150606085013567ffffffffffffffff811115613d1057600080fd5b613d1c87828801613967565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015613d6057835183529284019291840191600101613d44565b50909695505050505050565b60008060408385031215613d7f57600080fd5b8235613d8a81613910565b91506020830135613b6581613910565b600060208284031215613dac57600080fd5b611e8382613af2565b600181811c90821680613dc957607f821691505b60208210811415613dea57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160a01b03808616835280851660208401525060606040830152613e1c60608301846138b8565b95945050505050565b60008351613e3781846020880161388c565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251613e6e81846020870161388c565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b600082821015613ea057613ea0613e78565b500390565b6000816000190483118215151615613ebf57613ebf613e78565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613ee957613ee9613ec4565b500490565b60008219821115613f0157613f01613e78565b500190565b600063ffffffff80831681811415613f2057613f20613e78565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b60008351613f5281846020880161388c565b835190830190613f6681836020880161388c565b01949350505050565b6000600019821415613f8357613f83613e78565b5060010190565b600060208284031215613f9c57600080fd5b8151611e8381613910565b600063ffffffff83811690831681811015613fc457613fc4613e78565b039392505050565b600082613fdb57613fdb613ec4565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261401260808301846138b8565b9695505050505050565b60006020828403121561402e57600080fd5b8151611e838161385956fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220daaa3d5da1e8622fad92ebca1a7202638fc228661339c49f1c45c6e6f6375f7264736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000100000000000000000000000000ad04907941f84d7f63bd51e8066ac08847895a2e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656965616a356476353662743569376c687268796d6176716972686f786d377a776f626c7671616b366c3479347574776572716532750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656963756e6f676667336a687468713674327a69726d6b3261347a6e373262373479797a6e6d6b65636e667133326177753576376d342f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _cURI (string): ipfs://bafkreieaj5dv56bt5i7lhrhymavqirhoxm7zwoblvqak6l4y4utwerqe2u
Arg [1] : _mURI (string): ipfs://bafybeicunogfg3jhthq6t2zirmk2a4zn72b74yyznmkecnfq32awu5v7m4/
Arg [2] : _creatorAdd (address): 0xaD04907941f84d7f63Bd51e8066Ac08847895A2E
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000ad04907941f84d7f63bd51e8066ac08847895a2e
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [5] : 697066733a2f2f6261666b72656965616a356476353662743569376c68726879
Arg [6] : 6d6176716972686f786d377a776f626c7671616b366c34793475747765727165
Arg [7] : 3275000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 697066733a2f2f6261667962656963756e6f676667336a687468713674327a69
Arg [10] : 726d6b3261347a6e373262373479797a6e6d6b65636e66713332617775357637
Arg [11] : 6d342f0000000000000000000000000000000000000000000000000000000000
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.